Skip to main content

density

Function density 

Source
pub fn density<N, E, M>(
    h: &Hypergraph<N, E, M>,
    order: Option<usize>,
    max_order: Option<usize>,
    ignore_singletons: bool,
) -> f64
Available 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.