pub fn mean_forman_ricci(graph: &Graph) -> IgraphResult<f64>Expand description
Compute the average Forman-Ricci curvature of the graph.
Returns the mean of all edge Forman-Ricci curvatures. Useful as a single scalar graph-level feature.
ยงExamples
use rust_igraph::{Graph, forman_ricci_curvature, mean_forman_ricci};
let g = Graph::from_edges(&[(0,1),(1,2),(0,2)], false, Some(3)).unwrap();
let mean = mean_forman_ricci(&g).unwrap();
assert!((mean - 3.0).abs() < 1e-10);