Update MatrixGraph.java