[Paper Review] Computing communities in large networks using random walks (long version)
This paper introduces Walktrap, a novel algorithm that detects communities in large networks using random walks to measure vertex similarity. By leveraging the tendency of random walks to remain within densely connected regions, Walktrap efficiently computes community structure in O(n² log n) time on sparse real-world networks, outperforming prior methods in both modularity quality and computational efficiency.
Dense subgraphs of sparse graphs (communities), which appear in most real-world complex networks, play an important role in many contexts. Computing them however is generally expensive. We propose here a measure of similarities between vertices based on random walks which has several important advantages: it captures well the community structure in a network, it can be computed efficiently, and it can be used in an agglomerative algorithm to compute efficiently the community structure of a network. We propose such an algorithm, called Walktrap, which runs in time O(mn^2) and space O(n^2) in the worst case, and in time O(n^2log n) and space O(n^2) in most real-world cases (n and m are respectively the number of vertices and edges in the input graph). Extensive comparison tests show that our algorithm surpasses previously proposed ones concerning the quality of the obtained community structures and that it stands among the best ones concerning the running time.
Motivation & Objective
- To develop an efficient and accurate method for detecting community structures in large, sparse real-world networks.
- To address the limitations of existing community detection algorithms that require predefined numbers of communities or suffer from high computational complexity.
- To design a similarity measure based on random walks that captures structural cohesion within communities.
- To create a hierarchical agglomerative algorithm that leverages this similarity measure for scalable community detection.
- To evaluate the method's performance against state-of-the-art algorithms in terms of modularity and runtime on diverse real-world networks.
Proposed method
- Define a similarity measure between vertices based on the probability that independent random walks starting from each vertex meet within a given number of steps.
- Use this similarity measure as a distance metric to guide agglomerative clustering, merging the most similar vertices or communities at each step.
- Construct a dendrogram representing the hierarchical community structure, which can be cut at any level to yield a partition.
- Implement the Walktrap algorithm with time complexity O(mn²) in the worst case and O(n² log n) in practice due to the small height H of the dendrogram in real-world networks.
- Optimize the algorithm by limiting the maximum walk length t (e.g., t=2 or t=5) to balance accuracy and efficiency.
- Integrate the method into a scalable framework that supports weighted networks and can be extended to overlapping communities or directed graphs in future work.
Experimental results
Research questions
- RQ1Can random walk-based similarity measures effectively capture community structure in large, sparse networks?
- RQ2How does the Walktrap algorithm compare to existing community detection methods in terms of modularity and runtime efficiency?
- RQ3What is the impact of walk length t on the quality and performance of the detected community structure?
- RQ4To what extent does the algorithm scale to large networks with millions of nodes, and what are its memory limitations?
- RQ5Can the random walk similarity measure be generalized to directed or weighted networks, and what modifications would be needed?
Key findings
- Walktrap achieves high modularity on real-world networks, with a modularity score of 0.91 on the web graph (www) and 0.76 on the arXiv collaboration network.
- The algorithm runs in O(n² log n) time on most real-world networks due to the small height H of the dendrogram, making it practical for large-scale applications.
- Walktrap outperforms Girvan–Newman, Donetti–Muñoz, and Fast Modularity in terms of modularity quality on all tested networks except one, where it is comparable.
- On the largest network (www, 159,683 nodes), Walktrap computes a partition in 5,770 seconds (about 96 minutes), while Girvan–Newman exceeds 40,000 seconds and is thus infeasible.
- The method is robust across diverse network types, including social, biological, and technological networks, with consistent performance on both small and large graphs.
- The algorithm is directly applicable to weighted networks, and its extension to directed networks is identified as a promising direction for future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.