Learn R Programming

SemNeT (version 1.4.4)

Q: Modularity

Description

Computes a global modularity measure (Q) using the Louvain community detection algorithm

Usage

Q(A)

Value

Returns Q or a measure of how well the communities in the network are compartmentalized

Arguments

A

An adjacency matrix of network data

Author

Alexander Christensen <alexpaulchristensen@gmail.com>

References

Blondel, V. D., Guillaume, J. L., Lambiotte, R., & Lefebvre, E. (2008). Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment, 2008, P10008.

Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. NeuroImage, 52, 1059-1069.

Examples

Run this code
# Pearson's correlation only for CRAN checks
A <- TMFG(similarity(sim.fluency(100), method = "cor"))

modularity <- Q(A)

Run the code above in your browser using DataLab