pub fn density<N, E, M>(
h: &Hypergraph<N, E, M>,
order: Option<usize>,
max_order: Option<usize>,
ignore_singletons: bool,
) -> f64Available on crate feature
algorithms only.Expand description
Hypergraph density = existing edges / possible edges.
XGI parity: density (properties.py:337-425). order/max_order are
mutually exclusive (order wins); ignore_singletons drops order-0 edges.