Session Ready
Exercise

Find the most connected terrorists

The challenge of this exercise is to spot the most connected terrorists of the train bombing network. We will take advantage of the most simple and popular centrality measure in network science: degree centrality. The degree of each node is the number of adjacent ties it has. In the context of this dataset, that means the number of other people that person is connected to.

The centrality degree is calculated using degree(), which takes the graph object (not the nodes) as its only input.

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 degree variable, setting it to the degree centrality of the nodes.
  • Arrange the terrorists in the nodes data frame in desc()ending order of degree.