Session Ready
Exercise

Centrality features

In this exercise, you will compute and extract the centrality features betweenness, closeness, and eigenvector centrality.

Instructions 1/3
undefined XP
  • 1

    Extract the normalized betweenness of the nodes using betweenness(). Add it as a node attribute called betweenness.

    • 2

      Extract the normalized closeness using closeness() and add it to network as a node attribute called closeness.

    • 3

      Extract the scaled eigenvector centrality using eigen_centrality() and add its vector attribute as eigenCentrality.