Update and rename graph.h to graph.cpp