Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > igraph and usage of Read(klass, f, format=None, *args, **kwds) question

Thread Tools

igraph and usage of Read(klass, f, format=None, *args, **kwds) question
Posts: n/a
I have a file with with adjacency list of an undirected graph one vertex list per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is named adjl.txt). Can some one give an example of loading this into graph of 4 vertices?

import igraph
g = igraph.Graph()
g.Read("adjl.txt", "edgelist")
does not work..

Help will be appreciated.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Igraph and usage of Read(kclass, f, format=...) question ish Python 1 04-05-2012 04:23 AM
Igraph Library Weighted Edges alessandro.carrega C++ 6 01-06-2008 01:03 AM
[ANN] igraph 0.9.0 Released Alex Gutteridge Ruby 6 11-20-2007 08:13 AM
[ANN] igraph 0.3 Released Alex Gutteridge Ruby 0 08-16-2007 08:41 AM
igraph trans. (T. Onoma) Ruby 1 10-27-2004 08:49 PM