Skip to main content

find_all_chains

Function find_all_chains 

Source
pub fn find_all_chains(
    graph: &ModuleGraph,
    entry: ModuleId,
    target: &ChainTarget,
    include_dynamic: bool,
) -> Vec<Vec<ModuleId>>
Expand description

Find ALL shortest chains from entry to a specific target (package or module).

Returns up to max_chains distinct shortest paths (all same hop count), deduplicated at the package-name level so chains that differ only by internal file paths are collapsed into one.