arXiv:2611.06234cs.DSNov 2026

Manuscript Offprint

arXiv:2611.06234

A Dichotomy for Terminal Cyclability

Matthias Bentert, Dario Cavallaro, Sebastian Wiederrecht

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Matthias Bentert† Dario Cavallaro† Sebastian Wiederrecht‡

Given an undirected graph GG and a set R⊆V(G)R \subseteq V(G) of terminals, TERMINAL CYCLABILITY asks whether GG contains a simple cycle visiting every vertex of RR. We establish a complexity dichotomy for this problem on red-minor-closed classes of annotated graphs. In particular, we show that TERMINAL CYCLABILITY is polynomial-time solvable on every such class excluding any annotated planar graph. The problem is NP-complete whenever the class contains all annotated planar graphs.

More precisely, we give an ∣G∣2poly(b)|G|^{2^{\text{poly}(b)}}-time algorithm, where bb is the bidimensionality of (G,R)(G, R). Our main technical contribution is the introduction of a weak irrelevant vertex rule. Rather than removing irrelevant vertices until the treewidth becomes constant, we only remove irrelevant vertices until the treewidth is logarithmic in the graph size. Such a weakening is necessary as a parameter-only treewidth threshold for an irrelevant vertex rule in this setting is known to be impossible to realise. Combined with a single-exponential algorithm for TERMINAL CYCLABILITY parameterized by treewidth, this yields the polynomial-time algorithm for our dichotomy.

*Matthias Bentert was supported by the German Research Foundation (DFG) under research grant SPP 2378: ReNO-2 (project number 511099228). Sebastian Wiederrecht was supported by the NRF South Korea (RS-2026-25605318) and by the Institute for Basic Science (IBS-R029-C1).

Emails of the authors: bentert@tu-berlin.de, d.cavallaro@tu-berlin.de, wiederrecht@kaist.ac.kr.

†Technische Universität Berlin, Berlin, Germany.

‡School of Computing, KAIST, Daejeon, South Korea.

Contents

1 Introduction 1 1.1 A closer look at our result ..... 3 1.2 Related work ..... 6 1.3 Our methods ..... 8

2 Preliminaries 14 2.1 Basics ..... 15 2.2 Tools more specific to graph minor structure theory ..... 16 2.3 The structure of annotated graphs of small bidimensionality ..... 21

3 Preparing the toolkit 21 3.1 What to do with a clique ..... 22 3.2 The wells are running dry ..... 24 3.3 Building villages ..... 26 3.4 Teaching villagers how to cycle ..... 27 3.5 The local rerouting lemma ..... 28

4 Branching inside a well 30

5 Combing a spanning cycle 33

6 Detecting an irrelevant vertex 42 6.1 Getting rid of clique minors ..... 42 6.2 Finding and preparing a flat mesh ..... 43 6.3 Actually finding the irrelevant vertex ..... 55

7 A single-exponential parameterized algorithm for treewidth 60

8 The complexity dichotomy 66

9 Conclusion 67

References 69

References (56)