gNode-class {graph}R Documentation

Class "gNode"

Description

This is an implemention of a very general graph node class. It is patterned after the descriptions in GXL.

Objects from the Class

Objects can be created by calls of the form new("gNode", ...). These are nodes of a graph and can have any number of attributes.

Slots

nodeID:
Object of class "integer" a unique integer identifier.
nodeType:
Object of class "character" the type of node. Could be a factor.
toEdges:
Object of class "integer" A vector of the edge identifiers corresponding to the edges pointing to that node.
fromEdges:
Object of class "integer" A vector of the edge identifiers corresponding to the edges starting at that node.
edgeOrder:
Object of class "integer" A vector of edge identifiers indicating the order in which they would be traversed (may also be used for rendering).
label:
Object of class "character" A label of the node. Should be unique.

Methods

edgeOrder
signature(object = "gNode"): A method that returns the edgeOrder for the named node.
fromEdges
signature(object = "gNode"): A method that returns the fromEdges.
fromEdges<-
signature(object = "gNode"): A method that assigns the fromEdges
label
signature(object = "gNode"):A method that returns the node label.
nodeID
signature(object = "gNode"): A method that returns the node identifier.
nodeType
signature(object = "gNode"): A method that returns the node type.
toEdges
signature(object = "gNode"): A method that returns the toEdges.
toEdges<-
signature(object = "gNode"): A method that assigns the toEdges.

Author(s)

R. Gentleman

See Also

distGraph-class, graphNEL-class

Examples

  ##none yet

[Package Contents]