Simplify getting graph name.