Generation of the greedy from the bottom tree
genGFBTree
- Generates the rooted binary greedy from the bottom tree in phylo
format with the given number of n
leaves.
genGFBTree(n)
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.
genGFBTree
A single tree of class phylo
is returned.
genGFBTree(n = 6)
Useful links