Entering edit mode
Sam Steingold
▴
30
@sam-steingold-5553
Last seen 10.3 years ago
I have
--8<---------------cut here---------------start------------->8---
A graphNEL graph with undirected edges
Number of Nodes = 41
Number of Edges = 816
--8<---------------cut here---------------end--------------->8---
each edge has a weight.
how do I tell plot() to respect edge weights?
(higher weight => thicker, straighter and shorter edge).
I suppose I should be using the edgeAttrs argument, but I cannot
figure
out how.
Thanks.
PS. I also have vertex attributes which indicate vertex size.
PPS. I got the graph object from the igraph object using
igraph.to.graphNEL(http://igraph.sourceforge.net/doc/R/graphNEL.html);
it would be nice to be able to create a graph from a list of vetexes
and
their sizes and a list of edges and their weights, like
(http://igraph.sourceforge.net/doc/R/graph.data.frame.html).
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X
11.0.11103000
http://www.childpsy.net/ http://truepeace.org
http://honestreporting.com
http://camera.org http://think-israel.org http://dhimmi.com
Those who can laugh at themselves will never cease to be amused.