Improved Exact and Heuristic Algorithms for Maximum Weight Clique

Roman Erhardt, Kathrin Hanauer, Nils M. Kriege, Christian Schulz, Darren StrasharXiv 2023

Abstract

The Maximum Weight Clique (MWC) problem is a fundamental NP-hard challenge with applications across biochemistry, social network analysis, and genomics. This paper presents novel data reduction rules that leverage local graph structures—such as twins, domination, and simplicial vertices—to prune the search space effectively. These rules are integrated into two new solvers: MWCRedu, an exact solver, and MWCPeel, a heuristic solver. Experimental results on real-world and synthetic sparse graphs demonstrate speedups of several orders of magnitude over state-of-the-art solvers, with some instances being solved entirely through preprocessing.

Introduction

The Maximum Weight Clique (MWC) problem involves finding a subset of vertices in a graph where every vertex is connected to every other vertex, maximizing the total weight of the selected vertices. While the unweighted version is a classic problem, the weighted variant is significantly more difficult in practice. Existing exact solvers often struggle with large or complex instances because data reduction techniques—highly successful for unweighted graphs—have been limited for the weighted version, typically focusing only on simple neighborhood weights. This work addresses this gap by introducing a suite of new reduction rules designed to identify vertices or edges that can be safely removed or merged.

Data Reduction Rules

The core contribution of this work is a set of four primary reduction rules that exploit local graph topology to simplify the problem instance before or during the search.

Visual representation of the four proposed reduction rules: Twin, Simplicial Vertex, Domination, and Edge Bounding.
  • Twin Reduction: If two adjacent vertices $u$ and $v$ share the exact same neighborhood, they are "twins." They must either both be in the maximum weight clique or neither. They can be contracted into a single vertex with their combined weight $w(u) + w(v)$.
  • Domination Reduction: If the neighborhood of vertex $v$ is a subset of the neighborhood of vertex $u$, and $w(v) \le w(u)$, then $u$ "dominates" $v$. In many cases, $v$ can be removed because $u$ is always a better candidate for a clique.
  • Simplicial Vertex Removal: A vertex is "simplicial" if its neighbors form a clique. These can be processed and removed early in the search.
  • Edge Bounding: This novel approach removes edges rather than vertices. If the upper bound of a clique containing both $u$ and $v$ is lower than the weight of the best clique found so far, the edge $\{u, v\}$ can be deleted.

Algorithms: MWCRedu and MWCPeel

The authors integrate these rules into two distinct algorithmic frameworks:

  1. MWCRedu (Exact): This solver interleaves the new reduction rules with a state-of-the-art Branch-and-Bound solver that uses MaxSAT reasoning for pruning.
  2. MWCPeel (Heuristic): Utilizing a "reduce-and-peel" framework, this solver applies exact reductions and then "peels" (removes) vertices with low potential scores based on neighborhood weight, repeating the process until the graph is small enough to solve exactly.

Experimental Results

The solvers were tested against 58 instances across four categories: OpenStreetMap data (OSM), real-world networks (REP), dense DIMACS benchmarks, and synthetic Random Hyperbolic Graphs (RHG).

The results demonstrate massive speedups on sparse and medium-density graphs. On OSM instances, MWCRedu found solutions and proved optimality in a geometric mean of 1.55 seconds, compared to 27.62 seconds for the previous state-of-the-art (TSM-MWC). On RHG instances, MWCRedu was nearly 7x faster than its competition. Furthermore, for some real-world instances like web-wikipedia_link_it, the reduction rules were so effective they reduced the graph to zero vertices, solving the problem entirely during preprocessing.

Conclusion

This work shows that local graph structure is a goldmine for data reduction in the Maximum Weight Clique problem. By looking at how neighbors are connected rather than just their total weight, the proposed rules allow for much more aggressive pruning. While these techniques are less effective on extremely dense graphs where local structure is less varied, they provide significant performance gains for the sparse and medium-density graphs common in real-world applications. Future work will focus on parallelizing these reduction rules and the branch-and-bound search.

Summary updated

BibTeX
@misc{erhardt2023improved,
  author = {Roman Erhardt and Kathrin Hanauer and Nils M. Kriege and Christian Schulz and Darren Strash},
  title = {{Improved Exact and Heuristic Algorithms for Maximum Weight Clique}},
  year = {2023},
  eprint = {2302.00458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.00458},
}
Figure