pub fn radius_weighted(
graph: &Graph,
weights: &[f64],
) -> IgraphResult<Option<f64>>Expand description
OUT-mode default for radius_weighted_with_mode.
ยงExamples
use rust_igraph::{Graph, radius_weighted};
let mut g = Graph::with_vertices(3);
g.add_edge(0, 1).unwrap();
g.add_edge(1, 2).unwrap();
let r = radius_weighted(&g, &[1.0, 2.5]).unwrap();
assert_eq!(r, Some(2.5));