Table of Contents
Fetching ...

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

Petr Laštovička, Jan Legerský

TL;DR

The paper studies the problem of determining whether a graph admits a flexible planar realization by leveraging NAC-colorings. It establishes NP-completeness results on sparse graphs, including max degree five and average degree near 4, via careful gadget constructions, and proves fixed-parameter tractability with respect to treewidth using Courcelle's theorem and a detailed dynamic-programming scheme. It also contributes practical algorithms for finding and counting NAC-colorings, including NAC-valid relations, small-cycle pruning, and subgraph decomposition/merging techniques, with extensive benchmarks showing substantial speedups over prior implementations. These results advance both the theoretical understanding and the practical computation of graph rigidity and flexibility in the plane.

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+\varepsilon$ for every fixed $\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.

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

TL;DR

The paper studies the problem of determining whether a graph admits a flexible planar realization by leveraging NAC-colorings. It establishes NP-completeness results on sparse graphs, including max degree five and average degree near 4, via careful gadget constructions, and proves fixed-parameter tractability with respect to treewidth using Courcelle's theorem and a detailed dynamic-programming scheme. It also contributes practical algorithms for finding and counting NAC-colorings, including NAC-valid relations, small-cycle pruning, and subgraph decomposition/merging techniques, with extensive benchmarks showing substantial speedups over prior implementations. These results advance both the theoretical understanding and the practical computation of graph rigidity and flexibility in the plane.

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 for every fixed . 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.

Paper Structure

This paper contains 10 sections, 9 theorems, 13 equations, 13 figures, 1 table, 2 algorithms.

Key Result

Theorem 1.2

A connected graph $G$ has a flexible quasi-injective $2$-dimensional realization if and only if it has a NAC-coloring.

Figures (13)

  • Figure 1: The $3$-prism is generically $2$-rigid, but has flexible $2$-dimensional realizations (middle and right). It has a unique NAC-coloring modulo swapping colors (left).
  • Figure 2: A train (left) is formed by gluing braced ladders so that the maximum degree is five. The right figure shows how it can be extended.
  • Figure 3: The gadgets for every variable $x_i$. For all variables together they enforce that the trains $x_i$ and $\bar{x}_i$ have different colors.
  • Figure 4: The gadget for the clause $(\hat{x}_{i,1} \lor \hat{x}_{i,2} \lor \hat{x}_{i,3})$, index $i$ omitted in the labels.
  • Figure 5: A graph (top left) with a tree decomposition (bottom left) and a nice tree decomposition with indicated types of nodes (right), both of width two.
  • ...and 8 more figures

Theorems & Definitions (27)

  • Definition 1.1
  • Theorem 1.2: GLS2019
  • Theorem 2.1
  • proof
  • Theorem 2.2
  • proof
  • Definition 3.1
  • Definition 3.2
  • Theorem 3.3
  • Definition 3.4
  • ...and 17 more