graph.tree: Create tree graphs

View source: R/make.R

graph.treeR Documentation

Create tree graphs

Description

[Deprecated]

graph.tree() was renamed to make_tree() to create a more consistent API.

Usage

graph.tree(n, children = 2, mode = c("out", "in", "undirected"))

Arguments

n

Number of vertices.

children

Integer scalar, the number of children of a vertex (except for leafs)

mode

Defines the direction of the edges. out indicates that the edges point from the parent to the children, ⁠in⁠ indicates that they point from the children to their parents, while undirected creates an undirected graph.


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