Update SparseGraph.java