Community Detection in R at SNH 2023�Peter J. Mucha, Dartmouth College
Partitions
CHAMP
Fixed Points
Map Parameters
Facebook�Traud et al., “Comparing community structure to characteristics in �online collegiate social networks” (2011)�Traud et al., “Social structure of Facebook networks” (2012)
Caltech 2005:�Colors indicate residential “House” affiliations�Purple = Not provided
Facebook�Traud et al., “Comparing community structure to characteristics in �online collegiate social networks” (2011)�Traud et al., “Social structure of Facebook networks” (2012)
Caltech 2005:�Colors indicate residential “House” affiliations
Facebook�Traud et al., “Comparing community structure to characteristics in �online collegiate social networks” (2011)�Traud et al., “Social structure of Facebook networks” (2012)
Caltech 2005:�Colors indicate residential “House” affiliations�Purple = Not provided
Takeaway Messages
Partitions
CHAMP
Fixed Points
Map Parameters
This is the typical user:
Network Scientists with Karate Trophies �http://networkkarate.tumblr.com/
Zachary Karate Club
This partition optimizes modularity (at default resolution) which measures �the number of intra-community ties (relative to a random model)
“If your method doesn’t work on this network, then go home.”
Modularity with resolution parameter γ�(Newman & Girvan, 2004; Reichardt & Bornholdt, 2006)
Indicator on nodes i & j in
same community
Adjacency data:
Edge/weight from i to j
“Null model” expected edge weight,�typically product of node degrees (undirected): ki kj /(2m)
Optimization: Find partition σ of nodes in communities to maximize Q�Resolution parameter γ indirectly controls number/sizes of communities
“Modularity matrix”
Convex Hull of Admissible Modularity Partitions
How to pick γ? (1) CHAMP
50,000 Louvain calls
384 unique partitions
Qσ(γ) isn’t a point. Each partition σ defines a line.
50,000 Louvain calls
384 unique partitions
19 admissible partitions
Qσ(γ) isn’t a point. Each partition σ defines a line.
50,000 Louvain calls
384 unique partitions
19 admissible partitions
Modularity-SBM Equivalence (Newman, 2016)
K
Fixing v. Varying K for �Zachary’s Karate Club
Fixing K=2
Varying K
Zachary Karate Club
This partition optimizes modularity (at default resolution) which measures �the number of intra-community ties (relative to a random model)
“If your method doesn’t work on this network, then go home.”
Karate Club: “ModularityPruning”�Iterative Map on Parameter Space
Takeaway Messages
Partitions
CHAMP
Fixed Points
Map Parameters