Available on crate feature
algorithms only.Expand description
Structural properties of a hypergraph (xgi/algorithms/properties.py).
Functions§
- degree_
counts - Occurrences of each degree value, index = degree, from 0 to max degree.
XGI parity:
degree_counts(properties.py:244-282). - degree_
histogram - Observed degrees (ascending) and their counts.
XGI parity:
degree_histogram(properties.py:285-318). - density
- Hypergraph density = existing edges / possible edges.
XGI parity:
density(properties.py:337-425).order/max_orderare mutually exclusive (order wins);ignore_singletonsdrops order-0 edges. - edge_
neighborhood - The edge neighbourhood of a node: the members of each edge containing it,
excluding the node itself (or including it if
include_self). XGI parity:edge_neighborhood(properties.py:200-241). - incidence_
density - Density of the incidence matrix = nnz / (n · num_edges_considered).
XGI parity:
incidence_density(properties.py:428-494). - is_
possible_ order - Whether
dis a possible order (0 ≤ d ≤ max order). XGI parity:is_possible_order(properties.py:144-161). - is_
uniform - The order of uniformity if all non-singleton edges share one size, else
None. XGI parity:is_uniform(properties.py:164-197) — returnsd = size − 1on success,Falseotherwise (mapped toNone), with one documented deviation (see below). - max_
edge_ order - Maximum edge order (max size − 1).
Nonefor an empty hypergraph with no nodes;Some(0)when there are nodes but no edges. XGI parity:max_edge_order(properties.py:120-141), with one documented deviation (see below). - num_
edges_ order - Number of edges of order
d(sized+1); all edges ifdisNone. XGI parity:num_edges_order(properties.py:92-117). - unique_
edge_ sizes - Unique edge sizes in ascending order. XGI parity:
unique_edge_sizes(properties.py:321-334).