Each function returns an unweighted binary tree of class phylo
with
the specified leaf labels. Trees are rooted unless root = FALSE
.
RandomTree()
returns a topology drawn at random from the uniform
distribution (i.e. each binary tree is drawn with equal probability).
Trees are generated by inserting
each tip in term at a randomly selected edge in the tree.
Random numbers are generated using a Mersenne Twister.
If root = FALSE
, the tree will be unrooted, with the first tip in a
basal position. Otherwise, the tree will be rooted on root
.
YuleTree()
returns a topology generated by the Yule process
Steel2001TreeTools,
i.e. adding leaves in turn adjacent to a randomly-chosen existing leaf.
PectinateTree()
returns a pectinate (caterpillar) tree.
BalancedTree()
returns a balanced (symmetrical) tree, in preorder.
StarTree()
returns a completely unresolved (star) tree.