pub fn degree_skewness(graph: &Graph) -> IgraphResult<f64>Expand description
Compute the skewness of the degree distribution.
γ₁ = (1/n) Σ_v ((d(v) - d̄) / σ)³
Measures asymmetry of the degree distribution. Positive skewness means a right tail (few high-degree hubs), negative means left tail. Returns 0.0 for graphs with fewer than 3 vertices or zero variance.
§Examples
use rust_igraph::{Graph, degree_skewness};
// K_3: all degrees equal → skewness = 0
let g = Graph::from_edges(&[(0,1),(1,2),(0,2)], false, Some(3)).unwrap();
assert!(degree_skewness(&g).unwrap().abs() < 1e-10);