Session Ready
Exercise

Find ties with high betweenness

In the tidy approach to network science, a network is represented with a pair of data frames: one for nodes and one for ties. Sometimes it is useful to have the information from both of these in a single data frame. For example, the ties data frame contains the IDs of the terrorists, but their names are stored in the nodes data frame.

In this exercise, we will exploit the dplyr function left_join() to extract information from both the nodes and ties data frames.

The graph g, the ties and the nodes are loaded for you. The ties have been fortified with the edge betweenness score.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Use left_join() to left join the ties to the nodes. The by argument matches the from column in the ties to the id column in the nodes.
  • Do the same again, this time matching the to column of the ties to the id column in the nodes.