genMBTree {poweRbal}R Documentation

Generation of the maximally balanced tree

Description

genMBTree - Generates the rooted binary maximally balanced tree in phylo format with the given number of n leaves.

Usage

genMBTree(n)

Arguments

n

Integer value that specifies the desired number of leaves, i.e., vertices with in-degree 1 and out-degree 0.
Due to the restrictions of the phylo or multiphylo format, the number of leaves must be at least 2 since there must be at least one edge.

Value

genMBTree A single tree of class phylo is returned.

References

Examples

genMBTree(n = 6)

[Package poweRbal version 0.0.1.1 Index]