Exercise

Plotting important vertices

Lastly, we'll visualize the graph with the size of the vertex corresponding to centrality. However, we already know the graph is highly skewed, so there will likely be a lot of visual noise. So next, we'll want to look at how connected the most central vertices are. We can do this by creating a subgraph based on centrality criteria. This is an important technique when dealing with large graphs. Later, we'll look at alternative visualization methods, but another powerful technique is visualizing subgraphs.

The graph, retweet_graph, its vertex betweenness, retweet_btw, and the 0.99 betweenness quantile, betweenness_q99 are available.

Instructions 1/2

undefined XP
    1
    2
  • Transform retweet_btw by adding 2 then taking the natural log().
  • Set the size attribute of the vertices, V()$size, of retweet_graph to transformed_btw.
  • Plot retweet_graph. Some arguments have been set to improve the appearance.