Compute the eigenvector centrality for the graph G.
Uses the power method to find the eigenvector for the largest eigenvalue of the adjacency matrix of G.
Parameters: | G : graph
max_iter : interger, optional
tol : float, optional
nstart : dictionary, optional
|
---|---|
Returns: | nodes : dictionary
|
See also
Notes
The eigenvector calculation is done by the power iteration method and has no guarantee of convergence. The iteration will stop after max_iter iterations or an error tolerance of number_of_nodes(G)*tol has been reached.
For directed graphs this is “right” eigevector centrality. For “left” eigenvector centrality, first reverse the graph with G.reverse().