Update Graph.cpp