updated the matrix class. Can now get number of edges in matrix