Code that allows for creation of adjacency matrix as well as visualization