Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Igraph and usage of Read(kclass, f, format=...) question

Thread Tools

Igraph and usage of Read(kclass, f, format=...) question

Posts: n/a
I am using igraph package via Python interface. I have a list of edges of a graph one edge per line of input in a file (e.txt) and want igraph to read the edges into the graph. Can any one give me a usage hint of igraph.Graph.Read()??

import igraph
g = igraph.Graph()
g.add_vertices(3) # 4 vertices
g.Read("e.txt", "egdes")

but does not work!

Any pointer will be appreciated.
Reply With Quote
Posts: n/a
On Apr 5, 12:00*am, ish <(E-Mail Removed)> wrote:
> Any pointer will be appreciated.

1. Show your input. Odds are there's a problem with your data.
2. Show the output. "Does not work" tells us nothing of value.
3. Don't repeatedly post the same question in different threads. That
doesn't make people answer any faster.
4. Try the appropriate support mailing list:

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(klass, f, format=None, *args, **kwds) question Python 0 04-04-2012 03:45 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