added adjacencymatrix