compute_custom_modularity: Function to compute the custom modularity of a citation graph...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Diderot.R

Description

This function computes custom modularity of the citation graph. Custom modularity here stands for Newman's modularity computed over the subgraph comprising nodes that belong to a single corpus only and are within the time window, as well as direct outgoing neighbors of the former nodes (whatever their year tag). Basically, the citation graph considered thus includes publications within the time window as well as older papers that they cite.

Usage

1
compute_custom_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*)

Value

Returns the custom modularity value of the subgraph restricted to the interval [infLimitYear;supLimitYear[.

Author(s)

Christian Vincenot (christian@vincenot.biz)

See Also

compute_modularity, plot_modularity_timeseries

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Custom Modularity
compute_custom_modularity(gr, 1990, 2018)

Diderot documentation built on April 19, 2020, 4:16 p.m.