adding Graph.java