Skip to main content
QUICK REVIEW

[Paper Review] Computing communities in large networks using random walks

Matthieu Latapy, Pascal Pons|arXiv (Cornell University)|Dec 14, 2004
Complex Network Analysis TechniquesPhysics and Astronomy22 references89 citations
TL;DR

This paper proposes a novel random walk-based similarity measure to detect community structures in large networks efficiently. By leveraging short random walks to capture structural similarity, the method enables a fast agglomerative clustering algorithm that runs in O(n² log n) time on sparse real-world networks, outperforming prior methods in both accuracy and scalability on graphs with up to 100,000 vertices.

ABSTRACT

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, it works at various scales, and it can be used in an agglomerative algorithm to compute efficiently the community structure of a network. We propose such an algorithm 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). Experimental evaluation shows 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. This is very promising because our algorithm can be improved in several ways, which we sketch at the end of the paper.

Motivation & Objective

  • To address the challenge of detecting community structures in large, sparse real-world networks where traditional methods are computationally prohibitive.
  • To develop a similarity measure between vertices that captures structural cohesion and community membership without relying on spectral methods or expensive eigendecompositions.
  • To design a scalable, hierarchical agglomerative algorithm that detects communities at multiple scales and supports efficient computation on large graphs.
  • To improve upon existing community detection algorithms in terms of both runtime performance and quality of detected communities.

Proposed method

  • Define a similarity measure between vertices based on the probability that a random walk starting at one vertex reaches another within a fixed number of steps.
  • Use the transition probabilities of random walks as a proxy for structural similarity, with the intuition that walks are more likely to remain within densely connected communities.
  • Construct a hierarchical clustering algorithm that iteratively merges the most similar vertex pairs based on the random walk similarity, forming a dendrogram of community structures.
  • Optimize the algorithm using approximations via a fixed number of random walks (e.g., K=1000), reducing time complexity to O(K(t + log K)) per vertex.
  • Explore continuous-time random walks by replacing discrete-time transition matrices with matrix exponentials, enabling non-integer walk lengths and improved flexibility.
  • Apply the method to weighted and undirected networks, and discuss its potential extension to overlapping and directed communities.

Experimental results

Research questions

  • RQ1Can random walk-based similarity measures effectively capture community structure in large, sparse networks?
  • RQ2How does the proposed method compare in performance and accuracy to existing community detection algorithms such as Girvan–Newman and Newman’s modularity-based approach?
  • RQ3What is the computational complexity of the proposed algorithm, and can it scale to large networks with 100,000+ vertices?
  • RQ4How does the method perform across different network densities and community sizes, especially when internal and external edge counts are balanced?
  • RQ5Can the method be extended to detect overlapping communities and handle directed networks?

Key findings

  • The proposed algorithm runs in O(mn²) time in the worst case and O(n² log n) in practice on real-world sparse networks, significantly improving scalability.
  • Experimental evaluation shows that the method achieves higher-quality community detection than previous algorithms, including the state-of-the-art method in [5], particularly in terms of modularity and community cohesion.
  • The algorithm successfully detects communities even when internal and external edge counts are balanced, indicating robustness to low internal density.
  • Approximation via 1000 random walks per vertex provides a good trade-off between accuracy and efficiency, with estimation error scaling as O(1/√K).
  • The continuous-time random walk extension allows non-integer walk lengths, offering greater flexibility and potentially better performance than discrete-time counterparts.
  • The method is directly applicable to weighted networks and shows promise for detecting overlapping communities, though this remains an open 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 Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.