'Is there a way to print every iteration of nx.eigenvector_centrality_numpy?
I'm looking for Eigenvector Centrality with nx.eigenvector_centrality_numpy() where the graph is directed and weighted.
I'm curious, is there a way so that I can print each iteration or at least know in how many iterations this iteration method converges. Because, if I calculate manually, the eigenvalues/eigenvector in my case don't converge because they don't have dominant eigenvalues. e.ig |\lamda1|=|\lambda2|
Below is the example about printing each iteration that I want and the calculating of my case manually that doesn't converge
STEP 99
----------
Eigen Value = 3.70328
Eigen Vector:
0.51640
0.77460
0.25820
0.25820
errror=0.6172133998483682
STEP 100
----------
Eigen Value = 4.32049
Eigen Vector:
0.71714
0.47809
0.35857
0.35857
Not convergent in given maximum iteration!
And this's what I got when using nx.eigenvector_centrality_numpy (which is converge):
{'a': 0.3779644730092272,
'b': 0.7559289460184544,
'c': 0.3779644730092272,
'd': 0.3779644730092272}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
