Interface LowestCommonAncestorStatic.DataStructure<V,​E>

    • Method Detail

      • findLca

        V findLca​(V u,
                  V v)
        Find the lowest common ancestor of two vertices in the tree.
        Parameters:
        u - the first vertex
        v - the second vertex
        Returns:
        the lowest common ancestor of \(u\) and \(v\)