Expand description
Matrices derived from the bipartite hypergraph substrate.
Row order follows Hypergraph::node_ids (node insertion order); column
order follows Hypergraph::edge_ids (edge insertion order). This is the
III.7 determinism contract and matches XGI’s dict-ordering
(xgi/linalg/hypergraph_matrix.py).
Enums§
- Linalg
Error - Errors raised by linear-algebra operators that have preconditions.
Functions§
- adjacency_
matrix - Adjacency matrix
A(nodes × nodes).A = I·Iᵀwith the diagonal zeroed; then thresholded bysoverlapping edges. Ifweighted, the surviving entries carry the shared-edge count; otherwise they are1.0. - clique_
motif_ matrix - Weighted clique-motif matrix —
adjacency_matrix(H, None, 1, true). - degree_
matrix - Degree vector
K(one entry per node) = incidence row sums. - incidence_
matrix - Dense incidence matrix
I(rows = nodes, cols = edges);I[i,j] = 1iff nodeiis a member of edgej. - incidence_
matrix_ sparse - Sparse (CSR) incidence matrix — same values and ordering as
incidence_matrix, as asprs::CsMat<f64>. - intersection_
profile - Intersection profile
P = Iᵀ·I(edges × edges).P[a,b]is the number of nodes shared by edgesaandb; the diagonal is each edge’s size. - laplacian
- Order-
dLaplacianL = d·diag(K) − A(A = weighted adjacency at orderd). - multiorder_
laplacian - Multiorder Laplacian
Σ_d L_d · w_d / mean(K_d), skipping orders with no edges. - normalized_
hypergraph_ laplacian - Normalized hypergraph Laplacian
L = I − Dv^{-1/2}·Inc·W·De^{-1}·Incᵀ·Dv^{-1/2}.