Create graph.h

c++ code