Session Ready
Exercise

Visualize filtered graph using nxviz

Here, you'll visualize the filtered graph using a CircosPlot. The CircosPlot is a natural choice for this visualization, as you can use node grouping and coloring to visualize the partitions, while the circular layout preserves the aesthetics of the visualization.

Instructions
100 XP
  • Compute degree centrality scores of each node using the bipartite module degree centralities, but based on the degree centrality in the original graph.
    • Use the nx.bipartite.degree_centrality() function for this, with the arguments G and nodes=forum_nodes.
  • Create a new CircosPlot object with nodes colored and grouped (parameters node_color and node_grouping) by their partition label ('bipartite'), and ordered (parameter node_order) by their degree centrality ('dc')
  • Plot the CircosPlot to screen.