pub fn distance_matrix( graph: &Graph, sources: &[usize], targets: &[usize], ) -> Vec<f64>
Row-major shortest-distance matrix from each source to each target.