Learn R Programming

rdecision (version 1.1.2)

Arrow: A directed edge in a digraph

Description

An R6 class representing an directed edge in a digraph.

Arguments

Author

Andrew J. Sims andrew.sims@newcastle.ac.uk

Super class

rdecision::Edge -> Arrow

Methods

Inherited methods


Method new()

Create an object of type Arrow.

Usage

Arrow$new(source, target, label = "")

Arguments

source

Node from which the arrow leaves.

target

Node to which the arrow points.

label

Character string containing the arrow label.

Returns

A new Arrow object.


Method source()

Access source node.

Usage

Arrow$source()

Returns

Node from which the arrow leads.


Method target()

Access target node.

Usage

Arrow$target()

Returns

Node to which the arrow points.


Method clone()

The objects of this class are cloneable with this method.

Usage

Arrow$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

An arrow is the formal term for an edge between pairs of nodes in a directed graph. Inherits from class Edge.