aryagraph.algorithms.centrality.eigenvector_centrality#
- aryagraph.algorithms.centrality.eigenvector_centrality(g: Any, max_iter: int = 1000, tol: float = 1e-06, weight: str | Callable[[Hashable, Hashable, dict], float] | None = None) NodeMap[source]#
Eigenvector centrality (left Perron vector, unit Euclidean norm).
Power iteration on
A + Ifrom the uniform vector, stopping when the L1 change is belown·tol(the networkx scheme), so results agree to rounding. Directed graphs score a node by its predecessors.- Raises:
ConvergenceError – If max_iter iterations are not enough.