Separated Graph.h for Graph class.