Added code to make a graph based on list of nodes and conduct breadth-first search for shortest path between two nodes