Updated Graph.java to allow for map of graphs