pub fn component_iterator<'a>(
        &'a self,
    ) -> impl Iterator<Item = (NodeIndex, &'a Node)> + 'a {
        self.graph
            .node_indices()
            .map(move |idx| (idx, &self.graph[idx]))
    }
/// Returns an iterator over all the nodes (components).
Returns an iterator over all the nodes (components).
Returns an iterator over all the nodes ( components ) .
pub fn component_iterator<'a>(
        &'a self,
    ) -> impl Iterator<Item = (NodeIndex, &'a Node)> + 'a {
        self.graph
            .node_indices()
            .map(move |idx| (idx, &self.graph[idx]))
    }
pub fn component_iterator < ' a > ( & ' a self , ) -> impl Iterator < Item = ( NodeIndex , & ' a Node ) > + ' a { self . graph . node_indices ( ) . map ( move | idx | ( idx , & self . graph [ idx ] ) ) }
Returns an iterator over all the nodes (components).
Returns an iterator over all the nodes ( components ) .
&'a self