Wrote code to do adjacency matrices.