as.directed: Convert between directed and undirected graphs

View source: R/conversion.R

as.directedR Documentation

Convert between directed and undirected graphs

Description

[Deprecated]

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 be mutual or arbitrary. For as_undirected() it can be each, collapse or mutual. See details below.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.