Node {rdecision} | R Documentation |
A node in a graph
Description
An R6 class representing a node in a graph.
Details
A base class to represent a single node in a graph.
Methods
Public methods
Method new()
Create new Node
object.
Usage
Node$new(label = "")
Arguments
label
An optional label for the node.
Returns
A new Node
object.
Method label()
Return the label of the node.
Usage
Node$label()
Returns
Label as a character string.
Method type()
node type
Usage
Node$type()
Returns
Node
class, as character string.
Method clone()
The objects of this class are cloneable with this method.
Usage
Node$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Author(s)
Andrew Sims andrew.sims@newcastle.ac.uk
[Package rdecision version 1.2.1 Index]