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 ...

Get Python Data Science Essentials - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.