SlideShare a Scribd company logo
Communities in Networks
Peter J. Mucha, UNC–Chapel Hill
AGRICULTURE
APPROPRIATIONS
INTERNATIONAL RELATIONS
BUDGET
HOUSE ADMINISTRATION
ENERGY/COMMERCE
FINANCIAL SERVICES
VETERANS’ AFFAIRS
EDUCATION
ARMED SERVICES
JUDICIARY
RESOURCES
RULES
SCIENCE
SMALL BUSINESS
OFFICIAL CONDUCT
TRANSPORTATION
GOVERNMENT REFORM
WAYS AND MEANS
INTELLIGENCE
HOMELAND SECURITY
Outline & Acknowledgements
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
– If time permits (I’ll leave you slides)
4. R Notebook
 Shankar Bhamidi, Skyler Cranmer,
James Fowler, James Gleeson,
Jeff Henderson, Jim Moody,
Marc Niethammer, Andrew Nobel,
J-P Onnela, Mason Porter
 Dani Bassett, Clara Granell,
Kaveri Parker, Saray Shai, Dane
Taylor
 Elizabeth Menninga, Natalie Stanley,
Mandi Traud, Andrew Waugh, William
Weir, James Wilson
 Thomas Callaghan, Scott Emmons,
AJ Friend, Ryan Gibson, Eric Kelsic,
Kevin Macon, Thomas Richardson,
Casey Warmbrand
 ARO, CDC, JSMF, NICHD, NIDDK,
NIGMS, NSF, UNC UCRF
Apologies that this presentation will seriously err on the self-absorbed side.
It’s a big field, and I do not promise to cover even a small piece of it here.
The Real Outline
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
– If time permits (I’ll leave you slides)
4. R Notebook
Apologies that this presentation will seriously err on the self-absorbed side.
It’s a big field, and I do not promise to cover even a small piece of it here.
~25% Theory
~25% Examples
~25% Demonstration
~25% Bad Jokes
 Jim Moody (paraphrased):
“I’ve been accused of turning everything into a network.”
 PJM (in response):
“I’m accused of turning everything into a network and a graph partitioning problem.”
 “Structure  Function”
Philosophical Disclaimer
Images by Aaron Clauset
Karate Club Example
This partition optimizes modularity, 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 Club
“Cris Moore (left) is the
inaugural recipient of the
Zachary Karate Club Club prize,
awarded on behalf of the
community by Aric Hagberg
(right). (9 May 2013)”
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
Community Detection Firehose Overview
 “Hard/rigid” v. “soft/overlapping” clusters
 cf. biclustering methods and mathematics of expander graphs
 A community should describe a “cohesive group”: varying formulations/algorithms
• Linkage clustering (average, single), local clustering coefficients,
betweeness (geodesic, random walk), spectral, conductance,…
 Classic approach in CS: Spectral Graph Partitioning
• Need to specify number of communities sought
 Conductance
 MDL, Infomap, OSLOM, … (many other things I’ve missed) …
 Stochastic Block Models: generative with in/out probabilities between labeled groups
 Modularity: a good partition has more total intra-community edge weight than one would
expect at random (but according to what model?)
“Communities in Networks,” M. A. Porter, J.-P. Onnela & P. J. Mucha,
Notices of the American Mathematical Society 56, 1082-97 & 1164-6 (2009).
“Community Detection in Graphs,” S. Fortunato, Physics Reports 486, 75-174 (2010).
“Community detection in networks: A user guide,” S. Fortunato & D. Hric, Physics Reports 659, 1-44 (2016).
“Case studies in network community detection,” S. Shai, N. Stanley, C. Granell, D. Taylor & P. J. Mucha, arXiv:1705.02305.
Modularity (see Newman & Girvan 2004 and other Newman papers)
Total edge
weight
Modularity
matrix
Indicator on
nodes i & j in
same community
Your data:
Edge from i to j?
Random
“null model”
for expected
edge weight
Modularity (see Newman & Girvan 2004 and other Newman papers)
 GOAL: Assign nodes to communities in order to maximize
quality function Q
 NP-Complete [Brandes et al. 2008]
