tree.hh
tree.hh copied to clipboard
Find lowest common ancestor of a set of nodes (not just two)
The lowest_common_ancestor currently supports two iterators. It might be nice to have a version which takes multiple iterators, e.g. a vector or set or range.