mast
computes the maximum agreement subtree (MAST).
Details
The code is derived from the code example in Valiente (2009). The version for the unrooted trees is much slower.
References
G. Valiente (2009). Combinatorial Pattern Matching Algorithms in Computational Biology using Perl and R. Taylor & Francis/CRC Press
Author
Klaus Schliep klaus.schliep@gmail.com based on code of Gabriel Valiente
Examples
tree1 <- rtree(100)
tree2 <- rSPR(tree1, 5)
tips <- mast(tree1, tree2)