Skip to main content

shortest_path

Function shortest_path 

Source
pub fn shortest_path<C: Cell>(
    grid: &Grid<C>,
    start: (usize, usize),
    end: (usize, usize),
    constraints: &PathfindingConstraints,
) -> Option<Vec<(usize, usize)>>
Expand description

Find a shortest path between two points using a Dijkstra cost map.