On Wed, Feb 4, 2009 at 7:37 PM, Chris Wj
<address@hidden> wrote:
After reading through the igraph source I found that this was not supported (as far as I could tell). I whipped up a python extension module example that shows how we can distinguish between a string and file object and act accordingly. I attached the example to this e-mail. Although, it does not work for StringIO/cStringIO yet, so hopefully we can work on that. I'll probably add some of these changes to my local branch along with a method that takes in the file contents (GraphML first) straight through a string already loaded in memory.
-ChrisOn Wed, Feb 4, 2009 at 4:41 PM, Chris Wj
<address@hidden> wrote:
Is there a way to read/load from a file object (file io or string io) or even from a string? Is the only current option to pass in a filename and have igraph read the file from disk?
-Chris