Moving AdjacencyMatrix.scala from utils to graph