dfs

Function dfs 

Source
pub fn dfs<T, ID, II, NI>(
    start: II,
    id_fn: impl Fn(&T) -> ID,
    neighbors_fn: impl FnMut(&T) -> NI,
) -> impl Iterator<Item = T>
where ID: Hash + Eq, II: IntoIterator<Item = T>, NI: IntoIterator<Item = T>,
Expand description

Traverses nodes from start in depth-first order.