Skip to main content

reconstruct_path

Function reconstruct_path 

Source
pub fn reconstruct_path(
    predecessors: &HashMap<NodeId, NodeId>,
    source: NodeId,
    target: NodeId,
    total_cost: Cost,
) -> Path
Expand description

Reconstruct path from predecessors map