generate_tree: Generates a tree-structured graph

View source: R/graph_util.R

generate_treeR Documentation

Generates a tree-structured graph

Description

Generates a tree-structured graph

Usage

generate_tree(size, children = 2, direction = "undirected")

Arguments

size

is the number of nodes

children

is the number of children each node has (in addition to a parent node)

direction

defines whether the edges are directed inwards, outwards or undirected. Possible values can be 'in', 'out' and 'undirected' (default)

Value

igraph object


seekme94/influence.mining documentation built on Aug. 2, 2022, 10:19 p.m.