unfold.tree: Convert a general graph into a forest

View source: R/structural.properties.R

unfold.treeR Documentation

Convert a general graph into a forest

Description

[Deprecated]

unfold.tree() was renamed to unfold_tree() to create a more consistent API.

Usage

unfold.tree(graph, mode = c("all", "out", "in", "total"), roots)

Arguments

graph

The input graph, it can be either directed or undirected.

mode

Character string, defined the types of the paths used for the breadth-first search. “out” follows the outgoing, “in” the incoming edges, “all” and “total” both of them. This argument is ignored for undirected graphs.

roots

A vector giving the vertices from which the breadth-first search is performed. Typically it contains one vertex per component.


igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.