~ enumerate possible partitions
 Numerous packages developed/developing
• e.g. igraph library (R, python), NetworkX, Louvain
• Need appropriate null model
 ER degree distribution (binomial/Poisson) is not a good model
for many real-world data sets
 Independent edges, constrained to expected
degree sequence same as observed.
 Requires Pij = f(ki)f(kj), quickly yielding
 g resolution parameter ad hoc (default = 1)
[Reichardt & Bornholdt, 2006; Lambiotte et al., 2008 & 2015]
Modularity (see Newman & Girvan 2004 and other Newman papers)
Null Models for Modularity Quality Functions
 Erdős–Rényi (Bernoulli)  Newman-Girvan*
• Leicht-Newman* (directed) • Barber* (bipartite)
Louvain Method (Blondel et al., “Fast unfolding of communities in large networks”, 2008)
“Virality Prediction and Community Structure in
Social Networks”, Weng, Menczer & Ahn (2013)
Melnik et al., “Dynamics on modular networks with
heterogeneous correlations” (2014)
Fraction of active nodes
Watts threshold model
Multi-university Facebook network
Lambiotte, Delvenne & Barahona [arXiv:0812.1770]
showed a way to derive modularity from normalized
Laplacian dynamics, defining partition quality in terms
of stability (autocovariance in Markov process)
Expansion of matrix exponential to first-order in t recovers
Newman-Girvan modularity with resolution g = 1/t.
(This is going to be important again for multilayer networks)
Modularity from Laplacian Dynamics
U.S. Congressional Roll Call as a similarity network
Waugh et al., “Party polarization in Congress: a network science approach” (2009)
AGRICULTURE
APPROPRIATIONS
INTERNATIONAL RELATIONS
BUDGET
HOUSE ADMINISTRATION
ENERGY/COMMERCE
FINANCIAL SERVICES
VETERANS’ AFFAIRS
EDUCATION
ARMED SERVICES
JUDICIARY
RESOURCES
RULES
SCIENCE
SMALL BUSINESS
OFFICIAL CONDUCT
TRANSPORTATION
GOVERNMENT REFORM
WAYS AND MEANS
INTELLIGENCE
HOMELAND SECURITY
Adjacency matrix of similarities is dense
and weighted, cf. other typical networks
(see committees: weighted but sparse)
85th Senate
U.S. Congressional Roll Call as a similarity network
Waugh et al., “Party polarization in Congress: a network science approach” (2009)
85th Senate 108th Senate
Moody & Mucha, “Portrait of political party polarization” (2013)
Parker et al., “Network Analysis Reveals Sex- and Antibiotic Resistance-
Associated Antivirulence Targets in Clinical Uropathogens” (2015)
Parker et al., “Network Analysis Reveals Sex- and Antibiotic Resistance-
Associated Antivirulence Targets in Clinical Uropathogens” (2015)
Outline & Summary
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
4. R Notebook
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
13 Community Detection
Software
Outline & Summary
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
4. R Notebook
Recall the (pesky) resolution parameter?
Fenn et al., “Dynamic Communities in
Multichannel Data: An Application to the
Foreign Exchange Market During the
2007-2008 Credit Crisis” (2009)
Picking resolution parameters still active research
https://github.com/wweir827/CHAMP
“Division I-A” College Football
50,000 Louvain calls
384 unique partitions
But Qs(g) isn’t a point; it’s a line for partition s
50,000 Louvain calls
384 unique partitions
But Qs(g) isn’t a point; it’s a line for partition s
50,000 Louvain calls
384 unique partitions
19 admissible partitions
Pairwise compare admissible partitions
50,000 Louvain calls
384 unique partitions
19 admissible partitions
Human Protein Reactome
20,000 calls
19,980 unique
39 admissible
Human Protein Reactome
20,000 calls
19,980 unique
39 admissible
Self loops of weight r as a form of resolution parameter
Arenas et al., “Analysis of the structure of complex networks at different resolution levels” (2008)
(see also Shai et al., “Case studies in network community detection,” 2017)
Outline & Summary
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
– We are surely out of time… If we had
more time, we would talk a lot about
the refs in the following slides
4. R Notebook
 Networks appear in many
