Function chu_liu_edmonds

Source
pub fn chu_liu_edmonds<E: EdgeTrait>(
    g: &Graph<Directed, E>,
    root: usize,
) -> Vec<&E>
where E::Weight: Ord + Copy + Sub<Output = E::Weight>,
Expand description

有向グラフ上の最小有向全域木を求める

Time complexity $O(VE)$