coloredGraph-class {pathRender} | R Documentation |
a graph to which color attributes have been attached
Objects can be created by calls of the form new("coloredGraph", nodes, edgeL, edgemode)
.
these are graphNEL instances with some additional graphData
nodes
:"vector"
~~ edgeL
:"list"
~~ edgemode
:"character"
~~ edgeData
:"attrData"
~~ nodeData
:"attrData"
~~ renderInfo
:"renderInfo"
~~ graphData
:"list"
~~
Class "graphNEL-class"
, directly.
Class "graph-class"
, by class "graphNEL", distance 2.
signature(x = "coloredGraph")
: ... showClass("coloredGraph") example(randomGraph) nn = nodes(g1) x = runif(length(nn)) names(x) = nn h1 = colorNodes(g1, x, colorRampPalette(brewer.pal(9, "Blues"))(length(nn)), pwayRendAttrs) h1 plot(h1)