disciplines
 Network representations provide a
flexible framework for studying
general data types, leveraging
methods of social network analysis
and network science.
 Community detection is a powerful
tool for exploring and
understanding network structures,
including multilayer networks.
 Network structures identify
essential features for modeling and
understanding data in applications.
Multilayer Networks
OrderedCategorical
Mucha et al., “Community structure in time-dependent,
multiscale, and multiplex networks” (2010)
Kivelä et al., “Multilayer Networks” (2014)
Multilayer Modularity
Mucha et al., “Community structure in time-dependent, multiscale, and multiplex networks” (2010)
How to count the expected weights of interlayer arcs given that they are definitional to the data structure?
Generalized Lambiotte et al. (2008) connection between modularity and autocorrelation under Laplacian dynamics
to re-derive null models for bipartite (Barber), directed (Leicht-Newman), and signed (Traag et al.) networks,
specified in terms of one-step conditional probabilities
intra-layer
adjacency
data and null
inter-layer
identity arcs
Same formalism works for more general multilayer networks,
with sum over inter-layer connections within same community
U.S. Senators across 2-year Congresses
Mucha et al., “Community
structure in time-dependent,
multiscale, and multiplex
networks” (2010)
Each point is a
Senator in a Congress
Colored bars indicate
temporal extent of each
community, labeled by
nominal party labels
Grey bars indicate Congresses
including more than two
communities
Bassett et al. “Dynamic reconfiguration of human
brain networks during learning” (2011)
Cranmer et al., “Kantian fractionalization predicts the
conflict propensity of the international system” (2015)
• Identified communities of
nation states in multiplex
international relations of trade,
IGOs, democracies
• Granger causal relationship to
total system-level conflict
• Negligible contribution from
joint democracy layer
See mapequation.org
Phys. Rev. X 6, 011036 (2016)
Stanley et al., “Clustering network layers with the
strata multilayer stochastic block model” (2016)
Multilayer CHAMP (Weir et al., 2017)
U.S. Senate Roll Call Similarities (Congresses 1-110)
240,000 GenLouvain calls; 197,879 unique partitions; 1,447 admissible partitions
Community Detection Firehose Overview
 “Hard/rigid” v. “soft/overlapping” clusters
 cf. biclustering methods and mathematics of expander graphs
 A community should describe a “cohesive group”: varying formulations/algorithms
• Linkage clustering (average, single), local clustering coefficients,
betweeness (geodesic, random walk), spectral, conductance,…
 Classic approach in CS: Spectral Graph Partitioning
• Need to specify number of communities sought
 Conductance
 MDL, Infomap, OSLOM, … (many other things I’ve missed) …
 Stochastic Block Models: generative with in/out probabilities between labeled groups
 Modularity: a good partition has more total intra-community edge weight than one would
expect at random (but according to what model?)
“Communities in Networks,” M. A. Porter, J.-P. Onnela & P. J. Mucha,
Notices of the American Mathematical Society 56, 1082-97 & 1164-6 (2009).
“Community Detection in Graphs,” S. Fortunato, Physics Reports 486, 75-174 (2010).
“Community detection in networks: A user guide,” S. Fortunato & D. Hric, Physics Reports 659, 1-44 (2016).
“Case studies in network community detection,” S. Shai, N. Stanley, C. Granell, D. Taylor & P. J. Mucha, arXiv:1705.02305.
Outline & Summary
1. What is community detection and
why is it useful?
2. How do you calculate communities?
– Software links
– Importance of resolution parameters
3. Short intro to multilayer networks
4. R Notebook
 Networks appear in many
disciplines
 Network representations provide a
flexible framework for studying
general data types, leveraging
methods of social network analysis
and network science.
 Community detection is a powerful
tool for exploring and
understanding network structures,
including multilayer networks.
 Network structures identify
essential features for modeling and
understanding data in applications.

More Related Content

