This function creates all possible unrooted bi- and multifurcating trees and returns a list of trees as an object of class "multiPhylo"
.
allFurcTrees(n, tip.label=NULL, to.plot=TRUE)
an integer giving the desired number of species.
an optional vector of length n containing the tip names.
an optional logical value indicating whether or not to plot the trees.
A list of trees as an object of class "multiPhylo"
.
This function should be used with caution for n
greater than about 8, as in this case the number of possible trees is extremely large.
Felsenstein, J. 2004. Inferring Phylogenies. Sinauer.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.