Update AdjacencyMatrix.java