pub fn centralization_betweenness_tmax(n: u32, directed: bool) -> f64Expand description
Theoretical maximum betweenness centralization for a star graph.
Returns NaN for n == 0.
ยงExamples
use rust_igraph::centralization_betweenness_tmax;
// Undirected, 5 vertices: (5-1)*(5-1)*(5-2)/2 = 24
let tmax = centralization_betweenness_tmax(5, false);
assert!((tmax - 24.0).abs() < 1e-9);