makeNodeAttrs
make a list of character vectors that can be used as a value for the nodeAttrs argument in agopen
make a list of character vectors that can be used as a value for the nodeAttrs argument in agopen
- Keywords
- dplot
Usage
makeNodeAttrs(g, label = nodes(g), shape = "ellipse", fillcolor = "#e0e0e0", ...)
Arguments
- g
- graph
- label
- character of length either
1
ornumnodes(g)
. If the length is1
, the value is recycled. - shape
- character of length either
1
ornumnodes(g)
- fillcolor
- character of length either
1
ornumnodes(g)
- ...
- further named arguments that are character vectors of length either 1 or numNodes(g)
Details
This function is trivial but convenient.
Value
-
length
numNodes(g)
.Examples
g <- randomEGraph(letters[1:10], p=0.2)
makeNodeAttrs(g)
Community examples
Looks like there are no examples yet.