Session Ready
Exercise

Weighted Measures of Centrality

Another common measure of important vertices is centrality. There are a number of ways that we can measure centrality, but for this lesson, we'll consider two metrics: eigen centrality and closeness. While eigen centrality has already been covered, closeness is another way of assessing centrality. It considers how close any vertex is to all the other vertices. In earlier lessons, we haven't explicitly considered weighted versus unweighted versions of centrality. In this lesson, we'll calculate both weighted and unweighted versions and see if the change is returned.

In the below example, do you expect to see the same vertex each time? What do you think will be the biggest difference between metrics or between weighted and unweighted versions?

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Calculate the unweighted eigen-centrality with eigen_centrality(). This unweighted calculation takes the same inputs as the weighted eigen-centrality calculation, with the addition of the weights argument set to NA.