Update Graph.cpp

update