|
From: | Eric Sun |
Subject: | Re: [igraph] Loading graphs into python-igraph |
Date: | Thu, 23 Oct 2008 13:50:33 -0700 |
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.
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |