added an adjacency matrix