PPTX
04 Network Data Collection
PPTX
09 Ego Network Analysis
PPTX
09 Diffusion Models & Peer Influence
PPTX
00 Introduction to SN&H: Key Concepts and Overview
PPTX
05 Whole Network Descriptive Stats
PPTX
15 Network Visualization and Communities
PPTX
07 Whole Network Descriptive Statistics
PPTX
12 SN&H Keynote: Thomas Valente, USC
04 Network Data Collection
09 Ego Network Analysis
09 Diffusion Models & Peer Influence
00 Introduction to SN&H: Key Concepts and Overview
05 Whole Network Descriptive Stats
15 Network Visualization and Communities
07 Whole Network Descriptive Statistics
12 SN&H Keynote: Thomas Valente, USC

What's hot (20)

PPTX
02 Introduction to Social Networks and Health: Key Concepts and Overview
PPTX
01 Network Data Collection (2017)
PDF
00 Automatic Mental Health Classification in Online Settings and Language Emb...
PPTX
10 More than a Pretty Picture: Visual Thinking in Network Studies
PPTX
18 Diffusion Models and Peer Influence
PPTX
03 Communities in Networks (2017)
PPTX
02 Descriptive Statistics (2017)
PPTX
06 Community Detection
PPTX
Mining and analyzing social media part 2 - hicss47 tutorial - dave king
PDF
10 Network Experiments
PPTX
Social Network Analysis: What It Is, Why We Should Care, and What We Can Lear...
PPTX
04 Diffusion and Peer Influence
PPTX
04 Data Visualization (2017)
PPTX
11 Keynote (2017)
PPT
01 Introduction to Networks Methods and Measures
PPTX
11 Network Experiments and Interventions
PPTX
20 Network Experiments
PDF
01 Network Data Collection
PPT
How to conduct a social network analysis: A tool for empowering teams and wor...
02 Introduction to Social Networks and Health: Key Concepts and Overview
01 Network Data Collection (2017)
00 Automatic Mental Health Classification in Online Settings and Language Emb...
10 More than a Pretty Picture: Visual Thinking in Network Studies
18 Diffusion Models and Peer Influence
03 Communities in Networks (2017)
02 Descriptive Statistics (2017)
06 Community Detection
Mining and analyzing social media part 2 - hicss47 tutorial - dave king
10 Network Experiments
Social Network Analysis: What It Is, Why We Should Care, and What We Can Lear...
04 Diffusion and Peer Influence
04 Data Visualization (2017)
11 Keynote (2017)
01 Introduction to Networks Methods and Measures
11 Network Experiments and Interventions
20 Network Experiments
01 Network Data Collection
How to conduct a social network analysis: A tool for empowering teams and wor...
Ad

Similar to 13 Community Detection (20)

PDF
PMED Undergraduate Workshop - Communities & Classification in Disease Data -...
PDF
Network Science: Theory, Modeling and Applications
PDF
20142014_20142015_20142115
PPTX
Social Network Analysis
PPT
Mining and Supporting Community Structures in Sensor Network Research
PPT
Community Analysis of Deep Networks (poster)
PPT
On the Navigability of Social Tagging Systems
PPT
Contractor-Borner-SNA-SAC
PPTX
AI Class Topic 5: Social Network Graph
PDF
Statistical_mechanics_of_complex_network.pdf
PDF
Effective community search_dami2015
PDF
Social Network, Metrics and Computational Problem
PPT
Social Network Based Information Systems (Tin180 Com)
PPTX
Small Worlds Social Graphs Social Media
PPTX
Quantum persistent k cores for community detection
PDF
Open Data is Not Enough: Making Data Sharing Work
PPT
Socialnetworkanalysis (Tin180 Com)
PDF
Node similarity
PDF
Data mining based social network
PMED Undergraduate Workshop - Communities & Classification in Disease Data -...
Network Science: Theory, Modeling and Applications
20142014_20142015_20142115
Social Network Analysis
Mining and Supporting Community Structures in Sensor Network Research
Community Analysis of Deep Networks (poster)
On the Navigability of Social Tagging Systems
Contractor-Borner-SNA-SAC
AI Class Topic 5: Social Network Graph
Statistical_mechanics_of_complex_network.pdf
Effective community search_dami2015
Social Network, Metrics and Computational Problem
Social Network Based Information Systems (Tin180 Com)
Small Worlds Social Graphs Social Media
Quantum persistent k cores for community detection
Open Data is Not Enough: Making Data Sharing Work
Socialnetworkanalysis (Tin180 Com)
Node similarity
Data mining based social network
Ad

