Skip to main content

Module algorithms

Module algorithms 

Source
Available on crate feature algorithms only.
Expand description

Hypergraph algorithms. All functions take &Hypergraph<N,E,M> first.

Gated behind the algorithms feature (in the default set). Component and distance orderings follow node insertion order (III.7 determinism), a deliberate improvement over XGI’s hash-set iteration.

Modules§

assortativity
Degree assortativity of a hypergraph (xgi/algorithms/assortativity.py).
centrality
Hypergraph centralities (xgi/algorithms/centrality.py).
clustering
Nodal clustering coefficients (xgi/algorithms/clustering.py).
connected
Connected components of a hypergraph (xgi/algorithms/connected.py).
properties
Structural properties of a hypergraph (xgi/algorithms/properties.py).
shortest_path
Unit-hop shortest paths on a hypergraph (xgi/algorithms/shortest_path.py).
simpliciality
Simpliciality measures (xgi/algorithms/simpliciality.py).