tmComb function

Generation of the comb or caterpillar tree

Generation of the comb or caterpillar tree

genCombTree - Generates the rooted binary comb tree (also known as caterpillar tree) in phylo format with the given number of n

leaves.

genCombTree(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.

Returns

genCombTree A single tree of class phylo is returned.

Examples

genCombTree(n = 6)

References

  • D. Aldous. Probability Distributions on Cladograms. In Random Discrete Structures, pages 1–18. Springer New York, 1996.
  • Maintainer: Sophie Kersting
  • License: GPL (>= 3)
  • Last published: 2024-08-16

Useful links