Skip to contents

Finalises the nodal sets for any characters that may have involved the inapplicable token and counts excess regions of applicability at nodes having at least two descendant subtrees that possess any applicable characters. Because this function needs to be fairly high-performance, it does not do much checking for parameter validity, thus unsafe usage of this function might not be caught. It is up to calling functions to ensure that the appropriate parameters have been set before use.

Usage

mpl_second_up_recon(node_id, left_id, right_id, anc_id, morphyobj)

Arguments

node_id

The index of the node being reconstructed.

left_id

The index of the left descendant.

right_id

The index of the right descendant.

anc_id

The index of the immediate ancestor of the node.

morphyobj

An instance of the Morphy object.

Value

The integral parsimony length (right now)

Author

Thomas Guillerme