Function petgraph::algo::with_dfs

source ·
fn with_dfs<G, F, R>(
    g: G,
    space: Option<&mut DfsSpace<<G as GraphBase>::NodeId, <G as Visitable>::Map>>,
    f: F,
) -> R
where G: GraphRef + Visitable, F: FnOnce(&mut Dfs<G::NodeId, G::Map>) -> R,
Expand description

Create a Dfs if it’s needed