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.
label
:"character"
A label of
the node. Should be unique within the graph. fromEdges
:"list"
A vector
of the edge identifiers corresponding to the edges starting at
that node. toEdges
:"list"
A vector of
the edge identifiers corresponding to the edges pointing to that node. edgeOrder
:"list"
A vector
of edge identifiers indicating the order in which the edges in the slot
"fromEdges"
would be traversed (may also be used for
rendering). If this is of length zero, then the "fromEdges"
slot is used for the order.nodeType
:"character"
the type
of node. Could be a factor. nodeID
:"Ruuid"
a unique
identifier.property
:"list"
, holds
properties associated with the graph node.
Class "propertyHolder"
, directly.
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
. signature(x = "gNode")
: A method that returns
the node identifier as a character string.signature(.Object = "gNode", ...)
:
initializer for "gNode"
class.
R. Gentleman and Saikat DebRoy
distGraph-class
,
graphNEL-class
node <- new("gNode", label="A") label(node) idstring(node)