as.undirected: Convert between undirected and unundirected graphs

View source: R/conversion.R

as.undirectedR Documentation

Convert between undirected and unundirected graphs

Description

[Deprecated]

as.undirected() was renamed to as_undirected() to create a more consistent API.

Usage

as.undirected(graph, mode = c("collapse", "each", "mutual"))

Arguments

graph

The graph to convert.

mode

Character constant, defines the conversion algorithm. For as_directed() it can be mutual or arbitrary. For as_undirected() it can be each, collapse or mutual. See details below.


igraph/rigraph documentation built on Sept. 24, 2024, 10:32 a.m.