create graph.java