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 bemutual
orarbitrary
. Foras_undirected()
it can beeach
,collapse
ormutual
. See details below.