Parallel Algorithms for Finding Large Cliques in Sparse Graphs

Lukas Gianinazzi, Maciej Besta, Yannick Schaffner, Torsten Hoefler · DOI

Abstract

Finding large cliques in sparse graphs is a computationally intensive task. This paper presents a novel parallel algorithm that shifts from a vertex-centric to a community-centric approach, utilizing edge-triangle relationships and DAG orientation for efficient pruning. The method achieves exponential speedups for large cliques ($k \ge 9$) compared to existing state-of-the-art parallel methods.

Introduction

Finding $k$-cliques—subgraphs where every pair of vertices is connected—is a fundamental NP-hard problem with critical applications in bioinformatics, social network analysis, and computational chemistry. While generally intractable, the problem is Fixed Parameter Tractable (FPT) for sparse graphs when parameterized by structural metrics like degeneracy or arboricity. However, traditional parallel algorithms, which typically employ vertex-degree-based backtracking, encounter a "computational wall" as the clique size $k$ increases.

This paper introduces a new parallel algorithm designed to overcome this limitation. By analyzing the "communities" of edges—specifically the triangles they form—rather than just vertex degrees, the authors develop a pruning criterion that reduces computational work by a factor exponential in the clique size.

Methods: A Community-Centric Approach

The core innovation of this work is the shift from a vertex-centric search to a community-centric one. Instead of recursively building cliques from vertices and their neighbors, the algorithm focuses on edges and their associated communities.

Edge Communities and Triangles

For an edge to be part of a $k$-clique, it must participate in at least $k-2$ triangles within that clique. This observation allows for much tighter pruning than vertex-degree-based methods. By identifying the set of common neighbors for an edge, the algorithm can quickly determine if the edge can support a clique of size $k$.

An edge-centric approach identifies the set of common neighbors (community) for a given edge (v1, v2) to bound the potential clique size.

DAG Orientation and Distance-Based Pruning

To implement this efficiently in parallel, the algorithm follows three key steps:

  1. Graph Orientation: The graph is converted into a Directed Acyclic Graph (DAG) using a total ordering (e.g., degeneracy ordering).
  2. Distance-Based Pruning: The algorithm uses the index distance between endpoints of an edge as a proxy for triangle counts. If the number of vertices ordered between the endpoints of an edge is less than $k-2$, the edge cannot possibly support a $k$-clique and is instantly pruned.
  3. Community Degeneracy: The search is further optimized using "community degeneracy," a metric that bounds the number of triangles an edge participates in, which is often significantly smaller than standard vertex degeneracy in real-world networks.
The graph is oriented into a DAG where edges point from lower-indexed to higher-indexed vertices, enabling efficient distance-based pruning.

Results

The authors evaluated their algorithm, c3List, against state-of-the-art methods like ArbCount and kcList using a variety of real-world sparse graphs from the SNAP and Network Data Repository collections. These include social networks (Orkut, DBLP), internet topologies (Tech-As-Skitter), and structural networks (Gearbox).

Theoretical analysis shows that the new pruning criterion reduces the asymptotic work bound by a factor of $\Theta((1 / (1 - k/s))^k)$ relative to previous methods, where $s$ is the graph's degeneracy. Empirically, while performance is mixed for small cliques ($k < 8$) due to preprocessing overhead, c3List demonstrates its strength for larger cliques ($k \ge 9$), outperforming existing state-of-the-art algorithms by 13.8% to 37.9% on graphs with low triangle-to-vertex ratios.

Conclusion and Future Work

The community-centric approach provides a significant leap in performance for finding large cliques in sparse graphs. While there is some preprocessing overhead that affects performance for small $k$, the exponential theoretical advantage makes it the preferred choice for large-scale clique discovery. Future research aims to close the theoretical gap between poly-logarithmic depth and low-work algorithms and explore the use of even larger motifs, such as triangles, as the fundamental building blocks for clique growth.

Summary updated

BibTeX
@inproceedings{gianinazzi2021parallel,
  author = {Lukas Gianinazzi and Maciej Besta and Yannick Schaffner and Torsten Hoefler},
  title = {{Parallel Algorithms for Finding Large Cliques in Sparse Graphs}},
  booktitle = {SPAA},
  year = {2021},
  doi = {10.1145/3409964.3461800},
}
Figure