I'm trying to build a graph from it's adjacency matrix using igraph package in python.
matrix(800*800) is a text file. My code is as below, but I don't know why it keeps exiting with code
import igraph adjacencyFile = open("AdjacencyMatrix.txt",'r') graph = igraph.Graph.Read_Adjacency(adjacencyFile, sep=None, comment_char='#', attribute=None)
User contributions licensed under CC BY-SA 3.0