Update Graph.cpp

change