Skip to main content
QUICK REVIEW

[Paper Review] Listing All Maximal Cliques in Large Sparse Real-World Graphs

David Eppstein, Darren Strash|arXiv (Cornell University)|Mar 2, 2011
Complex Network Analysis TechniquesPhysics and Astronomy34 references25 citations
TL;DR

This paper presents a practical, linear-space algorithm for listing all maximal cliques in large sparse real-world graphs, based on a theoretical framework by Eppstein, Löffler, and Strash. It outperforms the widely used Tomita et al. algorithm in practice on sparse graphs by avoiding adjacency matrix storage, achieving near-optimal performance with degeneracy-based parameterization while remaining efficient even on dense graphs.

ABSTRACT

We implement a new algorithm for listing all maximal cliques in sparse graphs due to Eppstein, Löffler, and Strash (ISAAC 2010) and analyze its performance on a large corpus of real-world graphs. Our analysis shows that this algorithm is the first to offer a practical solution to listing all maximal cliques in large sparse graphs. All other theoretically-fast algorithms for sparse graphs have been shown to be significantly slower than the algorithm of Tomita et al. (Theoretical Computer Science, 2006) in practice. However, the algorithm of Tomita et al. uses an adjacency matrix, which requires too much space for large sparse graphs. Our new algorithm opens the door for fast analysis of large sparse graphs whose adjacency matrix will not fit into working memory.

Motivation & Objective

  • Address the lack of practical, memory-efficient algorithms for listing all maximal cliques in large sparse real-world graphs.
  • Overcome the memory bottleneck of the Tomita et al. algorithm, which relies on adjacency matrices and becomes infeasible for large graphs.
  • Implement and evaluate a new algorithm based on degeneracy-based recursion and dynamic graph data structures to achieve both theoretical efficiency and practical speed.
  • Demonstrate that the new algorithm is competitive with Tomita et al. in practice, especially on sparse graphs, while using only linear space.
  • Provide empirical validation across diverse real-world and synthetic graphs, including Moon–Moser and DIMACS benchmarks, to establish performance superiority on sparse inputs.

Proposed method

  • Implement the Eppstein–Löffler–Strash algorithm, which uses a dynamic graph data structure to maintain adjacencies during recursive clique enumeration.
  • Leverage degeneracy as a sparsity measure, ensuring near-optimal worst-case time complexity proportional to the number of cliques and degeneracy.
  • Use a pivoting strategy similar to Tomita et al., selecting a pivot vertex to minimize recursive branching, improving practical performance.
  • Represent subproblems using vertex sets and dynamic adjacency structures instead of adjacency matrices, reducing space complexity to O(n + m).
  • Optimize the algorithm with efficient data structures for neighborhood queries and set operations during recursion.
  • Compare with three variants: original Tomita et al. (matrix-based), a modified Tomita variant using adjacency lists, and a simplified version of the new algorithm using static vertex lists.

Experimental results

Research questions

  • RQ1Can a theoretically efficient, degeneracy-parameterized algorithm for maximal clique listing achieve practical performance comparable to the widely used Tomita et al. algorithm on large sparse graphs?
  • RQ2Does avoiding adjacency matrix storage in favor of dynamic graph data structures enable the algorithm to scale to large sparse graphs that are too big for matrix-based methods?
  • RQ3How does the performance of the new algorithm compare to Tomita et al. and its adjacency list variant across diverse real-world and synthetic graph types?
  • RQ4To what extent does the algorithm’s performance degrade on dense graphs compared to Tomita et al., and is it still within a small constant factor?
  • RQ5Can the algorithm handle Moon–Moser graphs and other hard instances with exponential clique counts efficiently in practice?

Key findings

  • The new algorithm outperforms Tomita et al. by up to a factor of 30 on the sparsest random graphs in the corpus, demonstrating significant speed advantages in sparse regimes.
  • On Moon–Moser graphs with 51 vertices (129 million maximal cliques), the new algorithm ran in 67.28 seconds, compared to 150.02 seconds for the maxdegree variant and 198.06 seconds for Tomita et al.
  • For the c-fat200-5 graph (200 vertices, 8,473 edges), the new algorithm was 100x faster than Tomita et al. (0.01s vs. 0.04s), highlighting its efficiency on sparse, structured graphs.
  • On denser graphs like p_hat300-2 (300 vertices, 21,928 edges), the new algorithm was slower than Tomita et al. by a factor of ~1.5 but still within a small constant factor.
  • The adjacency list variant of Tomita et al. was sometimes faster by a small margin but also significantly slower on other graphs, making it unreliable compared to the new algorithm’s consistent performance.
  • The new algorithm’s linear space usage makes it feasible for graphs whose adjacency matrices do not fit in main memory, enabling analysis of large-scale sparse networks previously intractable with matrix-based methods.

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.