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

I

ish

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.
-ish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top