pub fn radius_with_mode(
graph: &Graph,
mode: EccMode,
) -> IgraphResult<Option<u32>>Expand description
Radius of graph under the given mode. None for vcount == 0.
Counterpart of igraph_radius(_, NULL_weights, _, mode).
ยงExamples
use rust_igraph::{Graph, radius_with_mode, EccMode};
let mut g = Graph::with_vertices(3);
g.add_edge(0, 1).unwrap();
g.add_edge(1, 2).unwrap();
assert_eq!(radius_with_mode(&g, EccMode::All).unwrap(), Some(1));