Learn R Programming

mathgraph (version 0.9-14)

alldirected: Transform to Directed Graph

Description

Returns a "mathgraph" object which has all edges directed.

Usage

alldirected(x, ...)

Arguments

x

an object representing a mathematical graph.

other arguments for derived functions.

Value

A "mathgraph" object with any undirected edges in the input split into two arcs.

Details

The default method merely creates an error.

References

S Poetry, Patrick J. Burns, Section 13.3, p. 305

See Also

mathgraph

Examples

Run this code
# 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