|
From: | Tamas Nepusz |
Subject: | Re: [igraph] read_adjacency misunderstanding |
Date: | Mon, 27 Apr 2009 15:48:02 +0100 |
I'm running iGraph on python and I'm trying to load a weighted graph via read_adjacency. I do not understand the meaning of the "attribute" argument..The "attribute" argument specifies the name of the attribute where the edge weights are stored. I.e., if you want to store them in an edge attribute called "weight", do the following:
>>> g = Graph.Read_Adjacency("graph.txt", attribute="weight") >>> g.es["weight"] ...here you get a list showing all the edge weights... -- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |