# An adjacency matrix is a way to represent a graph as a matrix of booleans (or integers). # The graph here has 5 nodes (numbered 0 to 4) and edges defined by the edges list. # Example edges: (0, 1) ...
Converting the adjacency matrix into a numpy array using the following method is pretty slow. I tried a few other ways of doing this to no avail. I'm using python 2.7, OS X 10.11.6, igraph 0.7.1, and ...