add graph.java