Efficient Algorithms and Implementations for Extracting Maximum-Size $(k,\ell)$-Sparse Subgraphs
Abstract
A multigraph is -sparse if every subset induces at most edges. Finding a maximum-size -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 including edge-ordering, node-ordering, two-phase strategies, and pseudoforest-based initialization 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 -sparse subgraph with the sparsity condition required only for node sets of size at least three, which is particularly relevant to 3D rigidity when . 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}
}