[R] Rgraphviz - neato layout - edge weights do not have an effect

From: Franz Quehenberger <franz.quehenberger_at_meduni-graz.at>
Date: Mon 28 Aug 2006 - 18:56:11 EST

Dear all,

neato makes layouts according to a physical model in which the length of the edges is determined by springs. The weight of the edge is the strength of the spring. However, I was not able to find any influence of edge weight on the layout. In the
http://www.graphviz.org/Documentation/neatoguide.pdf the attribute "len" is another parameter of the neato layout.

plot(g2,"neato",main="All weights 1")

# change and edge weight

edgeData(g2, from = "d", to = "e", attr = "weight") <- 20 plot(g2,"neato",main="Nothing changed!")

#try out length attribute change

edgeData(g2, from = "d", to = "e", attr = "len") <- 5 plot(g2,"neato",main="Nothing changed again!")

Has anyone an idea how to achieve a change in the graph layout ?


Franz Quehenberger

Franz Quehenberger
Institute for Medical Informatics, Statistics and Documentation
Graz, Austria

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Aug 28 19:02:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 29 Aug 2006 - 02:22:44 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.