pub fn basic_stats( from: &[usize], to: &[usize], weight: &[f64], n_nodes: usize, ) -> BasicStats
Compute basic network statistics from edge endpoints and weights.