Color nodes by centrality

More features could be added to calculate node and edge centrality, such as:

  • centrality_power()
  • centrality_degree()
ggraph(luv_graph, layout = "stress") + 
  geom_edge_link() + 
  geom_node_point(aes(colour = centrality_power()))