fn with_dfs<G, F, R>( g: G, space: Option<&mut DfsSpace<<G as GraphBase>::NodeId, <G as Visitable>::Map>>, f: F, ) -> Rwhere G: GraphRef + Visitable, F: FnOnce(&mut Dfs<G::NodeId, G::Map>) -> R,
Create a Dfs if it’s needed