Update MyGraph.java