gNode-class {graph} | R Documentation |
This is an implemention of a very general graph node class. It is patterned after the descriptions in GXL.
Objects can be created by calls of the form new("gNode", ...)
.
These are nodes of a graph and can have any number of attributes.
nodeID
:"integer"
a unique
integer identifier.nodeType
:"character"
the type
of node. Could be a factor. toEdges
:"integer"
A vector of
the edge identifiers corresponding to the edges pointing to that node. fromEdges
:"integer"
A vector
of the edge identifiers corresponding to the edges starting at
that node. edgeOrder
:"integer"
A vector
of edge identifiers indicating the order in which they would be
traversed (may also be used for rendering). label
:"character"
A label of
the node. Should be unique. signature(object = "gNode")
: A method that
returns the edgeOrder
for the named node.signature(object = "gNode")
: A method that
returns the fromEdges
. signature(object = "gNode")
: A method that
assigns the fromEdges
signature(object = "gNode")
:A method that
returns the node label. signature(object = "gNode")
: A method that
returns the node identifier. signature(object = "gNode")
: A method that
returns the node type. signature(object = "gNode")
: A method that
returns the toEdges
. signature(object = "gNode")
: A method that
assigns the toEdges
. R. Gentleman
distGraph-class
,
graphNEL-class
##none yet