created a header file to hold common graph methods. Implemented dijkstra