fn non_backtracking_dfs<G, F>( graph: &G, source: G::NodeId, visited: &mut G::Map, visitor: F, )where G: Visitable + IntoNeighbors, F: FnMut(G::NodeId),