Maximal Clique Enumeration with Hybrid Branching and Early Termination

Kaixin Wang, Kaiqiang Yu, Cheng Long

TL;DR

This paper introduces HBBMC, a novel hybrid branch-and-bound framework for Maximal Clique Enumeration (MCE) that strategically combines edge-oriented and vertex-oriented branching. By pairing this hybrid approach with an innovative early termination technique that directly resolves dense subgraphs without branching, the algorithm achieves a better worst-case time complexity than state-of-the-art methods for most real-world networks and delivers up to a 4.38x speedup in practice.

What Problem Does This Paper Address?

Maximal Clique Enumeration (MCE) is a fundamental graph mining problem used to find all maximal complete subgraphs (where every node connects to every other node) within a network. It underpins critical applications like community detection in social networks and protein function prediction in biological networks.

However, MCE is computationally brutal; in the worst-case scenario, a graph can contain an exponential number of maximal cliques. Traditional state-of-the-art algorithms use a vertex-oriented Bron-Kerbosch (BK) branching strategy within a branch-and-bound framework. While effective, its performance is heavily bounded by the graph's degeneracy ($\delta$).

Recent work in related problems suggested that branching on edges instead of vertices could bound subproblems by a much smaller structural metric called the truss number ($\tau$). Unfortunately, pure edge-oriented branching scales poorly because it lacks powerful pruning mechanisms like pivoting. The authors of this paper set out to bridge this gap, combining the structural advantages of edge branching with the pruning power of vertex branching.

Methods

The authors introduce two primary innovations:

  1. Hybrid Branching Framework (HBBMC): Instead of sticking to one branching style, HBBMC uses the best tool for each stage of the search tree. At the initial root branch, it applies edge-oriented branching sorted by a truss-based edge ordering. This ensures that the candidate subgraphs generated for the next level are strictly bounded by the truss number $\tau$ (where $\tau < \delta$). For all subsequent sub-branches, the algorithm switches to vertex-oriented branching with classic pivot selection, maximizing pruning efficiency where it matters most.

  2. Early Termination Technique (ET): Branching becomes highly inefficient when a subgraph is already very dense. The authors propose an early termination strategy for branches where the candidate graph is a $t$-plex (a graph where each vertex misses at most $t$ connections) and the exclusion graph is empty. For a 1-plex (a perfect clique), the algorithm immediately outputs the result. For 2-plexes and 3-plexes, it constructs an inverse graph. Because the inverse graph of a 2- or 3-plex consists only of simple paths, isolated vertices, or cycles, the algorithm can bypass recursive branching entirely and directly enumerate the remaining maximal cliques using simple topological rules.

Visualizing clique expansion cases in paths and cycles for early termination

Datasets

The framework was evaluated on both real-world and synthetic graph types:

  • Real-World Datasets: 16 large-scale networks from open-source repositories (such as SNAP and Network Repository), spanning social networks (orkut, facebook, youtube), web graphs (skitter, baidu), and collaboration networks (dblp).
  • Synthetic Datasets: Graphs generated using the Erdős-Rényi (ER) random model and the Barabási-Albert (BA) power-law model to rigorously test scalability and varying edge densities.

Key Insights and Ideas

  • The Best of Both Worlds: Edge branching is fantastic for upfront space reduction (shrinking the subproblem size to $\tau$), while vertex branching excels at deep-tree pruning via pivoting. Combining them eliminates their respective worst-case bottlenecks.
  • Simplifying via Inversion: When a graph is nearly complete, analyzing its structure is hard. However, analyzing what is missing (the inverse graph) is incredibly easy because the missing links form basic geometric paths and cycles.
  • Asymptotically Better for the Real World: The hybrid approach achieves a worst-case time complexity of $O(\delta m + \tau m \cdot 3^{\tau/3})$. This is theoretically superior to the long-standing state-of-the-art complexity of $O(n\delta \cdot 3^{\delta/3})$ under the condition $\delta \ge \tau + \frac{3}{\ln 3}\ln \rho$ (where $\rho$ is edge density). Crucially, the authors empirically verified that this condition holds true for the vast majority of real-world networks.

Key Results

  • Clear Speedups: The full implementation, HBBMC++ (which includes early termination and graph reduction), outperformed all four state-of-the-art baselines across every single real-world dataset tested.
  • Up to 4.38x Faster: On the digg social network dataset, HBBMC++ achieved a massive 4.38x speedup over the best-performing baseline.
  • ET Efficiency: Ablation studies revealed that the early termination technique drastically reduced the number of recursive function calls. For instance, on the orkut dataset, the hybrid framework and the early termination technique contributed 41.7% and 58.3% to the total runtime improvement, respectively.
  • Robust Scalability: Synthetic benchmarks demonstrated that as the number of vertices scaled up to 10 million, HBBMC++ maintained a consistent performance advantage over traditional VBBMC methods.

Limitations and Future Work

  • Conditional Superiority: The theoretical performance gain relies on specific graph properties ($\delta \ge \tau + \frac{3}{\ln 3}\ln \rho$). While this covers most real-world graphs, networks that violate this condition may not experience the same asymptotic speedups.
  • Fixed $t$-plex Boundaries: The early termination technique is currently mathematically optimized only for $t \le 3$. Extending this to higher values of $t$ remains an open challenge, as the inverse graph structures become significantly more complex than simple paths and cycles.
  • Graph Variations: While the authors note that the framework can be extended to directed or weighted graphs via post-filtering, natively integrating these properties directly into the hybrid branching logic represents a promising avenue for future research.

Summary updated

BibTeX
@inproceedings{wang2024maximal,
  author = {Kaixin Wang and Kaiqiang Yu and Cheng Long},
  title = {{Maximal Clique Enumeration with Hybrid Branching and Early Termination}},
  booktitle = {ICDE},
  year = {2024},
}
Figure