English

Flexible realizations existence: NP-completeness on sparse graphs and algorithms

Computational Geometry 2025-12-11 v2 Combinatorics

Abstract

One of the questions in Rigidity Theory is whether a realization of the vertices of a graph in the plane is flexible, namely, if it allows a continuous deformation preserving the edge lengths. A flexible realization of a connected graph in the plane exists if and only if the graph has a NAC-coloring, which is a surjective edge coloring by two colors such that for each cycle, either all the edges have the same color, or there are at least two edges of each color. The question whether a graph has a NAC-coloring, and hence also the existence of a flexible realization, has been proven to be NP-complete. We show that this question is also NP-complete on graphs with maximum degree five and on graphs with the average degree at most 4+ε4+\varepsilon for every fixed ε>0\varepsilon >0. We also show that NAC-colorings can be counted in linear time for graphs with bounded treewidth. Since the only existing implementation of checking the existence of a NAC-coloring is rather naive, we propose new algorithms along with their implementation, which is significantly faster. We also focus on searching all NAC-colorings of a graph, since they provide useful information about its possible flexible realizations.

Keywords

Cite

@article{arxiv.2412.13721,
  title  = {Flexible realizations existence: NP-completeness on sparse graphs and algorithms},
  author = {Petr Laštovička and Jan Legerský},
  journal= {arXiv preprint arXiv:2412.13721},
  year   = {2025}
}

Comments

Version 2 contains a new section about fixed parameter tractability

R2 v1 2026-06-28T20:40:17.250Z