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