Test trees for polytomies, inline nodes (singletons), or reticulation
Methods to test whether trees have (structural) polytomies, inline
nodes (i.e., nodes with a single descendant), or reticulation
(i.e., nodes with more than one ancestor).
check for structural polytomies (1 node has more than 2
descendants) and not polytomies that result from having edges with
a length of 0.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
an object inheriting from class
Some algorithms are unhappy with structural polytomies (i.e., >2
descendants from a node), with single-descendant nodes, or with
reticulation; these functions check those properties. We haven't bothered
to check for zero branch lengths: the consensus is that it doesn't come up
much, and that it's simple enough to test
any(edgeLength(x) == 0) in
these cases. (Single-descendant nodes are used e.g. in OUCH, or in other
cases to represent events occurring along a branch.)
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.