compute_modularity function

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.

compute_modularity(gr, infLimitYear, supLimitYear)

Arguments

  • gr: Citation graph
  • infLimitYear: Start year of the time window considered (included)
  • supLimitYear: End year of the time window considered (excluded)

Returns

Returns Newman's modularity value of the subgraph restricted to the interval [infLimitYear;supLimitYear[.

Author(s)

Christian Vincenot (christian@vincenot.biz)

See Also

compute_custom_modularity, plot_modularity_timeseries

Examples

labels<-c("Corpus1","Corpus2") # Build a bibliographical dataset from Scopus exports db<-create_bibliography(corpora_files=c(tempfi1,tempfi2), labels=labels, keywords=NA) # Build graph gr<-build_graph(db=db,small.year.mismatch=TRUE, attrs=c("Corpus","Year","Authors"), nb.cores=1) # Compute Modularity compute_modularity(gr, 1990, 2018)
  • Maintainer: Christian Vincenot
  • License: GPL (>= 2)
  • Last published: 2020-04-19

Useful links