I'm trying to build a graph from it's adjacency matrix using igraph package in python.
My matrix(800*800)
is a text file. My code is as below, but I don't know why it keeps exiting with code -1073741819 (0xC0000005)
import igraph
adjacencyFile = open("AdjacencyMatrix.txt",'r')
graph = igraph.Graph.Read_Adjacency(adjacencyFile, sep=None, comment_char='#', attribute=None)
The problem was setting the attribute option to None, because I had some weights considerably large in the graph and it couldn't set so many edges for them.
User contributions licensed under CC BY-SA 3.0