GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Louvain method

The Louvain method for community detection is a greedy optimization method intended to extract non-overlapping communities from large networks created by Blondel et al. from the University of Louvain (the source of this method's name). Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

The Louvain method for community detection is a greedy optimization method intended to extract non-overlapping communities from large networks created by Blondel et al. from the University of Louvain (the source of this method's name). ==Modularity optimization== The inspiration for this method of community detection is the optimization of modularity as the algorithm progresses. Modularity is a scale value between −1/2 (non-modular clustering) and 1 (fully modular clustering) that measures the relative density of edges inside communities with respect to edges outside communities. Optimizing this value theoretically results in the best possible grouping of the nodes of a given network. But because going through all possible configurations of the nodes into groups is impractical, heuristic algorithms are used. In the Louvain Method of community detection, first small communities are found by optimizing modularity locally on all nodes, then each small community is grouped into one node and the first step is repeated. The method is similar to the earlier method by Clauset, Newman and Moore that connects communities whose amalgamation produces the largest increase in modularity. Although the Louvain algorithm can correctly identify the community structure when its evidence is sufficiently strong in artificial networks, in particular those sampled from the assortative stochastic block model. , it is prone to finding spurious communities in random graphs and has been shown to systematically overfit empirical data . ==Algorithm description== Q = \frac{1}{2m}\sum_{i=1}^N\sum_{j=1}^N \bigg[A_{ij} - \frac{k_{i} k_{j}}{2m}\bigg]\delta (c_{i}, c_{j}), where: A_{ij} represents the edge weight between nodes and ; see Adjacency matrix; and are the sum of the weights of the edges attached to nodes and , respectively; is the sum of all of the edge weights in the graph; is the total number of nodes in the graph; and are the communities to which the nodes and belong; and \delta is Kronecker delta function: \begin{align} \delta(c_i, c_j) &= \begin{cases} 1 & \text{if } c_i \text{ and } c_j \text{ are the same cluster} \\ 0 & \text{otherwise} \end{cases} \end{align} Based on the above equation, the modularity of a community can be calculated as: \begin{align} Q_c &= \dfrac{1}{2m}\sum_{i}\sum_{j}A_{ij}\mathbf{1}\left\{c_{i}=c_{j}=c \right\} - \left(\sum_{i} \dfrac{k_i}{2m} \mathbf{1}\left\{c_{i}=c \right\} \right)^2 \\ &= \frac{\Sigma_{in}}{2m} - \left(\frac{\Sigma_{tot}}{2m}\right)^2 \end{align} where \Sigma_{in} is the sum of edge weights between nodes within the community (each edge is considered twice); and \Sigma_{tot} is the sum of all edge weights for nodes within the community (including edges which link to other communities). As nodes in different communities do not contribute to the modularity , it can be written as: Q = \sum_c Q_c function moveNodes(Graph G, Partition P): do old_modularity 0, then move v into C' end if end for update current_modularity_of_partition while current_modularity_of_partition > old_modularity return P end function This process is applied repeatedly and sequentially to all nodes until no modularity increase can occur. Once this local maximum of modularity is hit, the first phase has ended. Figure 2 shows how the graph in Figure 1 might look after one iteration of phase 1. function aggregateGraph(Graph G, Partition P): V Figure 3 shows what the graph from Figure 2 would look like after being aggregated. This graph is analogous to the graph in Figure 1 in the sense that each node is assigned to a single community. From here, the process can be repeated so that more nodes are moved into existing communities until an optimal level of modularity is reached. The pseudo-code below shows how the previous two functions work together to complete the process. function louvain(Graph G, Partition P): do P ==Previous uses== Twitter social Network (2.4 Million nodes, 38 million links) by Josep Pujol, Vijay Erramilli, and Pablo Rodriguez: The authors explore the problem of partitioning Online Social Networks onto different machines. Mobile phone Network (4 Million nodes, 100 Million links) by Derek Greene, Donal Doyle, and Padraig Cunningham: Community-tracking strategies for identifying dynamic communities of different dynamic social networks. Detecting species in network-based dynamical model. ==Disadvantages== Louvain produces only non-overlapping communities, which means that each node can belong to at most one community. This is highly unrealistic in many real-world applications. For example, in social networks, most people belong to multiple communities: their family, their friends, their co-workers, old school buddies, etc. In biological networks, most genes or proteins belong to more than one pathway or complex. Furthermore, Louvain has been shown to sometimes produce arbitrarily badly connected communities, and has been effectively superseded (at least in the non-overlapping case) by the Leiden algorithm. A worst case example of an arbitrarily badly connected community is a internally disconnected community. An internally disconnected community arises through the Louvain algorithm when a node that had been acting as a "bridge" between two groups of nodes in its community is moved to a new community, leaving the old one disconnected. The remaining nodes in the old community may also be relocated, but if their connection to the community is strong enough despite the removal of the "bridge" node, they will instead remain in place. For an example of this, see the image to the right; note how the removal of the bridge node, node 0, caused the red community to be split into two disjoint subgroups. While this is the worst-case scenario, there are other, more subtle problems with the Louvain algorithm that can also lead to arbitrarily badly connected communities, such as the formation of communities using nodes that are only weakly connected. Another common issue with the Louvain algorithm is the resolution limit of modularity - that is, multiple small communities being grouped together into a larger community. This causes the smaller communities to be hidden; for an example of this, see the visual depiction of the resolution limit to the right. Note how, when the green community is absorbed into the blue community to increase the graph's modularity, the smaller group of nodes that it represented is lost. There is no longer a way to differentiate those nodes from the nodes that were already in the blue community. Conversely, the nodes that were already in the blue community no longer appear distinct from those that were in the green community; in other words, whatever difference caused them to initially be placed in separate communities has been obscured. Both the resolution limit of modularity and the arbitrarily badly connected community problem are further exacerbated by each iteration of the algorithm. Ultimately, the only thing the Louvain algorithm guarantees is that the resulting communities cannot be merged further; in other words, they're well-separated. To avoid the problems that arise from arbitrarily badly connected communities and the resolution limit of modularity, it is recommended to use the Leiden algorithm instead, as its refinement phase and other various adjustments have corrected these issues. ==Comparison to other methods of non-overlapping community detection== When comparing modularity optimization methods, the two measures of importance are the speed and the resulting modularity value. A higher speed is better as it shows a method is more efficient than others and a higher modularity value is desirable as it points to having better-defined communities. The compared methods are, the algorithm of Clauset, Newman, and Moore, Pons and Latapy, and Wakita and Tsurumi. -/- in the table refers to a method that took over 24hrs to run. This table (from ) shows that the Louvain method outperforms many similar modularity optimization methods in both the modularity and the time categories. ==See also== Leiden algorithm Modularity (networks) Community structure Network science K-means clustering ==References== "The Louvain method for community detection in large networks" Vincent Blondel http://perso.uclouvain.be/vincent.blondel/research/louvain.html

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Louvain method". 1791163480. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378591494

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·