Skip to main content

a_star

Function a_star 

Source
pub fn a_star<F>(
    graph: &HashMap<String, Vec<Edge>>,
    start: &str,
    goal: &str,
    heuristic: F,
) -> Result<(Vec<String>, f64), Error>
where F: Fn(&str, &str) -> f64,
Expand description

A* shortest path.