Questions tagged [modularity]

A measure of the strength of a network's division into modules (also called clusters, communities, or cliques). Modular networks have higher connectivity within modules and low connectivity between modules. Modularity is often employed as an optimization criterion in algorithms for detecting community structure in networks.

The classic definition of modularity for binary, undirected networks is

$$ Q = \sum_{i=1}^{c} (e_{ii}-a_{i}^2)$$

Where $e_{ii}$ is the fraction of all edges that lie within module $i$, $a_{i}^2$ is the expected fraction of edges lying within module $i$, and $c$ is the number of communities.

Modularity can be extended to weighted networks by replacing $e_{ii}$ with the proportion of the sum of all edge weights that lies within modules, and $a_{i}^2$ with the expected proportion.

Modularity has been extended in various other ways, for example, to accommodate directed networks, bipartite networks, or tripartite networks.

17 questions
46
votes
8 answers

How to do community detection in a weighted social network/graph?

I'm wondering if someone could suggest what are good starting points when it comes to performing community detection/graph partitioning/clustering on a graph that has weighted, undirected edges. The graph in question has approximately 3 million…
11
votes
3 answers

Does Newman's network modularity work for signed, weighted graphs?

The modularity of a graph is defined on its Wikipedia page. In a different post, somebody explained that modularity can easily be computed (and maximized) for weighted networks because the adjacency matrix $A_{ij}$ can as well contain valued ties.…
11
votes
0 answers

What approaches use multiple eigenvectors in graph spectral clustering?

Background: In Newman's PNAS 2006 paper Modularity and community structure in networks, the first eigenvector splits the graph in two clusters, and then each cluster can be further divided by eigenvector of a modified Laplacian of the nodes within…
8
votes
2 answers

Newman's modularity clustering for graphs

I am interested in running Newman's modularity clustering algorithm on a large graph. If you can point me to a library (or R package, etc) that implements it I would be most grateful.
laramichaels
  • 1,119
  • 3
  • 12
  • 12
6
votes
1 answer

Interpreting output of igraph's fastgreedy.community clustering method

With the help of several people in this community I have been wetting my feet in clustering some social network data using igraph's implementation of modularity-based clustering. I am having some trouble interpreting the output of this routine and…
laramichaels
  • 1,119
  • 3
  • 12
  • 12
4
votes
1 answer

Clustering network usign modularity maximization algorithm

I have been working on a Network-based clustering approach. I used "cluster_optimal" of 'igraph' package in R for clustering. The function works by modularity maximization algorithm. I have understood the concept of modularity (Newman, 2006). But I…
4
votes
1 answer

Community detection and modularity

I am reading the book "Network science" of Barabasi and in particular the chapter on community detection. If I understand correctly, modularity is a goodness factor of partition calculated by a certain algorithm: the greater the value of modularity…
marielle
  • 181
  • 1
  • 7
3
votes
1 answer

How to conduct community division of a social network with R?

I am trying to use R to conduct community division within my weighted network (based from an association matrix). I tried with igraph but I encountered some problems. I usually use the program Socprog (Whitehead 2009) for my analysis, but as I would…
Johann MOURIER
3
votes
1 answer

What are the advantages of Louvain method versus K-means for clustering sparse data?

I would like to better understand the strengths of the Louvain method versus K-means for high-dimensional sparse data (e.g. zero-inflated negative binomial gene expression counts or natural language processing matrices). A common procedure is to…
Borlaug
  • 31
  • 6
3
votes
2 answers

Community detection in network

I'm fairly new to the subject of network theory and community detection, and I'm trying to apply to some data that I have. To start, my data essentially looks like this: Basically, what I have is a list of cities, people, and whether or not those…
anjama
  • 307
  • 1
  • 7
2
votes
2 answers

Modularity of graph: why are probabilities of self-loop included?

I'm trying to understand the Newman Modularity (doi:10.1073/pnas.0601602103) by investigating its calculation on the Wikipedia example . My question is why are probabilities of self-loops included in the Q formula while the adjacency matrix A has…
2
votes
0 answers

Network modularity for exactly two communities

I have a number of empirical networks that tend to show bipolarization patterns, meaning that there are precisely two communities. In some networks, the two communities are very clearly separated (like the one shown below) while there is a structure…
1
vote
2 answers

representative nodes in modular network

I want to find the most representative nodes in each module in a modular network. I have used the Louvain algorithm on my graph and found two main modules. Now I want to know what nodes are the most infuential in this structure. e.g. nodes that are…
saghi
  • 13
  • 3
1
vote
1 answer

Can the Louvain Modularity algorithm create communities of unconnected nodes?

I have an implementation of Louvain that is creating communities with unconnected nodes. I want to know if I am doing Louvain wrong or if this is possible in a correct implementation of Louvain? Please see the picture below. What is happening…
1
vote
0 answers

Interpretation of Modularity in R

I used modularity maximization cluster method to make 3 different clusters (4, 5 and 6 clusters) from a network using "Igraph" in R. I found the modularity of the three networks are 0.15, 0.23, and 0.3 respectively. How can I Interpret this…
1
2