A Finer View of the Parameterized Landscape of Labeled Graph Contractions

Yashaswini Mathur, Prafullkumar Tale

TL;DR

This paper provides a comprehensive "finer view" of the computational complexity of Labeled Graph Contractions. The authors present a new constructive algorithm that runs in $2^{O(tw^2)}$ time (where $tw$ is treewidth) and prove that this is essentially the best possible under the Exponential Time Hypothesis (ETH)—a rare and significant result in parameterized complexity.

What Problem Does This Paper Address?

The core problem is Labeled Contractibility: given two graphs, $G$ and $H$, where every vertex has a unique label, can we transform $G$ into $H$ by repeatedly "contracting" edges? An edge contraction merges two adjacent vertices into one, combining their neighborhoods.

While graph modification problems (like deleting vertices or edges) are foundational in computer science, edge contractions are notoriously tricky. Previous research showed that while the problem is solvable in polynomial time for some simple graph classes, it becomes NP-hard very quickly. Earlier work by Lafond and Marchand [WADS 2025] established that the problem is "fixed-parameter tractable" (FPT) when the input graph has a small treewidth, but their proof was non-constructive—meaning they proved an algorithm exists without actually building an efficient one. This paper fills that gap and explores how other structural properties of graphs (like maximum degree and degeneracy) affect the problem's difficulty.

Methods

The authors employ a mix of algorithmic design and complexity-theoretic reductions:

  1. Dynamic Programming (DP) on Tree Decompositions: To solve the problem for graphs with bounded treewidth, the authors developed a constructive DP algorithm. They introduce the concept of a "witness impression," a way to track how vertices in a small "bag" of the tree decomposition map to the target graph $H$ while maintaining connectivity and adjacency requirements.
  2. Hardness Reductions: To prove that their algorithms are optimal, the authors use reductions from several known hard problems:
  3. Sub-Cubic Partitioned Vertex Cover: Used to prove the lower bound for treewidth.
  4. Positive-Not-All-Equal-SAT: Used to show the problem remains hard even for graphs with very simple structures (bounded maximum degree).
  5. 1-in-3-SAT: Used to rule out subexponential-time algorithms for degeneracy-based parameters.
  6. Cross Matching: Used to prove that a simple brute-force approach is optimal.

Datasets

As a theoretical computer science paper, this work does not use empirical datasets or training benchmarks. Instead, it relies on formal mathematical proofs and logical reductions to establish the complexity of the problem across different classes of graphs.

Key Insights and Ideas

  • The $2^{O(tw^2)}$ Complexity Class: Most problems solvable via treewidth run in $2^{O(tw)}$ or $2^{O(tw \log tw)}$ time. Finding a problem that specifically requires $2^{O(tw^2)}$ is rare. This paper places Labeled Contractibility into a small, elite list of problems that exhibit this specific "double-exponential-like" behavior relative to treewidth.
  • Labels Change the Game: In unlabeled graph contraction, you just need to find any way to shrink $G$ to $H$. With labels, every vertex in $G$ must eventually "belong" to a specific representative vertex in $H$. This added constraint actually allows for more precise tracking in the DP algorithm.
  • Degeneracy Matters: The authors found that the "degeneracy" of the target graph $H$ (a measure of how sparse its subgraphs are) is a powerful tool. They showed that if $H$ is sparse, the search space for which vertices contract into which representatives shrinks significantly.

Key Results

  • Treewidth Optimality: They provide a constructive algorithm with a running time of $2^{O(tw^2)} \cdot |V(G)|^{O(1)}$ and prove that no algorithm can run in $2^{o(tw^2)}$ unless the ETH fails.
  • Bounded Degree Hardness: They prove the problem is NP-complete even if both $G$ and $H$ have a maximum degree of 16. This shows that simply having "simple" vertices isn't enough to make the problem easy.
  • Improved Degeneracy Algorithm: They improved the existing algorithm for the parameter $(k + \delta(G))$—where $k$ is the number of contractions and $\delta$ is degeneracy—from $(k + \delta)^k$ to $(\delta(H) + 1)^k$. This is a significant speedup when the target graph is sparse.
  • Brute-Force is Best: They show that a brute-force algorithm running in $|V(H)|^{O(|V(G)|)}$ is optimal, meaning there is no "shortcut" for the general case.

Limitations and Future Work

The authors acknowledge a few open directions:

  • Generalization: Can this DP framework be extended to the "Maximum Common Labeled Contraction" problem, which is even more complex?
  • Other Parameters: The paper suggests exploring whether the problem becomes easier when parameterized by the feedback vertex set or vertex cover number, which are different ways to measure how "close" a graph is to being a simple tree.
  • Algorithm Refinement: While the $2^{O(tw^2)}$ algorithm is a major step forward, the constant factors in the exponent could potentially be refined for practical implementations.

Summary updated

BibTeX
@inproceedings{mathur2025finer,
  author = {Yashaswini Mathur and Prafullkumar Tale},
  title = {{A Finer View of the Parameterized Landscape of Labeled Graph Contractions}},
  booktitle = {FSTTCS},
  year = {2025},
  doi = {10.4230/lipics.fsttcs.2025.43},
}
Figure