O'Reilly logo

Python Data Science Essentials - Third Edition by Luca Massaron, Alberto Boschetti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Types of node centrality

We will now start talking about node centrality, which roughly represents the importance of the node inside the network. It also gives an idea of how well the node connects the network. There are multiple types of centrality that we will look at here, including betweenness centrality, degree centrality, closeness centrality, harmonic centrality, and eigenvector centrality.

  • Betweenness centrality: This type of centrality gives you an idea about the number of shortest paths in which the node is present. Nodes with high betweenness centrality are the core components of the network, and many shortest paths route through them. In the following example, NetworkX offers a straightforward way to compute the betweenness centrality ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required