igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] plotting graphs with edges of various length


From: Gábor Csárdi
Subject: Re: [igraph] plotting graphs with edges of various length
Date: Sun, 9 Mar 2014 14:38:47 -0400

Hi, maybe I am missing something, but what is your question? 

Why some red edges are shorter? For that we would need a reproducible example. 

Why the "weight" and/or "length" attribute is not used automatically? Or something else?

Gabor


On Sat, Mar 8, 2014 at 10:37 PM, aschmid1 <address@hidden> wrote:
Hi,
I thought that the commands
gm<-set.edge.attribute(gm, "weight", index=E(gm), value=weights)
gm<-set.edge.attribute(gm, "length", index=E(gm), value=weights)
ensure that plot(gm) yields the edge lengths corresponding to the values of vector weights. It seems not the case. I attach the graph in which blue edges have weights < 1 and red edges have weights >1. However, some red edges look shorter than some blue edges.
Thanks much, Alec
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]