Skip to main content

chung_lu_hypergraph

Function chung_lu_hypergraph 

Source
pub fn chung_lu_hypergraph(
    k1: &IndexMap<String, f64>,
    k2: &IndexMap<String, f64>,
    seed: Option<u64>,
) -> Hypergraph
Available on crate feature generators only.
Expand description

Chung–Lu hypergraph from node-degree and edge-size sequences. XGI chung_lu_hypergraph(k1, k2).

k1: node id -> degree; k2: edge id -> size. Determinism: nodes/edges are sorted by value descending with a stable tiebreak on the (insertion-ordered) key, so the traversal is reproducible.