igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Loading graphs into python-igraph


From: Tamas Nepusz
Subject: Re: [igraph] Loading graphs into python-igraph
Date: Fri, 17 Oct 2008 08:40:41 +0100

Hi,

I’m trying to port this to Python, but not having much success:
>>> graph = igraph.load('testfile')
[...]
IOError: unknown file format: None
Please try to replace commas in your file with spaces. When reading directly from a file, igraph uses the routines of the C core and it expects whitespace between vertex indices. If igraph still does not recognise the file format, you can also try to force it to use the edgelist reader:

graph = igraph.load('testfile', format='edgelist')

--
T.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]