Update Graph.java

Add BFS for testing.