I'm trying to measure the Bonacich centrality of my network in Python.
I am currently using NetworkX and was not able to find the Bonacich centrality in their documentation.
I'm trying to measure the Bonacich centrality of my network in Python.
I am currently using NetworkX and was not able to find the Bonacich centrality in their documentation.
Copyright © 2021 Jogjafile Inc.
There are many ways to calculate the Bonacich centrality. I create an example of how you might implement it with python. So the steps are:
git repo with the full code
I know there is a way to calculate it with the eigenvalue decomposition and row operation. The result will be the same.