Function to compute citation graph modularity over a time window.
Function to compute citation graph modularity over a time window.
This function computes Newman's modularity of the citation graph restricted to a given time window and ignoring nodes belonging to both corpora simultaneously.