alldirected {mathgraph} | R Documentation |
Returns a "mathgraph"
object which has all edges directed.
alldirected(x, ...)
x |
an object representing a mathematical graph. |
... |
other arguments for derived functions. |
The default method merely creates an error.
A "mathgraph"
object with any undirected edges in the
input split into two arcs.
Nick Efthymiou
S Poetry, Patrick J. Burns, Section 13.3, p. 305
my.graph <- mathgraph(~ 1:3 / 2:4) # undirected graph with 3 edges alldirected(my.graph) # directed graph with 6 arcs