|
From: | Martin Tomko |
Subject: | Re: [igraph] Re: working with weighted networks (from pajek .net) |
Date: | Thu, 02 Sep 2010 11:07:26 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 |
Thank you guys, that solved my problem.I suspected that $weight should work, but simple listing of an edge did not reveal the attribute. Need to find out how to get the full information about the object...
Cheers Martin On 9/2/2010 10:52 AM, Tamas Nepusz wrote:
Sorry, got it working with weights, the appraoch mentionned worked, but what confused me is that there is no access to a g$weights vector. I am still not sure how to get the information for any individual edge.E(g)[edgeindex]$weight seems to work for me in igraph 0.5.3. The only thing to watch out for is that edges are indexed from zero, not 1, so E(g)[1]$weight gives the weight of the second edge.
[Prev in Thread] | Current Thread | [Next in Thread] |