Skip to main content

reconstruct_path

Function reconstruct_path 

Source
pub fn reconstruct_path(
    source: &str,
    target: &str,
    predecessors: &HashMap<String, Vec<String>>,
) -> Vec<String>
Expand description

Reconstruct a path from a predecessor dictionary. Matches networkx.reconstruct_path(source, target, predecessors).