How to get smallest subtree containing a set of nodes from BioPhylo?
The common_ancestor function should give you the result you want: it gives you the tree (I think) that is the most recent common ancestor of all the given targets.