More from Duke Network Analysis Center (17)

PPTX
01 Add Health Network Data Challenges: IRB and Security Issues
PPTX
00 Social Networks of Youth and Young People Who Misuse Prescription Opiods a...
PPTX
24 The Evolution of Network Thinking
PPTX
22 An Introduction to Stochastic Actor-Oriented Models (SAOM or Siena)
PPTX
19 Electronic Medical Records
PPTX
17 Statistical Models for Networks
PPTX
11 Respondent Driven Sampling
PPT
00 Differentiating Between Network Structure and Network Function
PDF
00 Arrest Networks and the Spread of Violent Victimization
PPTX
00 Networks of People Who Use Opiods Nonmedically: Reports from Rural Souther...
PPTX
11 Siena Models for Selection & Influence
PPTX
08 Statistical Models for Nets I, cross-section
PPTX
07 Network Visualization
PPTX
04 Ego Network Analysis
PPTX
00 Social Influence Effects on Men's HIV Testing
PPTX
02 Network Canvas
01 Add Health Network Data Challenges: IRB and Security Issues
00 Social Networks of Youth and Young People Who Misuse Prescription Opiods a...
24 The Evolution of Network Thinking
22 An Introduction to Stochastic Actor-Oriented Models (SAOM or Siena)
19 Electronic Medical Records
17 Statistical Models for Networks
11 Respondent Driven Sampling
00 Differentiating Between Network Structure and Network Function
00 Arrest Networks and the Spread of Violent Victimization
00 Networks of People Who Use Opiods Nonmedically: Reports from Rural Souther...
11 Siena Models for Selection & Influence
08 Statistical Models for Nets I, cross-section
07 Network Visualization
04 Ego Network Analysis
00 Social Influence Effects on Men's HIV Testing
02 Network Canvas

Recently uploaded (20)

PPTX
Hypertension_Training_materials_English_2024[1] (1).pptx
PPTX
Pharmacology of Autonomic nervous system
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PDF
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
PPTX
Microbes in human welfare class 12 .pptx
PDF
Sciences of Europe No 170 (2025)
PDF
BET Eukaryotic signal Transduction BET Eukaryotic signal Transduction.pdf
PPTX
Biomechanics of the Hip - Basic Science.pptx
PDF
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
PPT
1. INTRODUCTION TO EPIDEMIOLOGY.pptx for community medicine
PPTX
BODY FLUIDS AND CIRCULATION class 11 .pptx
PPTX
perinatal infections 2-171220190027.pptx
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PPTX
CORDINATION COMPOUND AND ITS APPLICATIONS
PPT
6.1 High Risk New Born. Padetric health ppt
PDF
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PPT
veterinary parasitology ````````````.ppt
PPTX
Science Quipper for lesson in grade 8 Matatag Curriculum
PPTX
POULTRY PRODUCTION AND MANAGEMENTNNN.pptx
Hypertension_Training_materials_English_2024[1] (1).pptx
Pharmacology of Autonomic nervous system
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
Lymphatic System MCQs & Practice Quiz – Functions, Organs, Nodes, Ducts
Microbes in human welfare class 12 .pptx
Sciences of Europe No 170 (2025)
BET Eukaryotic signal Transduction BET Eukaryotic signal Transduction.pdf
Biomechanics of the Hip - Basic Science.pptx
Warm, water-depleted rocky exoplanets with surfaceionic liquids: A proposed c...
1. INTRODUCTION TO EPIDEMIOLOGY.pptx for community medicine
BODY FLUIDS AND CIRCULATION class 11 .pptx
perinatal infections 2-171220190027.pptx
Phytochemical Investigation of Miliusa longipes.pdf
CORDINATION COMPOUND AND ITS APPLICATIONS
6.1 High Risk New Born. Padetric health ppt
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
Biophysics 2.pdffffffffffffffffffffffffff
veterinary parasitology ````````````.ppt
Science Quipper for lesson in grade 8 Matatag Curriculum
POULTRY PRODUCTION AND MANAGEMENTNNN.pptx

