Trait graph::wcc::Components

source ·
pub trait Components<NI> {
    // Required methods
    fn component(&self, node: NI) -> NI;
    fn to_vec(self) -> Vec<NI>;
}

Required Methods§

source

fn component(&self, node: NI) -> NI

source

fn to_vec(self) -> Vec<NI>

Implementors§

source§

impl<NI: Idx> Components<NI> for Afforest<NI>

source§

impl<NI: Idx> Components<NI> for DisjointSetStruct<NI>