name of the graph in the putNewGraph method updated