Updated Graph.java With BFS Algorithm