Fast unfolding of communities in large networks
Paper · 2008 · Vincent D. Blondel, Jean‐Loup Guillaume, Renaud Lambiotte et al.
Summary
A network can record who calls whom, which pages link to each other, or which papers cite one another. Once the network is large enough, following individual links gives little sense of how it is organized. Blondel and colleagues ask whether a computer can find groups of densely connected nodes quickly enough to make that organization visible. They use modularity, a score that compares the weight of links inside the proposed groups with the weight expected from the connectivity of their members. Searching for the exact best partition is computationally hard, so the authors design a heuristic that looks for improvements it can evaluate cheaply.
The method alternates between moving nodes and combining them. It starts with each node in its own community and repeatedly moves individual nodes to neighboring communities when doing so improves modularity. When these moves run out, it replaces each community with a node and collects the original links into weighted links between the new nodes. It can then move an entire earlier community in a single operation. Repeating the process gives a sequence of nested partitions, from finer groups near the beginning to larger groups near the end. The final partition is the last one the search can improve, and the earlier partitions are also available for inspection.
The experiments show how far this approach could scale on the authors’ machine. On the nd.edu web graph, the method reached modularity of .935 in 3s. The authors also processed the Stanford WebBase network, with 118 million nodes and 1 billion links, in 152 minutes. Tests on synthetic networks measured recovery of planted groups as well as modularity on networks without supplied labels. In a Belgian phone network of 2.6 million customers, call patterns alone produced communities whose membership was generally dominated by one declared language. A large community between the French- and Dutch-speaking clusters could be examined in more detail by going back to a finer partition.
The distinction between the final partition and the earlier ones matters. In a ring of densely connected cliques, the first pass recovers the individual cliques, while the next pass combines them into pairs that maximize modularity. That example shows how a fine partition can retain structure that disappears as the score improves. The authors test the accuracy of the final partition and illustrate what the hierarchy can reveal. Establishing the accuracy of its intermediate levels remains an open question in the paper.
Deep dive: Fast unfolding of communities in large networks
How Blondel and colleagues find communities in large networks by moving nodes locally, then grouping whole communities at coarser scales. · about 33 minutes to read
The problem and its context
What a partition is meant to show
A graph describes a system through nodes and links. A node might stand for a telephone customer, a scientific paper, or a webpage. A link records a relationship that matters for the application, and its weight can express the strength of that relationship. In the phone example, the weight comes from the number of calls between customers. The graph makes those individual relationships explicit. Finding communities asks what larger units they form.
The authors formulate community detection as a partitioning problem. Every node belongs to a group, and the groups together cover the network. The hoped-for result has substantial connectivity within groups and relatively sparse connectivity between them. A useful partition can reveal units whose membership was unknown before the analysis. A collection of webpages might separate into groups associated with different subjects. A social network might contain clusters that are recognizable once someone looks at their members and the links among them. These are reasons to look for a partition. The interpretation of any particular group still depends on what the graph records.
A partition also offers a way to look at the network at a scale a reader can follow. If a group becomes a single point in a drawing, links between points can show the aggregate relationships between groups. The resulting picture can make some questions easier to ask. A reader can look for clusters of communities or a group between them, then return to the original graph or a finer partition for detail. This use of a partition calls for information at several resolutions. A single flat assignment gives one view, while a sequence of nested assignments can show how groups are assembled.
The paper treats the existence of several organizational scales as an important part of the problem. A group can have dense links within it when viewed from the outside and still contain smaller groups that a closer view would bring out. The meaning of a group therefore depends partly on the level at which the network is being examined. A method that produces several resolutions can support both whole-network analysis and inspection of individual regions. Whether its levels correspond to meaningful organization is a separate question that has to be investigated.
What modularity gives the search
The phrase “densely connected” is an intuitive description. An algorithm needs a rule it can apply to compare proposed partitions. The paper uses modularity, which scores the weight observed within communities against an expectation derived from the connectivity of the nodes. A node with substantial total link weight contributes more to that expectation than a node with little link weight. The score therefore asks whether the links inside the groups are unusually concentrated given the connectivity of their members.
That comparison matters because a large or heavily connected group can accumulate a great deal of internal weight on account of its size or connectivity alone. A raw count gives no reference for interpreting that amount. Modularity assigns an expected contribution to pairs of nodes and compares it with what the graph actually contains. The score accumulates these comparisons for pairs that the partition puts together. Changing the group boundaries changes which comparisons are included.
Modularity has distinct roles in the paper. It is the objective the proposed method tries to improve, which makes it part of the algorithm. It is also a common measure for comparing the partitions returned by different methods. If a method obtains a higher value on the same graph, its partition scores better by that criterion. The authors also use evidence of other kinds, such as planted groups in synthetic graphs and customer languages in the phone graph. Those observations address whether a high-scoring partition captures a grouping that can be recognized independently.
The computational problem arises when the score is used as an objective. The authors point out that finding an exact modularity optimum is computationally hard. A practical method on a large graph has to decide which possible changes to consider and when to stop. A narrow search can save time and may settle early on a partition far from the best score. A broader search can offer better opportunities to improve the score at greater computational cost. The paper’s method changes the size of the units it can move as the search proceeds.
What earlier methods could do
The introduction groups earlier community detection approaches by their operations. Divisive methods identify links that appear to run between communities and remove them. Agglomerative methods build larger groups by recursively merging nodes or communities judged similar. Optimization methods seek a partition that scores well under an explicit objective. The new method belongs to the optimization family, with an aggregation operation that makes its subsequent optimization steps possible at a larger scale.
The main speed comparison in the introduction is with the method of Clauset, Newman and Moore. Its greedy rule repeatedly merges communities to increase modularity. The authors say that this approach can give substantially lower scores than simulated annealing, a more costly way to search for a high-scoring partition. They also describe a tendency for greedy merging to form very large groups, even in synthetic graphs with little discernible community structure. In their account, those groups are both a concern for interpretation and a cause of slow computation.
The authors describe the work of Wakita and Tsurumi as a response to the speed problem. Its heuristics favor more balanced mergers and allow the greedy approach to run on networks with a few million nodes. Balancing the mergers changes the search, so it can also affect the result. The new method takes a different route to reducing the amount of work. A community can gain or lose individual nodes during local optimization, and the graph on which later passes operate is built only after those local revisions settle.
The scale of published applications explains why this distinction mattered. Among the earlier examples the authors cite are a protein interaction graph with 30,739 nodes, a retail graph with about 400,000 items, and a Japanese social network with about 5.5 million users. They set those examples alongside much larger systems whose graphs would be of interest. The challenge was to make community detection practical on graphs with a great many nodes and links while preserving enough of the grouping to support analysis. A method also had to produce a useful answer soon enough for someone to examine it and. where possible, return to a different level of detail.
The method, step by step
From individual nodes to groups of groups
The algorithm begins with the weighted graph itself. Every node starts in a separate community. It visits a node, checks the communities represented among that node’s neighbors, and asks how modularity would change if the node joined each candidate. An improving move changes the partition immediately. Later visits therefore use the group assignments as they stand at the time of the visit.
A node can be visited again because the possibilities around it can change. A community that was a poor destination at an earlier visit may have gained nodes that are well connected to it. A community that seemed attractive may have lost members. The local phase continues until a sweep through the available moves produces no further improvement. At that point, for the current units and the tested neighboring destinations, the partition is locally optimal. This is a statement about the moves available in that phase.
The next phase changes the units. Each community becomes a node in a smaller graph. A link between new nodes holds the total weight of the links that ran between their corresponding communities. Links whose endpoints lie in the same community become a self-loop, a link from the new node to itself. This preserves the internal weight when the original community is represented by a single node.
The algorithm can apply the same local procedure to the smaller graph. Moving one of its nodes now means moving all the original nodes represented by it together. A sequence of individually unattractive moves on the original graph can thus become a single admissible move on the aggregated graph. Every community formed at this coarser level is a union of communities from the preceding level. Keeping track of the unions makes it possible to assign original nodes to communities at any level produced in the run.
From node moves to a hierarchy of communities
The steps in order.
The authors call the combination of local optimization and aggregation a pass. An aggregation that changes the graph reduces the number of nodes available to the next pass. The most detailed search is therefore at the beginning, when every original node can be moved separately. Later passes generally have fewer units to consider, and each unit carries more of the original graph with it. The stopping rule ends the iteration when the process yields no further change.
The procedure is unsupervised. It uses the graph and its weights to make decisions, with no community labels to fit, and the output partition changes as the search progresses. In the synthetic experiments, the planted assignments are used for scoring recovery after a run. In the phone analysis, language is used to characterize the groups after they have been computed. In both cases, separating the information used to build communities from the information used to assess them makes the comparison interpretable. The authors made their implementation available for download.
How modularity scores a partition
The modularity formula brings together the observed adjacency weights, the expected weight used for comparison, and the current assignments. In the paper’s notation it is
Q = (1 / 2m) Σᵢ,ⱼ [Aᵢⱼ − (kᵢkⱼ / 2m)] δ(cᵢ, cⱼ)
Here Q is the modularity of the partition. The indices i and j identify nodes, and Σᵢ,ⱼ sums over their ordered pairs. Aᵢⱼ is the weight in the adjacency representation for the connection between i and j. The quantity kᵢ is the sum of the adjacency weights in the row for node i, so it is the node’s total incident weight under that representation. The quantity kⱼ is the corresponding total for node j. The symbol m denotes half the sum of all adjacency entries, making 2m the total adjacency weight in the normalization. For an undirected graph, off-diagonal adjacency weights occur in both orientations. The symbol cᵢ gives the community assigned to i, and cⱼ gives the assignment for j. The function δ returns 1 when its arguments agree and 0 otherwise. The brackets enclose the observed weight minus its expected counterpart. The outer factor puts the weighted sum on the modularity scale.
The comparison term involving kᵢ and kⱼ depends on how heavily connected the nodes are in the graph as a whole. Holding everything else fixed, a pair of strongly connected nodes has a higher reference weight than a pair of weakly connected nodes. A link contributes evidence for grouping its endpoints to the extent that its weight exceeds the reference. The distinction between a pair’s observed weight and its reference is also important when there is no link. Such a pair can still make a negative contribution if it is inside a community and the reference expects weight there.
The assignment function determines which terms enter the score. If two nodes are in different communities, their pair term drops out of the sum. This does not make cross-community links irrelevant to the score. They contribute to the incident-weight totals and the normalization for the whole graph. The expected contribution for a group therefore depends partly on how much connectivity its members have outside it. That dependence also matters when interpreting a community on its own, with its external links removed.
The authors give the range of modularity as -1 to 1. A value measures a partition under this particular comparison. It is not a fraction of correctly assigned nodes, and a network can have a reported modularity without any independently supplied group labels. This is why the real-graph comparison and the planted-group tests can ask different questions without giving conflicting answers.
Why a prospective move is cheap to score
The formula for Q describes the score globally, but a move only changes the memberships of the communities that lose or gain the node. There is no need to evaluate every pair in the graph each time. The authors break the operation into removing a node from its old community and considering an insertion into a candidate community. Their gain expression gives the insertion part for a node temporarily treated as isolated from any community assignment other than its own.
ΔQ = [ (Σᵢₙ + kᵢ,ᵢₙ) / (2m) − ((Σₜₒₜ + kᵢ) / (2m))² ] − [ Σᵢₙ / (2m) − (Σₜₒₜ / (2m))² − (kᵢ / (2m))² ]
The symbol ΔQ is the change in modularity in the insertion expression. The node under consideration is i, and the destination community, called C in the paper, is the group summarized by Σᵢₙ and Σₜₒₜ. The first of these is the total internal link weight of C under the counting used for the expression. The second is the total weight incident to its members. The quantity kᵢ is the total weight incident to node i. The paper describes kᵢ,ᵢₙ as the weight linking i to members of C and uses it here as the increment to the internal-weight term. The quantity m is the same graph-wide weight total used to normalize Q. The superscript ² means that the normalized incident-weight quantity is squared. The first bracket gives the contribution after inserting i. The second gives the separate contributions before insertion, with i treated on its own for this comparison. Their difference gives the gain.
The expression uses a convention worth making explicit when reading it alongside the definition of Q. The full adjacency sum counts a connection between distinct nodes in both orientations. Internal weights and the increment to them must use consistent counts when implementing a gain calculation. An adjacency representation that stores each undirected link only once needs to account for the two orientations when an edge becomes internal. A self-loop carried by a node on an aggregated graph contributes internal weight whether that node is separate or attached to another community. Its unchanged contribution cancels when the two assignments are compared. These are consequences of computing the change in the same Q on both sides of the move.
The first bracket has two effects. Connecting i to members of C adds observed weight inside the group. Inserting i also increases the total incident weight assigned to C, changing how much internal weight the reference expects. The gain weighs those effects against the contributions when i and C are separate. A destination with more actual link weight to i can still be a poorer move if the change in expected weight is large enough. The test is the net change in the score.
The removal step has a corresponding calculation. In practice the search can compute the effect of taking i out of its present community, then combine it with each candidate insertion effect. The relevant graph information is the node’s incident weight, how its neighbor weights are distributed over current communities, and the totals kept for those communities. A node with several neighbors in the same community supplies several contributions to that candidate’s link weight. The community is the candidate destination, and the amount of link weight to it is obtained from those connections.
Among the candidates, the algorithm accepts the move with the greatest positive gain. The authors specify a tie-breaking rule for equal gains without making a particular tie-breaking strategy the focus of the method. If the search finds no positive net gain, the node remains in its community. Since a move is committed before the next decision, the order of visits can change which moves become available or attractive. The authors’ preliminary tests suggest that order can affect running time and had little apparent effect on the resulting scores in the cases they examined.
What aggregation preserves and what it makes possible
Consider a pair of communities after local optimization. Their mutual link weight in the next graph is the sum of the weights of original links that cross from one to the other. The internal links of each community become its self-loop. This representation retains the information needed to score partitions that keep those communities intact. The original endpoints of a link can matter for splitting an existing community. For assigning that whole community to a larger group, the total weight to other communities is sufficient.
This follows from the form of modularity. When a partition on the smaller graph assigns two aggregated nodes to the same group, all original nodes represented by those aggregated nodes receive the same coarse assignment. All of their observed link contributions can be summed together before the score is calculated. The expectation term also combines through the sums of incident weights. Self-loops are needed to carry the within-community contributions into the aggregated calculation. With consistent weights, scoring the coarse assignment corresponds to scoring the same grouping of original nodes.
An aggregation itself therefore gives a compact representation of a partition already found. The gain comes from the subsequent moves on that representation. Suppose a dense group has enough internal connectivity that peeling off its members would lower modularity. That group can stay intact during local optimization on the original graph. At the next level the method can compare the gain from joining the whole group to another group. This is how the restriction to single-node moves at any given level leads to a search that can nonetheless rearrange larger sets.
The same design makes the hierarchy irreversible within a run. After a set of original nodes becomes one node of the aggregated graph, subsequent decisions act on it as a unit. Earlier communities remain available as an output the reader can inspect, but the coarse optimization cannot detach a particular original member from its aggregate. The apparent size of a move thus grows with each aggregation, while the available choices inside an earlier community narrow. This is a characteristic of the search that helps explain both its efficiency and the kinds of partitions it can reach.
The authors attribute much of the speed to the combination of inexpensive local scoring and a rapid reduction in the graph size. The first phase on the original graph accounts for much of the computation because it handles the most nodes and the most detailed links. The authors’ simulations on sparse synthetic graphs suggest that running time can grow roughly linearly on typical sparse data. That observation describes their empirical setting. A graph that compresses well after local optimization offers a different amount of subsequent work from one in which nearly all nodes remain separate.
Experiments and results
Running time and modularity on shared benchmarks
The comparison pairs each reported modularity value with the time taken to obtain it. The baselines are Clauset, Newman and Moore, referred to as CNM, Pons and Latapy, referred to as PL, and Wakita and Tsurumi, referred to as WT. The implementations were compiled and tested on the same machine, described as a bi-opteron 2.2k with 24GB of memory. An unreported entry in the comparison table indicates computation beyond 24 hours. This convention matters on the larger graphs, where the available evidence for a baseline can be a time cutoff without a completed partition to score.
The Karate Club graph has 34 nodes and 77 links. The proposed method, PL, and WT each reach modularity of .42, while CNM reaches .38. The table shows 0s for all of these runs. This is a useful small example of ties under the score and under the reported timing. The table’s recording precision leaves no basis for distinguishing the running times on that graph.
Arxiv is a graph of scientific papers and citations, with 9k nodes and 24k links in the comparison table. Here the proposed algorithm reaches modularity of .813 in a recorded time of 0s. CNM reaches .772 in 3.6s, PL reaches .757 in 3.3s, and WT reaches .761 in 0.7s. The figures establish the comparison for the tested runs. The recorded 0s is the paper’s time entry and does not specify a finer timing.
On the Internet subnetwork, with 70k nodes and 351k links, the authors obtain .781 in 1s. PL reaches .729 in 575s, CNM reaches .692 in 799s, and WT reaches .667 in 62s. The baseline with the lowest reported time also has the lowest modularity on this graph. The proposed algorithm has both the highest reported score and the lowest reported time. Seeing the two measures together makes the evidence more informative than ranking the methods on either measure alone.
The nd.edu web graph has 325k nodes and 1M links. CNM gives the strongest baseline modularity in this comparison at .927, with a running time of 5034s. WT reports the lowest baseline time at 248s and scores .898. PL scores .895 in 6666s. The proposed method reaches .935 in 3s. This graph provides a direct comparison with completed numbers for each method, and the separate charts show how the ranking by score relates to the ranking by time.
Modularity by algorithm on the nd.edu web graph
The proposed method reaches the highest modularity in the comparison.
The numbers
| System or setting | modularity |
|---|---|
| Clauset, Newman and Moore | .927 |
| Pons and Latapy | .895 |
| Wakita and Tsurumi | .898 |
| Blondel and colleagues (this paper) | .935 |
Computation time by algorithm on the nd.edu web graph
The proposed method finishes sooner than each baseline on the shared machine.
The numbers
| System or setting | seconds |
|---|---|
| Clauset, Newman and Moore | 5034 |
| Pons and Latapy | 6666 |
| Wakita and Tsurumi | 248 |
| Blondel and colleagues (this paper) | 3 |
For the phone graph, the table records 2.6M nodes and 6.3M links. The proposed method reports modularity of .769 in 134s. WT, the baseline with a completed result in the table, reports .56 in 464s. The authors suggest that the difference in score could reflect WT’s preference for balanced mergers and the uneven community sizes produced by their method. The comparison establishes a difference between the completed runs. The proposed explanation draws on the behavior of the algorithms and the grouping that was observed.
The largest web graphs
The next scale of application concerns two much larger collections of web links. The uk-2005 graph is a subnetwork of the .uk domain. It contains 39 million nodes and 783 million links. The proposed algorithm obtains modularity of .979, with a time listed as 738s in the table. The discussion describes the running time as 12 minutes. The comparison table contains no completed baseline partition for this graph under its cutoff.
The WebBase 2001 graph comes from the Stanford WebBase crawler. The authors describe it as having 118 million nodes and 1 billion links. The proposed method reaches modularity of .984, and the result is reported in the discussion as taking 152 minutes. As on uk-2005, the result demonstrates that the authors could run the method at this scale. Its modularity describes the partition produced. There is no completed baseline score in the table against which to compare it.
These web-graph results address feasibility, while the smaller shared benchmarks address relative speed and score with more direct comparisons. The large cases show that aggregation and local search can be used together on actual link collections at the reported sizes. They do not supply external community memberships for checking whether the resulting web groups correspond to particular subjects or other meaningful units. Their primary results are that the runs completed and that the partitions obtained high modularity.
The authors also examine how many times the algorithm had to pass from the current graph to a coarser one. In the Karate Club case, the first pass reduces the 34 original nodes to 6 communities. The second leaves four communities. The third makes no further change and the procedure stops. The discussion reports 3 passes for this case and says that the count in the examples being discussed is smaller than 5. This trace shows that the stopping pass belongs to the reported count and that the succession of changing partitions can be short even when several resolutions are available.
Recovery when the groups are known
Tests on planted networks address a different aspect of quality. The authors use synthetic graphs with 128 nodes assigned in advance to 4 communities of 32 nodes each. A pair from the same planted community is connected with probability pᵢₙ, the within-community linking probability. A pair drawn from different planted communities is connected with probability pₒᵤₜ, the between-community linking probability. These assignments give the authors a known partition for comparison with the output of the search.
The paper reports the fraction of nodes correctly identified and also uses normalized mutual information. The first measure reports recovery at the level of individual assignments under the benchmark’s comparison with its planted groups. The second expresses how much information about one assignment is shared by the other, on a normalized scale. It can be used to assess agreement between partitions even though the names of the groups in an algorithm’s output have no inherent relation to the names used when constructing the graph.
The fraction of correctly identified nodes is 0.67 at zₒᵤₜ = 8, 0.92 at zₒᵤₜ = 7, and 0.98 at zₒᵤₜ = 6. The setting zₒᵤₜ concerns connections outside the planted group. Across the reported settings, the algorithm recovers more nodes correctly as the outward connectivity is reduced. These are fractions of recovered assignments in the synthetic benchmark, so they should be read separately from the modularity scores on the real networks. The paper describes the recovery results as similar to those of Pons and Latapy and of Reichardt and Bornholdt. It names the approach of Duch and Arenas and simulated annealing as methods known to the authors that recovered the assignments more accurately, at a computational cost that limited them to smaller graphs.
In a separate benchmark, the authors report normalized mutual information for macro-communities, the larger planted groups. It is almost 1 for the mixing parameter k₃ up to 35 and reaches 0.5 when k₃ is around 55. The figure of interest here is agreement with the larger planted grouping as mixing changes. The result gives a sense of how recovery deteriorates under the reported conditions. It does not assign a recovery score to each level of the hierarchy generated by the method.
What the Belgian phone groups reveal
The phone study uses calls from customers of a Belgian mobile operator over a 6 month period. Customers are represented by surrogate identifiers. A weighted link between customers reflects their total calls during the observation period. The records also carry attributes such as declared language and postal code. Those attributes give the researchers a way to inspect the communities after finding them from call weights. The paper notes that the network has features typical of social graphs, including a high clustering coefficient and a degree distribution with a long tail. In practical terms, the first concerns how frequently connections around a person form closed groups, while the second indicates that connectivity varies substantially across people.
The algorithm identifies a hierarchy of six levels, with each customer a separate community at the bottom. At the top there are 261 communities with more than 100 customers, accounting for about 75% of the customer population in the network. The authors examine the language composition of those 261 groups. Their community graph represents about 2M customers. In its drawing, the size of a community node reflects its membership, and a scale from red for French to green for Dutch shows the dominant language. This is a view of the subset admitted by the size threshold.
The measure of language homogeneity is the percentage of members who speak the community’s dominant language. It approaches 1 when a community becomes almost entirely single-language. The authors identify 36 communities with more than 10,000 customers. For all except the large community at the interface of the main language clusters, more than 85% of members speak the dominant language. That finding concerns the composition of groups built using only the call graph. The alignment is evidence that patterns of contact reflect the language distinction in this operator’s network.
The mixed community gives a concrete example of how to use the output’s finer levels. In the coarser drawing, it lies between predominantly French- and predominantly Dutch-speaking parts of the graph. Looking at its constituent groups at a lower level, the authors find subcommunities with strong connections to one another and mixed membership of their own. The coarse group’s composition therefore does not have to be explained by placing separate homogeneous groups together. The finer view suggests that linguistic mixing is present inside the constituent groups as well.
The customer records permit French, Dutch, English, and German language declarations. The authors describe English-speaking customers as spread fairly evenly across the communities. More than 60% of German-speaking customers are concentrated in one community. They suggest geography as a possible explanation, since they describe German speakers as concentrated near Germany and English speakers as more dispersed. They also report that the mean link strength between French-speaking communities is 54% stronger than that between Dutch-speaking communities. This comparison measures intercommunity link strength in the observed graph. The authors treat it as a reason to investigate other differences in network structure.
What the ablations show
The paper reports no component-removal ablations and instead examines the sequence of partitions, changes in planted-graph mixing, preliminary effects of node order, and the structure of particular results.
When the finer partition survives in the hierarchy
The sharpest illustration uses a ring of 30 cliques. A clique is a set whose nodes are all connected to each other. Each clique in this graph has 5 nodes, and adjoining cliques in the ring are connected by single links. The construction makes a clear grouping visible by inspection. There is dense connectivity within each clique and sparse connectivity across its boundary. The test asks what happens when that evident grouping is subjected to modularity optimization at different stages in the search.
After the first pass, the partition separates the individual cliques. The algorithm has reached a point where the permitted moves of single nodes do not take it to a better partition. Moving one member of a clique away would give up much of its close connectivity to the rest of that clique. Aggregation changes the question. The new nodes represent complete cliques, so the next pass can move a complete clique while keeping its dense internal links inside the proposed group.
In the second pass, the method puts cliques in groups of two. The paper identifies that pairing as a global maximum of modularity for the ring. The result exposes the resolution limit in a way that can be seen in the output itself. The fine groups are present in the search history, and optimization at a coarser scale then prefers a partition that combines them. The sequence is informative because the graph has a known construction and the partition that maximizes the score can be compared with that construction.
The example also clarifies which part of the method is doing which work. Single-node moves make the fine boundary difficult to cross one member at a time. Aggregation subsequently makes an entire dense group eligible to cross that boundary in one move. Retaining the partition from each pass is what allows a reader to see both results. The test illustrates those mechanisms together. It does not time otherwise identical runs with and without aggregation or measure how frequently the earlier level will recover fine structure across other sorts of graphs.
What changing the graph reveals
The planted benchmarks control a different variable. Their known grouping supplies a target, and changing the extent of connections across groups changes the strength of the structural evidence for that target. As outward connectivity increases in the smaller benchmark, exact recovery by the reported node measure becomes harder. The macro-community results likewise show weaker agreement at greater mixing. These comparisons test sensitivity to the evidence available in the graph, with the procedure for assigning nodes to groups left intact.
The baseline experiments reveal a possible tradeoff involving community size. WT had been designed with merger balance in mind, and the authors find that on the phone graph their method produces communities of uneven size with a higher modularity score than WT’s completed run. Those observations motivate the suggestion that requiring more balanced mergers can be costly on this graph. To attribute the difference to that choice alone would require a comparison that varies the balance rule while holding the rest of the search fixed. The reported comparison uses different algorithms, so several aspects of the search can contribute.
The phone graph also permits an analysis across resolutions within one run. The authors focus on a particular large group because it looks mixed in the coarse view. At a finer level, the constituent groups are themselves heterogeneous. This is a more specific observation than the coarse community’s overall language proportions. It shows that the hierarchy can change the interpretation of a result even when the data and the scoring rule are fixed. It remains an inspection of a particular part of one network, with no supplied target partition for the subcommunities.
The pass counts give supporting evidence about the cost of aggregation. A short sequence such as the Karate Club trace shows how quickly the number of units can shrink. It also shows why there can be a final pass with no change after the meaningful levels have already appeared. The paper’s general account is that most computation occurs early, when the graph is large. These observations are consistent with that account. The experiments do not itemize the fraction of computation spent updating local gains, aggregating links, or revisiting nodes.
What the preliminary order check establishes
Sequential updates make visiting order a meaningful choice. A node visited immediately after its neighbor has moved may find a different community available, or a different gain for joining it, than it would have found one step earlier. As a consequence, different orders can send the same graph along different paths of improving assignments. A similar final modularity can be reached by those paths even if some of the group memberships differ.
The authors say that preliminary checks on several cases found little apparent influence of ordering on the eventual modularity, with an influence on running time. This is an observation about the reported score and cost. The checks do not establish that the resulting partitions agree, that order is unimportant on all graphs, or which order is most efficient. The paper raises the prospect of improving the visiting order and leaves its effect for more detailed study.
The conclusion also proposes ending a local search when the available gain falls below a threshold, or temporarily removing degree 1 nodes and adding them back after community computation. These suggestions target places where the implementation might spend time for a small return. The paper treats their effect on the final partition as a question to investigate. Its reported results are evidence for the alternating search as studied, without a controlled estimate for either proposed shortcut.
Limitations
What the authors identify
The authors explicitly distinguish between producing intermediate partitions and validating them. They say their accuracy checks concern the final partition. The ring and phone examples give reasons to look at earlier levels, and the search provides a clear local criterion at each level. A good value under that criterion alone cannot establish that an intermediate assignment matches the true organization of a graph. The authors call for closer examination on synthetic networks with known hierarchies, graphs without planted communities, and comparisons with methods whose resolution can be tuned.
They describe a qualitative test that could help assess the subcommunities of a final group. One could take the group in isolation, drop links to the rest of the graph, apply the algorithm again, and see whether it returns similar subdivisions to those found at the preceding level of the original run. Their expectation rests on the local nature of the moves. Isolation also changes the incident weights and total graph weight used by modularity, so exact agreement would be more than the local rule alone implies. The paper presents this reasoning as suggestive and calls for more systematic validation.
The resolution limit is another explicitly stated qualification. Finer groups may appear early and then merge as the search improves modularity through coarser moves. The ring demonstrates the value of keeping the intermediate partition, while also showing that the final assignment remains subject to the scoring criterion’s preference for larger groups in that case. The paper’s multi-level output provides access to partitions at several scales. It leaves the choice of which level is useful to the reader and to further evaluation.
For the very large runs, the authors report that storing the graph in main memory set the practical limit. They point to the prospect of applying the approach to networks that are larger still, with the largest completed run in the paper being the WebBase case. The simulations that suggest roughly linear behavior on typical sparse data are empirical. They give no general bound on the number of local revisits, on the number of useful aggregations, or on running time across all graph structures. The effect of the proposed speed heuristics and of node order likewise remains open.
What follows from the experimental setup
The local stopping rule certifies that the search has exhausted improving moves of the kind it tests at the current level. Other changes may improve the score, including moves that would require revising which original nodes were grouped at an earlier level. Aggregation gives the search access to group moves, and committing to an aggregate also leaves some original-node rearrangements out of reach. The global maximum identified for the ring follows from that special example. The real-network results supply achieved scores, with no exact optimality certificate for those scores.
Timing comparisons also have a particular scope. A shared machine makes the timings useful for comparing the completed runs in the table. The blank cells give evidence about the cutoff and provide no completed outcome for the missing method and graph combinations. The web-graph applications demonstrate scale for the authors’ implementation and hardware. They leave unanswered how the relative performance would change with a different implementation, hardware configuration, or graph shape. The rounded timing entries on the smallest cases likewise cannot resolve small differences.
Modularity, planted-group recovery, and agreement with a recorded attribute each answer a different question. Modularity compares observed internal weight with a graph-based reference. Recovery benchmarks can compare an output with known assignments because the data were generated from them. The linguistic analysis establishes that the divisions inferred from calls align strongly with declared language in the observed population. Comparable external validation is unavailable for the large web graphs in the paper. A high score on the web graphs therefore supports a claim about the stated objective, with the meaning of particular groups still to be examined.
The planted examples support recovery under the reported graph construction and mixing settings. A reader has limited evidence about the stability of a complete hierarchy across other network structures or across visits in different orders. The fact that a final score is similar in preliminary ordering checks gives limited information about that stability. Several partitions can produce similar scores while placing a boundary differently. Establishing reproducible membership at a particular resolution would require evidence about the membership itself.
The phone analysis is an observational study of one operator’s customers, using a particular window of calls and a coarse linguistic view that excludes communities at or below the display threshold. A community’s linguistic composition is evidence about the members represented in those records. The authors’ suggestions about geography, integration, and social behavior are interpretations of the patterns. For instance, a group’s position between language clusters can motivate a question about what would happen if it were removed. The study observes the group and its connections, without testing the effect of that removal on social contact. The link-strength difference between the language clusters is likewise an observed difference for which the paper does not isolate a cause.
What came after
Later papers citing Blondel and colleagues span graphs with quite different meanings. Their titles identify the problems they tackle, from political communities to relationships among words, documents, and legal decisions. A citation establishes a connection to the community detection paper. The details below describe the later tasks and where the connection can be understood from those tasks. The titles alone leave the role of modularity, the particular grouping procedure, and the use of intermediate partitions unspecified.
The study of the French presidential election brings the community question to political activity on Twitter. Its subject is groups in a social setting, making it the closest parallel in this list to the Belgian phone application. Both settings raise the question of how to interpret a group identified through network relationships. The political subject of the Twitter study and the linguistic analysis of phone customers give those groups different contexts. Political Communities on Twitter: Case Study of the 2022 French Presidential Election
Another citing work uses complex networks to study changing scientific concepts in the Chemical Revolution. Its subject places the emphasis on scientific concepts and their relationships. This extends the range of questions that motivate looking at network organization. The nodes and links in Blondel and colleagues’ examples represent relatively direct records such as customers and calls or pages and links. In the Chemical Revolution study, the network is a means of examining conceptual change. Modeling Changing Scientific Concepts with Complex Networks
The work on Ukrainian court decisions treats citations as material for building a legal graph. Its title identifies extraction, analysis of network structure, and clustering informed by an ontology as parts of the undertaking. It shares the concern with large citation graphs and adds a substantive legal framework to the clustering problem. The named role of an ontology makes domain organization an explicit part of the later task, while the WebBase experiment in Blondel and colleagues reports modularity for a graph of web links. Automatic Construction of a Legal Citation Graph from 100 Million Ukrainian Court Decisions
In work on query translation, the organizing units are multilingual word clusters. The task is cross-language retrieval, where the system must express a query so it can find material in another language. The title makes the clusters instrumental to a downstream operation. This gives the grouping a different role from the one it has in the phone study, where the communities are themselves the object of inspection. Query Translation for Cross-Language Information Retrieval using Multilingual Word Clusters
The SemEval task concerns changes in word meaning and asks for their detection without supervised examples for the task. It places the citation in another setting where hidden organization is of interest. Blondel and colleagues identify partitions from the structure of a fixed graph. The SemEval title identifies a question about how lexical meaning changes. The common interest is how to recover organization when the desired assignments are unavailable as input. SemEval-2020 Task 1: Unsupervised Lexical Semantic Change Detection
Work on scientific article summarization uses citation context and the discourse structure of articles. Citation appears here at a different level of analysis. Blondel and colleagues benchmark their method on a graph of papers and citations, treating citation as a relationship between records. The later summarization work gives a role to the surrounding text and to the structure of the article that contains it. The citing relationship connects a task centered on producing a summary with earlier work centered on organizing a network. Scientific Article Summarization Using Citation-Context and Article's Discourse Structure
ConGraT addresses a joint representation of graph and text. Its title describes self-supervised contrastive pretraining, putting graph information into a task of learning embeddings alongside text. This is another way a citing paper changes the role of network structure. Blondel and colleagues return memberships that can be inspected at several levels. The later work names graph and text embeddings as the objects it learns. The citation places the community detection paper within this broader use of graphs, without establishing that either kind of output was substituted for the other. ConGraT: Self-Supervised Contrastive Pretraining for Joint Graph and Text Embeddings
Cite
Cite as Vincent D. Blondel, Jean‐Loup Guillaume, Renaud Lambiotte and Etienne Lefebvre. 2008. Fast unfolding of communities in large networks. Journal of Statistical Mechanics Theory and Experiment.
@article{blondel2008fast,
title = {{Fast unfolding of communities in large networks}},
author = {Vincent D. Blondel, Jean‐Loup Guillaume, Renaud Lambiotte and Etienne Lefebvre},
journal = {Journal of Statistical Mechanics Theory and Experiment},
year = {2008},
doi = {10.1088/1742-5468/2008/10/p10008},
eprint = {0803.0476},
archivePrefix = {arXiv},
url = {https://doi.org/10.1088/1742-5468/2008/10/p10008}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/blondel-2008-fast-unfolding-communities-large-networks/