English

Efficient Algorithms and Implementations for Extracting Maximum-Size $(k,\ell)$-Sparse Subgraphs

Data Structures and Algorithms 2025-11-24 v1 Computational Geometry Discrete Mathematics Combinatorics

Abstract

A multigraph G=(V,E)G = (V, E) is (k,)(k, \ell)-sparse if every subset XVX \subseteq V induces at most max{kX,0}\max\{k|X| - \ell, 0\} edges. Finding a maximum-size (k,)(k, \ell)-sparse subgraph is a classical problem in rigidity theory and combinatorial optimization, with known polynomial-time algorithms. This paper presents a highly efficient and flexible implementation of an augmenting path method, enhanced with a range of powerful practical heuristics that significantly reduce running time while preserving optimality. These heuristics \unicodex2013\unicode{x2013} including edge-ordering, node-ordering, two-phase strategies, and pseudoforest-based initialization \unicodex2013\unicode{x2013} steer the algorithm toward accepting more edges early in the execution and avoiding costly augmentations. A comprehensive experimental evaluation on both synthetic and real-world graphs demonstrates that our implementation outperforms existing tools by several orders of magnitude. We also propose an asymptotically faster algorithm for extracting an inclusion-wise maximal (k,2k)(k,2k)-sparse subgraph with the sparsity condition required only for node sets of size at least three, which is particularly relevant to 3D rigidity when k=3k = 3. We provide a carefully engineered implementation, which is publicly available online and is proposed for inclusion in the LEMON graph library.

Keywords

Cite

@article{arxiv.2511.16877,
  title  = {Efficient Algorithms and Implementations for Extracting Maximum-Size $(k,\ell)$-Sparse Subgraphs},
  author = {Péter Madarasi},
  journal= {arXiv preprint arXiv:2511.16877},
  year   = {2025}
}
R2 v1 2026-07-01T07:48:11.965Z