An R6 class representing an directed edge in a digraph.
Andrew J. Sims andrew.sims@newcastle.ac.uk
rdecision::Edge
-> Arrow
Inherited methods
new()
Create an object of type Arrow
.
Arrow$new(source, target, label = "")
source
Node from which the arrow leaves.
target
Node to which the arrow points.
label
Character string containing the arrow label.
A new Arrow
object.
Node from which the arrow leads.
target()
Access target node.
Arrow$target()
Node to which the arrow points.
clone()
The objects of this class are cloneable with this method.
Arrow$clone(deep = FALSE)
deep
Whether to make a deep clone.
An arrow is the formal term for an edge between pairs of nodes in a
directed graph. Inherits from class Edge
.