Skip to main content

shortest_path

Function shortest_path 

Source
pub fn shortest_path(g: &CsrGraph, src: u32, dst: u32) -> Option<Vec<u32>>
Expand description

Cheapest path from src to dst as a node-index sequence, or None if unreachable (or either endpoint is out of range).