1. 学习
  2. /
  3. 课程
  4. /
  5. Predictive Analytics using Networked Data in R

Connected

练习

Centrality features

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

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