Skip to contents

[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.