Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pNode-class

Class "pNode": A class to plot nodes


Description

This class is used to transfer information to Graphviz that is necessary to represent and plot a node.

Details

The attrs slot is a named list, where the names correspond to attributes and the values in the list correspond to the value for that element's attribute.

The subG slot describes which subgraph this node is a part of. A value of 0 implies that the node is not a member of any subgraph.

Objects from the Class

Objects can be created by calls of the form new("pNode", ...).

Slots

name:

Object of class "character": The name of the node, used to reference the node.

attrs:

Object of class "list": A list of attributes specific to this node.

subG:

Object of class "integer": Which subgraph this node is a part of.

Methods

name

signature(object = "pNode"): Retrieves the name slot of the object.

Author(s)

R. Gentleman and Jeff Gentry

See Also

Examples

set.seed(123)
   V <- letters[1:10]
   M <- 1:4
   g1 <- randomGraph(V, M, .2)

   z <- buildNodeList(g1)
   z[[1]]   ## Object of type pNode

   name(z[[1]])

Rgraphviz

Provides plotting capabilities for R graph objects

v2.34.0
EPL
Authors
Kasper Daniel Hansen [cre, aut], Jeff Gentry [aut], Li Long [aut], Robert Gentleman [aut], Seth Falcon [aut], Florian Hahne [aut], Deepayan Sarkar [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.