I used to use igraph exclusively in R, but I’m migrating to Python. I’m having trouble loading my graph data (which resides in a separate file) into Python-igraph.
Before, in R, I had a file with directed edge-lists,like so:
1,2
2,3
3,4
4,1
etc., and loaded it into R with read.table() and then graph.data.frame(graphdata, directed=TRUE)
I’m trying to port this to Python, but not having much success:
>>> graph = igraph.load('testfile')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/igraph/__init__.py", line 2101, in read
File "build/bdist.linux-x86_64/egg/igraph/__init__.py", line 1098, in Read
IOError: unknown file format: None