Skip to main content

breadth_first

Function breadth_first 

Source
pub fn breadth_first(
    start: EntityId,
    budget: Budget,
    successors: impl FnMut(EntityId) -> Vec<EntityId>,
) -> Walk
Expand description

Walk breadth-first from start, following successors.

See super::dfs::depth_first for why successors are supplied by the caller rather than derived here.