igraph and usage of Read(klass, f, format=None, *args, **kwds) question

Discussion in 'Python' started by ishwar.rattan@gmail.com, Apr 4, 2012.

  1. Guest

    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.
    -ishwar
     
    , Apr 4, 2012
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ish
    Replies:
    1
    Views:
    253
    alex23
    Apr 5, 2012
  2. length power
    Replies:
    2
    Views:
    116
    Rustom Mody
    Apr 10, 2014
  3. Skip Montanaro
    Replies:
    0
    Views:
    84
    Skip Montanaro
    Apr 10, 2014
  4. Johannes Schneider

    Re: why i have the output of [None, None, None]

    Johannes Schneider, Apr 10, 2014, in forum: Python
    Replies:
    0
    Views:
    73
    Johannes Schneider
    Apr 10, 2014
  5. Terry Reedy
    Replies:
    0
    Views:
    84
    Terry Reedy
    Apr 10, 2014
Loading...

Share This Page