TreeTools (version 0.1.3)

MRCA: Most Recent Common Ancestor

Description

What is the last common ancestor of the specified tips?

Usage

MRCA(tip1, tip2, ancestors)

Arguments

tip1, tip2

Integer specifying index of tips whose most recent common ancestor should be found.

ancestors

Output of AllAncestors for the tree in question

Value

MRCA returns an integer specifying the node number of the last common ancestor of tip1 and tip2.

See Also

Other tree navigation: AllAncestors, AncestorEdge, DescendantEdges, EdgeAncestry, EdgeDistances, NonDuplicateRoot