Skip to main content

is_connected

Function is_connected 

Source
pub fn is_connected<N, E, M>(h: &Hypergraph<N, E, M>) -> bool
Available on crate feature algorithms only.
Expand description

Whether the hypergraph is connected (one component; empty ⇒ trivially so is undefined — matches XGI, which indexes list(H.nodes)[0], so guard empty). XGI parity: xgi.is_connected(H) (connected.py:16-45).