Efficient branch-and-bound algorithms for finding triangle-constrained 2-clubs

Niels Grüttemeier, Philipp Heinrich Keßler, Christian Komusiewicz, Frank Sommer · DOI

Abstract

Identifying cohesive communities is a cornerstone of network science. While the $s$-club model—specifically the 2-club—offers a way to find compact subgraphs with a diameter of at most 2, it frequently identifies "star" configurations that lack internal robustness. To address this, researchers have proposed triangle-constrained 2-clubs, which require each vertex or edge to be part of at least $\ell$ triangles. This paper introduces a highly efficient combinatorial branch-and-bound (B&B) algorithm designed to solve this problem at scale. By leveraging custom data reduction rules and conflict graphs, the proposed method achieves a 60x speedup over traditional Integer Linear Programming (ILP) solvers and successfully processes real-world networks with up to 500,000 vertices.

Introduction

In the study of complex networks, a "community" is typically defined as a group of nodes with dense internal connections. The $s$-club model is a popular formalization of this concept, defining a community as a subgraph where the distance between any two nodes is at most $s$. For $s=2$, the resulting subgraphs are very compact. However, the 2-club model has a known weakness: it often favors "star" graphs, where a single central hub connects to many peripheral nodes. Such structures are fragile and do not represent the intuitive notion of a cohesive, well-knit community.

To enforce greater internal density and robustness, triangle constraints are added. In a Vertex Triangle 2-Club, every vertex must belong to at least $\ell$ triangles within the subgraph. In an Edge Triangle 2-Club, every edge must belong to at least $\ell$ triangles. These constraints ensure that the community is not just compact, but also locally dense.

Algorithmic Framework

The primary challenge in finding maximum-size triangle-constrained 2-clubs is the computational complexity. Previous approaches relied on general-purpose ILP solvers, which often fail on large graphs or high values of $\ell$. This work introduces a specialized combinatorial branch-and-bound framework.

Key Components

  1. Marked Branching: The algorithm maintains a set of "marked" vertices that are mandatory for the current solution. This allows for more aggressive pruning compared to simple binary branching.
  2. Data Reduction Rules: The core efficiency stems from rules like the Low-Triangle Rule (LTR), which removes elements failing the triangle count, and the Incompatible-Resolution Rule (IRR), which prunes nodes that cannot satisfy the distance-2 constraint relative to marked nodes.
  3. Conflict Graphs: To speed up distance checks, the solver maintains a conflict graph where an edge represents a pair of nodes whose distance in the original graph exceeds 2.
Figure 2: A sample graph used to illustrate the structural constraints of 2-clubs. The algorithm must ensure that all selected nodes remain within distance 2 and satisfy the required triangle counts.

Experimental Results

The algorithms were tested on 63 diverse real-world networks, including social, biological, and infrastructure graphs.

Performance and Scalability

The combinatorial B&B approach significantly outperformed state-of-the-art ILP methods. On the most challenging instances, the Neighborhood Lower Bound (N-LB) configuration achieved a 60x speedup. Notably, the algorithm scales to sparse graphs with nearly a million edges, solving them in minutes—a feat previously unattainable for triangle-constrained models.

Impact of the Triangle Constraint ($\ell$)

A counter-intuitive finding is that increasing the triangle requirement $\ell$ often makes the problem easier to solve. Higher values of $\ell$ allow the reduction rules to prune the search space more effectively at the beginning of the process. While previous ILP methods were limited to low values of $\ell$, this algorithm handles $\ell=100$ efficiently.

Conclusion

This work demonstrates that specialized combinatorial algorithms can drastically improve the feasibility of complex community detection models. By moving beyond general ILP solvers and incorporating domain-specific reduction rules, it is possible to find dense, robust communities in massive real-world networks. Future work will explore extending these techniques to higher diameters ($s \ge 3$) and further refining heuristics for the edge-constrained variant of the problem.

Reference: Grüttemeier, N., Keßler, P. H., Komusiewicz, C., & Sommer, F. (2024). Efficient branch-and-bound algorithms for finding triangle-constrained 2-clubs. Journal of Combinatorial Optimization, 48:16.

Summary updated

BibTeX
@article{gruttemeier2024efficient,
  author = {Niels Grüttemeier and Philipp Heinrich Keßler and Christian Komusiewicz and Frank Sommer},
  title = {{Efficient branch-and-bound algorithms for finding triangle-constrained 2-clubs}},
  journal = {J. Comb. Optim.},
  year = {2024},
  doi = {10.1007/s10878-024-01204-z},
}
Figure