[Paper Review] Theory and Practice of Triangle Problems in Very Large (Sparse (Power-Law)) Graphs
This paper presents novel time- and space-efficient algorithms for triangle listing, counting, and finding in very large, sparse, power-law graphs—common in real-world networks. It introduces a new algorithm (new-listing) and optimizes an existing one (compact-forward), achieving optimal O(m^{3/2}) time and O(n) space complexity, with significant performance gains on power-law graphs, validated through experiments on real datasets.
Finding, counting and/or listing triangles (three vertices with three edges) in large graphs are natural fundamental problems, which received recently much attention because of their importance in complex network analysis. We provide here a detailed state of the art on these problems, in a unified way. We note that, until now, authors paid surprisingly little attention to space complexity, despite its both fundamental and practical interest. We give the space complexities of known algorithms and discuss their implications. Then we propose improvements of a known algorithm, as well as a new algorithm, which are time optimal for triangle listing and beats previous algorithms concerning space complexity. They have the additional advantage of performing better on power-law graphs, which we also study. We finally show with an experimental study that these two algorithms perform very well in practice, allowing to handle cases that were previously out of reach.
Motivation & Objective
- Address the lack of attention to space complexity in existing triangle-finding algorithms for large graphs.
- Design time- and space-optimal algorithms for triangle listing, counting, and finding in sparse, power-law graphs.
- Improve practical performance on real-world graphs by exploiting the power-law degree distribution.
- Provide theoretical and experimental validation of the proposed algorithms' efficiency and scalability.
Proposed method
- Propose a new algorithm, 'new-listing', which lists all triangles in O(m^{3/2}) time and O(n) space using a compact adjacency representation.
- Optimize the 'compact-forward' algorithm to reduce space usage while maintaining optimal time complexity.
- Leverage the power-law degree distribution (with exponent α) to derive improved theoretical bounds: O(m·n^{1/α}) time and O(n) space.
- Use a simple compact graph representation to enable efficient neighborhood traversal and triangle enumeration.
- Introduce a theoretical framework to analyze space and time complexity, distinguishing between general sparse graphs and power-law graphs.
- Conduct extensive experiments on real-world graphs (e.g., from the WebGraph project) to evaluate practical performance.
Experimental results
Research questions
- RQ1Can triangle listing be performed in O(m^{3/2}) time and O(n) space using only a compact graph representation?
- RQ2How does the power-law degree distribution of real-world graphs affect the performance of triangle-finding algorithms?
- RQ3Can space complexity be significantly reduced without sacrificing time optimality in triangle listing?
- RQ4What is the optimal time and space complexity for triangle listing in power-law graphs with exponent α?
- RQ5Can practical algorithms outperform matrix-based methods in both time and space on real-world large graphs?
Key findings
- The proposed 'new-listing' algorithm achieves optimal O(m^{3/2}) time and O(n) space complexity for triangle listing in sparse graphs.
- The 'compact-forward' algorithm is optimized to maintain optimal time complexity while reducing space usage, making it practical for large-scale graphs.
- For power-law graphs with exponent α, the paper derives an O(m·n^{1/α}) time and O(n) space algorithm, which outperforms general-case bounds.
- Experimental evaluation shows that both new-listing and compact-forward outperform existing methods on real-world datasets, handling cases previously out of reach.
- The study reveals that matrix-based approaches, while time-optimal at O(n^{2.376}), require Θ(n²) space, making them impractical for very large graphs.
- No known difference in time or space complexity exists between triangle finding, counting, and pseudo-listing, suggesting they are asymptotically equivalent in complexity.
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.