pub fn distance(
cch: &CchView<'_>,
metric: &MetricView<'_>,
source: u32,
target: u32,
) -> u32Expand description
Point-to-point shortest-path distance from source to target.
Returns INF_WEIGHT if target is unreachable, and 0
when source == target. Convenience wrapper over distance_matrix with a
single source and target.
ยงPanics
Panics if source or target is >= node_count (same as distance_matrix).