Session Ready
Exercise

Find the most strongly connected terrorists

The degree measure from the last exercise measured how many people each person was connected to. However, not all relationships are equal, for example, you typically have a much stronger relationship with your family members than with someone you met in the street. Another centrality measure, strength centrality, takes account of this by assigning a weight to each tie.

The strength measure is calculated using strength(), which takes the network as its only input. You will use it to find the most strongly connected terrorists of the train bombing network.

Again, you will use both igraph and dplyr, which are already loaded in the workspace. The network, g, and its nodes, nodes, are also pre-loaded.

Instructions
100 XP
  • Call mutate() on the data frame nodes to add a strength variable, setting it to the strength centrality of the nodes.
  • Arrange the terrorists in the nodes data frame in descending order of strength. Do you notice any relationship between strength and degree?