13 Community Detection

  • 1. Communities in Networks Peter J. Mucha, UNC–Chapel Hill AGRICULTURE APPROPRIATIONS INTERNATIONAL RELATIONS BUDGET HOUSE ADMINISTRATION ENERGY/COMMERCE FINANCIAL SERVICES VETERANS’ AFFAIRS EDUCATION ARMED SERVICES JUDICIARY RESOURCES RULES SCIENCE SMALL BUSINESS OFFICIAL CONDUCT TRANSPORTATION GOVERNMENT REFORM WAYS AND MEANS INTELLIGENCE HOMELAND SECURITY
  • 2. Outline & Acknowledgements 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks – If time permits (I’ll leave you slides) 4. R Notebook  Shankar Bhamidi, Skyler Cranmer, James Fowler, James Gleeson, Jeff Henderson, Jim Moody, Marc Niethammer, Andrew Nobel, J-P Onnela, Mason Porter  Dani Bassett, Clara Granell, Kaveri Parker, Saray Shai, Dane Taylor  Elizabeth Menninga, Natalie Stanley, Mandi Traud, Andrew Waugh, William Weir, James Wilson  Thomas Callaghan, Scott Emmons, AJ Friend, Ryan Gibson, Eric Kelsic, Kevin Macon, Thomas Richardson, Casey Warmbrand  ARO, CDC, JSMF, NICHD, NIDDK, NIGMS, NSF, UNC UCRF Apologies that this presentation will seriously err on the self-absorbed side. It’s a big field, and I do not promise to cover even a small piece of it here.
  • 3. The Real Outline 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks – If time permits (I’ll leave you slides) 4. R Notebook Apologies that this presentation will seriously err on the self-absorbed side. It’s a big field, and I do not promise to cover even a small piece of it here. ~25% Theory ~25% Examples ~25% Demonstration ~25% Bad Jokes
  • 4.  Jim Moody (paraphrased): “I’ve been accused of turning everything into a network.”  PJM (in response): “I’m accused of turning everything into a network and a graph partitioning problem.”  “Structure  Function” Philosophical Disclaimer Images by Aaron Clauset
  • 5. Karate Club Example This partition optimizes modularity, 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.”
  • 6. Karate Club Club “Cris Moore (left) is the inaugural recipient of the Zachary Karate Club Club prize, awarded on behalf of the community by Aric Hagberg (right). (9 May 2013)”
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. Community Detection Firehose Overview  “Hard/rigid” v. “soft/overlapping” clusters  cf. biclustering methods and mathematics of expander graphs  A community should describe a “cohesive group”: varying formulations/algorithms • Linkage clustering (average, single), local clustering coefficients, betweeness (geodesic, random walk), spectral, conductance,…  Classic approach in CS: Spectral Graph Partitioning • Need to specify number of communities sought  Conductance  MDL, Infomap, OSLOM, … (many other things I’ve missed) …  Stochastic Block Models: generative with in/out probabilities between labeled groups  Modularity: a good partition has more total intra-community edge weight than one would expect at random (but according to what model?) “Communities in Networks,” M. A. Porter, J.-P. Onnela & P. J. Mucha, Notices of the American Mathematical Society 56, 1082-97 & 1164-6 (2009). “Community Detection in Graphs,” S. Fortunato, Physics Reports 486, 75-174 (2010). “Community detection in networks: A user guide,” S. Fortunato & D. Hric, Physics Reports 659, 1-44 (2016). “Case studies in network community detection,” S. Shai, N. Stanley, C. Granell, D. Taylor & P. J. Mucha, arXiv:1705.02305.
  • 11. Modularity (see Newman & Girvan 2004 and other Newman papers) Total edge weight Modularity matrix Indicator on nodes i & j in same community Your data: Edge from i to j? Random “null model” for expected edge weight
  • 12. Modularity (see Newman & Girvan 2004 and other Newman papers)  GOAL: Assign nodes to communities in order to maximize quality function Q  NP-Complete [Brandes et al. 2008] ~ enumerate possible partitions  Numerous packages developed/developing • e.g. igraph library (R, python), NetworkX, Louvain • Need appropriate null model
  • 13.  ER degree distribution (binomial/Poisson) is not a good model for many real-world data sets  Independent edges, constrained to expected degree sequence same as observed.  Requires Pij = f(ki)f(kj), quickly yielding  g resolution parameter ad hoc (default = 1) [Reichardt & Bornholdt, 2006; Lambiotte et al., 2008 & 2015] Modularity (see Newman & Girvan 2004 and other Newman papers)
  • 14. Null Models for Modularity Quality Functions  Erdős–Rényi (Bernoulli)  Newman-Girvan* • Leicht-Newman* (directed) • Barber* (bipartite)
  • 15. Louvain Method (Blondel et al., “Fast unfolding of communities in large networks”, 2008)
  • 16. “Virality Prediction and Community Structure in Social Networks”, Weng, Menczer & Ahn (2013)
  • 17. Melnik et al., “Dynamics on modular networks with heterogeneous correlations” (2014) Fraction of active nodes Watts threshold model Multi-university Facebook network
  • 18. Lambiotte, Delvenne & Barahona [arXiv:0812.1770] showed a way to derive modularity from normalized Laplacian dynamics, defining partition quality in terms of stability (autocovariance in Markov process) Expansion of matrix exponential to first-order in t recovers Newman-Girvan modularity with resolution g = 1/t. (This is going to be important again for multilayer networks) Modularity from Laplacian Dynamics
  • 19. U.S. Congressional Roll Call as a similarity network Waugh et al., “Party polarization in Congress: a network science approach” (2009) AGRICULTURE APPROPRIATIONS INTERNATIONAL RELATIONS BUDGET HOUSE ADMINISTRATION ENERGY/COMMERCE FINANCIAL SERVICES VETERANS’ AFFAIRS EDUCATION ARMED SERVICES JUDICIARY RESOURCES RULES SCIENCE SMALL BUSINESS OFFICIAL CONDUCT TRANSPORTATION GOVERNMENT REFORM WAYS AND MEANS INTELLIGENCE HOMELAND SECURITY Adjacency matrix of similarities is dense and weighted, cf. other typical networks (see committees: weighted but sparse) 85th Senate
  • 20. U.S. Congressional Roll Call as a similarity network Waugh et al., “Party polarization in Congress: a network science approach” (2009) 85th Senate 108th Senate
  • 21. Moody & Mucha, “Portrait of political party polarization” (2013)
  • 22. Parker et al., “Network Analysis Reveals Sex- and Antibiotic Resistance- Associated Antivirulence Targets in Clinical Uropathogens” (2015)
  • 23. Parker et al., “Network Analysis Reveals Sex- and Antibiotic Resistance- Associated Antivirulence Targets in Clinical Uropathogens” (2015)
  • 24. Outline & Summary 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks 4. R Notebook
  • 35. Outline & Summary 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks 4. R Notebook
  • 36. Recall the (pesky) resolution parameter? Fenn et al., “Dynamic Communities in Multichannel Data: An Application to the Foreign Exchange Market During the 2007-2008 Credit Crisis” (2009)
  • 37. Picking resolution parameters still active research https://github.com/wweir827/CHAMP
  • 38. “Division I-A” College Football 50,000 Louvain calls 384 unique partitions
  • 39. But Qs(g) isn’t a point; it’s a line for partition s 50,000 Louvain calls 384 unique partitions
  • 40. But Qs(g) isn’t a point; it’s a line for partition s 50,000 Louvain calls 384 unique partitions 19 admissible partitions
  • 41. Pairwise compare admissible partitions 50,000 Louvain calls 384 unique partitions 19 admissible partitions
  • 42. Human Protein Reactome 20,000 calls 19,980 unique 39 admissible
  • 43. Human Protein Reactome 20,000 calls 19,980 unique 39 admissible
  • 44. Self loops of weight r as a form of resolution parameter Arenas et al., “Analysis of the structure of complex networks at different resolution levels” (2008) (see also Shai et al., “Case studies in network community detection,” 2017)
  • 45. Outline & Summary 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks – We are surely out of time… If we had more time, we would talk a lot about the refs in the following slides 4. R Notebook  Networks appear in many disciplines  Network representations provide a flexible framework for studying general data types, leveraging methods of social network analysis and network science.  Community detection is a powerful tool for exploring and understanding network structures, including multilayer networks.  Network structures identify essential features for modeling and understanding data in applications.
  • 46. Multilayer Networks OrderedCategorical Mucha et al., “Community structure in time-dependent, multiscale, and multiplex networks” (2010) Kivelä et al., “Multilayer Networks” (2014)
  • 47. Multilayer Modularity Mucha et al., “Community structure in time-dependent, multiscale, and multiplex networks” (2010) How to count the expected weights of interlayer arcs given that they are definitional to the data structure? Generalized Lambiotte et al. (2008) connection between modularity and autocorrelation under Laplacian dynamics to re-derive null models for bipartite (Barber), directed (Leicht-Newman), and signed (Traag et al.) networks, specified in terms of one-step conditional probabilities intra-layer adjacency data and null inter-layer identity arcs Same formalism works for more general multilayer networks, with sum over inter-layer connections within same community
  • 48. U.S. Senators across 2-year Congresses Mucha et al., “Community structure in time-dependent, multiscale, and multiplex networks” (2010) Each point is a Senator in a Congress Colored bars indicate temporal extent of each community, labeled by nominal party labels Grey bars indicate Congresses including more than two communities
  • 49. Bassett et al. “Dynamic reconfiguration of human brain networks during learning” (2011)
  • 50. Cranmer et al., “Kantian fractionalization predicts the conflict propensity of the international system” (2015) • Identified communities of nation states in multiplex international relations of trade, IGOs, democracies • Granger causal relationship to total system-level conflict • Negligible contribution from joint democracy layer
  • 51. See mapequation.org Phys. Rev. X 6, 011036 (2016)
  • 52. Stanley et al., “Clustering network layers with the strata multilayer stochastic block model” (2016)
  • 53. Multilayer CHAMP (Weir et al., 2017)
  • 54. U.S. Senate Roll Call Similarities (Congresses 1-110) 240,000 GenLouvain calls; 197,879 unique partitions; 1,447 admissible partitions
  • 55. Community Detection Firehose Overview  “Hard/rigid” v. “soft/overlapping” clusters  cf. biclustering methods and mathematics of expander graphs  A community should describe a “cohesive group”: varying formulations/algorithms • Linkage clustering (average, single), local clustering coefficients, betweeness (geodesic, random walk), spectral, conductance,…  Classic approach in CS: Spectral Graph Partitioning • Need to specify number of communities sought  Conductance  MDL, Infomap, OSLOM, … (many other things I’ve missed) …  Stochastic Block Models: generative with in/out probabilities between labeled groups  Modularity: a good partition has more total intra-community edge weight than one would expect at random (but according to what model?) “Communities in Networks,” M. A. Porter, J.-P. Onnela & P. J. Mucha, Notices of the American Mathematical Society 56, 1082-97 & 1164-6 (2009). “Community Detection in Graphs,” S. Fortunato, Physics Reports 486, 75-174 (2010). “Community detection in networks: A user guide,” S. Fortunato & D. Hric, Physics Reports 659, 1-44 (2016). “Case studies in network community detection,” S. Shai, N. Stanley, C. Granell, D. Taylor & P. J. Mucha, arXiv:1705.02305.
  • 56. Outline & Summary 1. What is community detection and why is it useful? 2. How do you calculate communities? – Software links – Importance of resolution parameters 3. Short intro to multilayer networks 4. R Notebook  Networks appear in many disciplines  Network representations provide a flexible framework for studying general data types, leveraging methods of social network analysis and network science.  Community detection is a powerful tool for exploring and understanding network structures, including multilayer networks.  Network structures identify essential features for modeling and understanding data in applications.