as.directed() was renamed to as_directed() to create a more
consistent API.
Usage
as.directed(graph, mode = c("mutual", "arbitrary", "random", "acyclic"))Arguments
- graph
The graph to convert.
- mode
Character constant, defines the conversion algorithm. For
as_directed()it can bemutualorarbitrary. Foras_undirected()it can beeach,collapseormutual. See details below.
