hatvis.centrality.node_edge_eigenvector#
- hatvis.centrality.node_edge_eigenvector(H, kind='linear', p=10.0, tol=1e-10, max_iter=2000)[source]#
Node and edge nonlinear eigenvector centralities (Tudisco and Higham 2021).
Solves the coupled system \(\lambda\mathbf{x}=g(\mathbf{B}\mathbf{W}f(\mathbf{y}))\), \(\mu\mathbf{y}=\psi(\mathbf{B}^\mathsf{T}\varphi(\mathbf{x}))\) with positive \(\mathbf{x}\) (vertices) and \(\mathbf{y}\) (hyperedges), using the iteration \(\mathbf{x}\leftarrow\sqrt{\mathbf{x}\odot g(\mathbf{B}\mathbf{W}f(\mathbf{y}))}\), \(\mathbf{y}\leftarrow\sqrt{\mathbf{y}\odot\psi(\mathbf{B}^\mathsf{T}\varphi(\mathbf{x}))}\) with normalization.
kind:"linear": all maps identity (the HITS-like pair of singular vectors);"log-exp": \(f=g=\mathrm{id}\), \(\varphi=\ln\), \(\psi=\exp\) — a hyperedge is important if all its vertices are (geometric mean);"max": \(\varphi(x)=x^p\), \(\psi(x)=x^{1/p}\) — a hyperedge is as important as its most important vertex (plarge).
Returns
(vertex centrality, edge centrality), each with unit 1-norm.