Skip to main content

to_graph

Function to_graph 

Source
pub fn to_graph(h: &Hypergraph) -> UnGraph<String, ()>
Available on crate feature convert only.
Expand description

The unweighted 1-skeleton (graph projection) of the hypergraph.

XGI parity: xgi.to_graph (convert/graph.py:8-28). Two nodes are linked iff they share at least one hyperedge. Node weights are the node ids (node insertion order); duplicate pairs are added once. Built directly from memberships (no linalg dependency).