Skip to main content

cut_to_order

Function cut_to_order 

Source
pub fn cut_to_order(
    h: &Hypergraph,
    order: i64,
) -> Result<Hypergraph, ConvertError>
Available on crate feature convert only.
Expand description

A copy of the hypergraph keeping only edges of order ≤ order.

XGI parity: xgi.cut_to_order (convert/higher_order_network.py:219-244). Edge order is len(members) - 1. Errors if order exceeds the network’s maximum edge order. Nodes are preserved even when their edges are cut.