| Edge | R Documentation |
An R6 class representing an edge in a graph.
Edges are the formal term for links between pairs of nodes in a graph. A base class.
new()Create an object of type Edge.
Edge$new(v1, v2, label = "")
v1Node at one endpoint of the edge.
v2Node at the other endpoint of the edge.
labelCharacter string containing the edge label.
A new Edge object.
is_same_edge()Is this edge the same as the argument?
Edge$is_same_edge(e)
eedge to compare with this one
TRUE if e is also this one.
endpoints()Retrieve the endpoints of the edge.
Edge$endpoints()
List of two nodes to which the edge is connected.
label()Access label.
Edge$label()
Label of the edge; character string.
modvars()Find all the model variables of type ModVar that have
been specified as values associated with this Edge.
Edge$modvars()
An empty list for the base class.
clone()The objects of this class are cloneable with this method.
Edge$clone(deep = FALSE)
deepWhether to make a deep clone.
Andrew J. Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.