Learn R Programming

rdecision (version 1.1.2)

Node: A node in a graph

Description

An R6 class representing a node in a graph.

Arguments

Author

Andrew Sims andrew.sims@newcastle.ac.uk

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.

Details

A base class to represent a single node in a graph.