coloredGraph-class {pathRender}R Documentation

Class "coloredGraph"

Description

a graph to which color attributes have been attached

Objects from the Class

Objects can be created by calls of the form new("coloredGraph", nodes, edgeL, edgemode). these are graphNEL instances with some additional graphData

Slots

nodes:
Object of class "vector" ~~
edgeL:
Object of class "list" ~~
edgemode:
Object of class "character" ~~
edgeData:
Object of class "attrData" ~~
nodeData:
Object of class "attrData" ~~
renderInfo:
Object of class "renderInfo" ~~
graphData:
Object of class "list" ~~

Extends

Class "graphNEL-class", directly. Class "graph-class", by class "graphNEL", distance 2.

Methods

plot
signature(x = "coloredGraph"): ...

Examples

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)

[Package pathRender version 1.10.0 Index]