Properly compile graph names.