Constructs adjacency matrix from graph