Update UGraph.java