as.undirected {igraph} | R Documentation |
Convert between undirected and unundirected graphs
Description
as.undirected()
was renamed to as_undirected()
to create a more
consistent API.
Usage
as.undirected(
graph,
mode = c("collapse", "each", "mutual"),
edge.attr.comb = igraph_opt("edge.attr.comb")
)
Arguments
graph |
The graph to convert. |
mode |
Character constant, defines the conversion algorithm. For
|
edge.attr.comb |
Specifies what to do with edge attributes, if
|
[Package igraph version 2.1.2 Index]