pub fn widest_paths_with_mode(
graph: &Graph,
from: VertexId,
weights: &[f64],
mode: DijkstraMode,
) -> IgraphResult<WidestPaths>Expand description
Mode-aware variant of widest_paths.
Counterpart of igraph_get_widest_paths(_, NULL, NULL, source, vss_all(), weights, mode, parents, inbound_edges).
ยงExamples
use rust_igraph::{Graph, widest_paths_with_mode, DijkstraMode};
let mut g = Graph::with_vertices(3);
g.add_edge(0, 1).unwrap();
g.add_edge(1, 2).unwrap();
let sp = widest_paths_with_mode(&g, 0, &[3.0, 5.0], DijkstraMode::All).unwrap();
assert!(sp.widths[2].is_some());