Added graph type and implemented breadth first search to find shortest paths.