Update generateGraph.cpp