Create the adjacency matrix

Create the adjacency matrix