Exercise

Find the most popular forums day-by-day: I

Great stuff! You're onto the final two exercises - which are really just one long exercise. These will be a good memory workout for your Python programming skills!

We're going to see how many forums took the title of "the most popular forum" on any given time window.

Instructions

100 XP
  • Instantiate a list to hold the list of most popular forums by day called most_popular_forums.
  • Instantiate a list to hold the degree centrality scores of the most popular forums called highest_dcs.
  • Instantiate new graph called G_sub and add in the nodes from the original graph G using the .add_nodes_from() method.
  • Add in edges from the original graph G that fulfill the criteria (which are exactly the same as in the previous exercise).