check_parsimony
take a vector of shifts edges, and check whether the
number of groups of the tips induced by this allocation is exactly the number of
shifts plus one. This is equivalent to parsimony when there is no homoplasy (i.e. no
convergent regimes).
Details
This function computes explicitly the clustering of the tips, using
function clusters_from_shifts
.
By default, this function uses enumerate_tips_under_edges
to compute
the list of tips under each edge, but a list can be provided (to avoid extra
computation, if many tests on the same tree are done).