Function tree_path

Source
pub fn tree_path<E: TreeEdgeTrait>(
    tr: &Tree<E>,
    u: usize,
    v: usize,
) -> Vec<usize>
Expand description

木上の2頂点を結ぶパス上の頂点列を求める。

Time complexity $O(n)$