as.directed {igraph} | R Documentation |
Convert between directed and undirected graphs
Description
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
|
[Package igraph version 2.1.4 Index]