Abstract
Finding the maximum $k$-defective clique (MDCP) is a fundamental problem in network analysis, where one seeks the largest subgraph missing at most $k$ edges. While MDCP generalizes the maximum clique problem, it is computationally challenging, particularly for large $k$ or dense graphs. Current exact solvers often rely on loose upper bounds that ignore the internal structure of candidate vertices. We propose KD-Club, a Branch-and-Bound algorithm featuring a novel Coloring-based Upper Bound (CLUB). By utilizing graph coloring to identify independent sets among candidates, CLUB provides a tighter bound on the potential clique size. Our evaluation on 2,046 instances shows that KD-Club significantly outperforms state-of-the-art methods, solving more instances and achieving orders-of-magnitude speedups on difficult benchmarks.
Introduction
The maximum clique problem is a cornerstone of graph theory, but its requirement for perfect connectivity is often too restrictive for real-world data. In fields such as social network analysis, bioinformatics, and community detection, observed structures are frequently "almost-cliques"—dense regions where a few connections may be missing due to noise or incomplete sampling. The $k$-defective clique models this by allowing up to $k$ missing edges.
Despite its utility, MDCP is NP-hard. Exact solvers typically employ a Branch-and-Bound (BnB) framework, where the efficiency is dictated by the quality of the upper bound used to prune the search tree. Existing state-of-the-art algorithms, such as KDBB and MADEC+, often compute bounds by assuming candidate vertices are fully connected to one another. This conservative assumption leads to loose bounds, resulting in massive search trees that become intractable as the defect parameter $k$ increases or the graph density grows.
Methodology
The core contribution of this work is the CoLoring-based Upper Bound (CLUB). Unlike previous bounds that only consider missing edges between the current partial solution and the candidate set, CLUB analyzes the internal structure of the candidates.
Specifically, CLUB uses graph coloring to partition the candidate set into independent sets. In an independent set, no two vertices are connected by an edge. Consequently, if an algorithm attempts to include multiple vertices from the same independent set in a $k$-defective clique, it is mathematically guaranteed to incur missing edges.
The KD-Club algorithm integrates CLUB into two phases:
- Preprocessing: CLUB is used to prune vertices and edges that cannot possibly belong to a maximum $k$-defective clique, often reducing graph sizes by orders of magnitude.
- Search: During the BnB traversal, CLUB is applied dynamically. To maintain efficiency, the algorithm employs a hierarchical bounding strategy, using computationally cheaper bounds first and only invoking the more intensive CLUB calculation when necessary.
Experimental Evaluation
We evaluated KD-Club against state-of-the-art baselines (KDBB and MADEC+) using 2,046 instances derived from four major datasets: Facebook (sparse social networks), Realworld (various network types), SNAP and DIMACS10 (large-scale graphs), and DIMACS2 (dense benchmarks). The defect parameter $k$ was varied from 1 to 20, with a time limit of 1,800 seconds per instance.
Results and Discussion
KD-Club consistently outperformed existing solvers across all datasets, particularly as the defect allowance $k$ increased. As shown in the summary table below, KD-Club solved more instances than KDBB and MADEC+ in nearly every category.
On the Facebook dataset with $k=20$, KD-Club solved 104 instances, whereas KDBB solved 86 and MADEC+ failed to solve any. On dense graphs like the DIMACS2 C125-9 instance with $k=10$, KD-Club reached the exact solution in 137 seconds, while KDBB timed out. This performance gain is attributed to the tighter CLUB bound, which results in search trees that are often orders of magnitude smaller than those of competing methods. Ablation studies further confirmed that both the preprocessing and search-phase applications of CLUB are critical to these performance gains.
Conclusion
KD-Club introduces a powerful new approach to the Maximum $k$-Defective Clique Problem by leveraging graph coloring to derive tighter upper bounds. By accounting for the internal connectivity of candidate vertices, the algorithm effectively prunes the search space, enabling the solution of previously intractable instances. Future work will explore extending this coloring-based bounding technique to other relaxed clique structures, such as $k$-plexes.
Summary updated