preliminary work on defining Graph.cpp