pub fn centralization_betweenness_wrapper(
graph: &Graph,
normalized: bool,
) -> IgraphResult<CentralizationResult>Expand description
Betweenness centralization: compute per-vertex betweenness scores and the graph-level centralization in one call.
Directedness is derived from graph.is_directed().
Counterpart of igraph_centralization_betweenness().
ยงExamples
use rust_igraph::{Graph, centralization_betweenness_wrapper};
// Star K_{1,4}: normalized betweenness centralization = 1.0.
let mut g = Graph::with_vertices(5);
for v in 1..5u32 { g.add_edge(0, v).unwrap(); }
let r = centralization_betweenness_wrapper(&g, true).unwrap();
assert!((r.centralization - 1.0).abs() < 1e-9);