find_path_bounded

Function find_path_bounded 

Source
pub fn find_path_bounded<H>(
    graph: &Graph,
    start: usize,
    goal: usize,
    heuristic: H,
    max_cost: f64,
) -> Option<(f64, Vec<usize>)>
where H: Fn(usize) -> f64,
Expand description

A* algorithm with early termination and path weight limit