Manuscript Offprint
arXiv:2611.06234A Dichotomy for Terminal Cyclability
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 and a set of terminals, TERMINAL CYCLABILITY asks whether contains a simple cycle visiting every vertex of . 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 -time algorithm, where is the bidimensionality of . 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
A particularly charming variant of HAMILTONIAN CYCLE was considered by Lewis Carroll [Car78]. In its necklace variant, one is given a list of English words, all of the same length . The task is to arrange a sequence of English words of length in a cycle, changing exactly one letter at each step, including from the last word back to the first. Every word on the given list must appear in the cycle and no word should appear more than once. See Figure 2 for an example of such a puzzle. Returning to the world of graphs, this simple puzzle reveals a surprisingly rich algorithmic problem where one is given a graph and a set of distinguished vertices called terminals or red vertices. The task is then to find a simple cycle in containing all vertices in . This question, known as TERMINAL CYCLABILITY or -CYCLE, is a fundamental problem in algorithmic graph structure theory and the focus of our work. We call the pair an annotated graph and a solution an -cycle. For an example, see Figure 1.

Figure 1: An instance of TERMINAL CYCLABILITY. The vertices in are red and an -cycle is highlighted.
Note that a solution does not need to be a Hamiltonian cycle of in order to constitute a valid solution. However, requiring the cycle to contain every vertex – that is, – reveals that TERMINAL CYCLABILITY is in fact a generalisation of HAMILTONIAN CYCLE. In light of the dichotomy for HAMILTONIAN CYCLE explained above, this gives rise to the central question motivating our work:
Can we distinguish those classes of annotated graphs where TERMINAL CYCLABILITY is tractable from those where the problem is NP-complete?
Our result. To start our quest, we draw further inspiration from the above dichotomy for HAMILTONIAN CYCLE and restrict ourselves to classes of annotated graphs closed under an appropriate

Figure 2: An instance of DOUBLETS with a pre-selected set of words from the SOWPODS scrabble dictionary. The task is to find a cycle through the seven sins, that is, the given words are . The interested reader may find it amusing to search for an -cycle. A solution can be found in Section 9.
analogue of the minor relation for annotated graphs. An annotated graph is a red-minor of some annotated graph if can be obtained from by a sequence of (i) edge deletions, (ii) vertex deletions, (iii) edge contractions, where the resulting vertex is red if and only if at least one of the endpoints of the contracted edge was red, and (iv) colour erasures, that is, forgetting the red colour of some vertex. Red-minors, sometimes also referred to as rooted minors, have been widely studied in the literature as a natural extension of the minor relation to annotated graphs and for their algorithmic properties. Within the framework of red-minors, we provide the following full classification of the tractability landscape of TERMINAL CYCLABILITY:
Theorem 1.1. Let be a red-minor-closed class of annotated graphs. If does not contain all annotated planar graphs, then TERMINAL CYCLABILITY can be solved in polynomial time on . Otherwise, TERMINAL CYCLABILITY is NP-complete on .
One may see Theorem 1.1 as a natural extension of the treewidth-based dichotomy for HAMILTONIAN CYCLE in minor-closed graph classes. In fact any red-minor-closed graph class excluding some annotated graph where is planar must have bounded treewidth. Moreover, every red-minor-closed class containing all planar annotated graphs contains in particular all planar annotated graphs of the form . Hence, TERMINAL CYCLABILITY is NP-complete even when restricted to inputs from . However, the novelty of Theorem 1.1 arises in the space between these two extremes: For every planar annotated graph with , the class of -red-minor-free annotated graphs has unbounded treewidth and yet TERMINAL CYCLABILITY remains tractable on . Theorem 1.1 closes the remaining gap: It completes previously known results by stating that excluding any annotated planar graph implies tractability. This also answers an open question recently raised by Thilikos and Wiederrecht [TW26b] in the affirmative.
Our tools: Weak irrelevant vertices and bidimensionality. Red-minor-closed classes excluding an annotated planar graph are precisely those of bounded bidimensionality [TW25, GPW26]. Here the bidimensionality of an annotated graph is defined to be the largest such that contains an all-red -grid as a red-minor. We show that every TERMINAL CYCLABILITY instance of bidimensionality can be reduced, by deleting irrelevant vertices, to an equivalent instance of treewidth for some computable function . Combined with a single-exponential algorithm parameterized by treewidth, this yields polynomial-time solvability for every fixed . This weak irrelevant vertex rule overcomes an obstruction identified by Thilikos and Wiederrecht [TW26b] who showed that there cannot be such a reduction in which the treewidth only depends on . In fact, their examples show that treewidth is necessary. The logarithmic threshold is therefore both sufficient for tractability and necessary for this approach. More broadly speaking, we reveal a way to extend the reach of the irrelevant vertex technique by matching the target treewidth to the dependence on treewidth of the final algorithm.
Our proof builds on a recent structure theorem for annotated graphs of bounded bidimensionality [PTW26, GPW26], analogous to Robertson and Seymour's theorem for -minor-free graphs [RS03]. It provides access to topological tools even though the input classes may contain arbitrary ordinary minors. The central new argument shows that deep intrusions of a suitably chosen solution into a topologically controlled region force exponential branching: each additional constant amount of depth requires a constant-factor increase in the number of disjoint substructures. Their depth is consequently . A second key argument then reroutes the solution through an insulated annulus using at most two crossing paths, independently of . The main technical challenge is to preserve the logarithmic threshold throughout these steps. Even a polynomial loss in would defeat the polynomial-time conclusion, so the structural reductions and rerouting arguments must retain linear dependence on this scale.
1.1 A closer look at our result
Our main result rests on a relaxation of the irrelevant vertex technique. The guiding principle is that, for a problem solvable in single-exponential time parameterized by treewidth, reducing the treewidth to a logarithmic function of the input size already suffices for polynomial-time solvability. We show that this perspective extends the reach of irrelevant vertex methods beyond a known structural barrier for TERMINAL CYCLABILITY.
From bounded to logarithmic treewidth. The irrelevant vertex technique, pioneered by Robertson and Seymour [RS95, RS09, RS12], is a cornerstone of algorithmic graph minors. Its usual implementation repeatedly deletes vertices whose removal preserves the answer until the remaining graph has treewidth bounded by a function only depending on the parameter. An algorithm for bounded treewidth then solves the reduced instance. This approach underlies many algorithms for routing and related problems [AKK+17, CGK+26, KPS24, LSZ20, SST25].
For polynomial-time solvability at each fixed parameter value, however, a parameter-only bound on the remaining treewidth is more than we need. If a problem admits an algorithm with running time on graphs of treewidth , then a reduction to treewidth yields running time . Thus, an efficiently computable irrelevant vertex rule with a logarithmic threshold can yield an XP-algorithm even when a parameter-only threshold is impossible.
A structural barrier for conventional irrelevant vertices. For TERMINAL CYCLABILITY, this distinction is essential. Thilikos and Wiederrecht [TW26b] identified a parameter that characterises the red-minor-closed classes on which the conventional irrelevant vertex approach applies. Bounded permits a fixed-parameter algorithm that either bounds the treewidth by a function of the parameter or finds an irrelevant vertex. Every red-minor-closed class of unbounded , however, contains a family of annotated planar graphs with bounded bidimensionality and unbounded treewidth, but no irrelevant nonterminal vertices. Each has an -cycle, and deleting any vertex outside destroys all such cycles.
These examples rule out a parameter-only irrelevant vertex threshold for TERMINAL CYCLABILITY parameterized by bidimensionality. Crucially, they do not establish computational hardness. Moreover, their size grows exponentially with their treewidth: they leave open the possibility of a logarithmic threshold. Our result shows that this remaining possibility is sufficient to recover tractability throughout the entire bounded-bidimensionality regime.
The weak irrelevant vertex property. We formalise this relaxation as follows. A parameterized graph problem with parameter has the weak irrelevant vertex property if there exists a fixed-parameter algorithm that either determines that the input graph has treewidth at most , for some computable function , or finds a non-empty set of vertices whose deletion preserves the answer to the instance.
For TERMINAL CYCLABILITY, a set is irrelevant if is a yes-instance if and only if is a yes-instance. Our central algorithmic result establishes the weak irrelevant vertex property for TERMINAL CYCLABILITY parameterized by bidimensionality. It also supplies the tree-decomposition needed to solve the reduced instance.
Theorem 1.2. There exists a function and an algorithm that takes as input an instance of TERMINAL CYCLABILITY and an integer , and finds one of the following outcomes in time:
i) ,
ii) an induced subgraph with such that is irrelevant and does not contain as a minor, or
iii) a tree-decomposition for of width at most .
Since bidimensionality cannot increase under vertex deletion, we may repeatedly apply Theorem 1.2 until the remaining instance has logarithmic treewidth. Our single-exponential algorithm parameterized by treewidth then gives an -time algorithm, where . Consequently, TERMINAL CYCLABILITY is polynomial-time solvable on every red-minor-closed class excluding an annotated planar graph. The polynomial degree depends on the class, while both the number of terminals and the treewidth may be unbounded. The obstruction family explains why the logarithmic factor cannot simply be replaced by a constant depending only on .
Relation to earlier tractable regimes. Previous work on TERMINAL CYCLABILITY establishes tractability through parameterizations by the number of terminals [RS95, GRZ25] and more general parameters that allow for unbounded numbers of terminals and instead restrict their distribution within the graph [JS24, HLMR26, PTW26, TW26b]. Our approach takes on a new point of view on this landscape which can be applied, for example, to the planar arguments of Gahlawat, Rathod, and Zehavi [GRZ25] in order to derive another tractability result. Although their algorithms are parameterized by the number of terminals, we observe that their rerouting arguments can be adapted to obtain an irrelevant vertex threshold of when the terminals can be covered by faces. Combined with a single-exponential algorithm parameterized by treewidth, this gives an -time algorithm. This consequence is not stated in their paper. Since our main result subsumes this observation, although with worse bounds, we do not provide further details and leave the proof as an exercise for the interested reader. Our main theorem extends tractability to all classes of bounded bidimensionality, including classes of unbounded and annotated planar graphs with bounded face-cover number.
For a concrete example beyond the bounded- regime, consider the class defined as the red-minor closure of all planar annotated graphs admitting an embedding with a face such that every terminal lies on or has a neighbour on . This class is red-minor closed and excludes the all-red -grid, yet has unbounded . Our theorem establishes polynomial-time solvability on this class despite the obstruction to conventional irrelevant vertex methods.
The remaining parameterized complexity challenge. Our dichotomy settles polynomial-time solvability on red-minor-closed classes, but leaves a central question open: is TERMINAL CYCLABILITY fixed-parameter tractable when parameterized by bidimensionality, or can one establish -hardness? Our algorithm runs in time, so the degree of the polynomial depends on . An FPT-algorithm would replace this bound by , with an exponent independent of . The known obstructions to parameter-only irrelevant vertex thresholds do not rule out such an algorithm: they constrain a reduction technique rather than establishing computational hardness. Determining whether the parameter dependence can be removed from the exponent, or proving a parameterized lower bound that prevents this, is a crucial next challenge in understanding how the structure of the terminal set governs spanning routing.
A broader algorithmic perspective. The weak irrelevant vertex property suggests a promising direction for algorithmic graph minors. For problems admitting single-exponential algorithms parameterized by treewidth, a logarithmic irrelevant vertex threshold can already support polynomial-time algorithms on structurally restricted classes. The central challenge is to obtain such a threshold while keeping every structural reduction linear in .
TERMINAL CYCLABILITY demonstrates that this approach can succeed even in the presence of explicit obstructions to the conventional irrelevant vertex property. Natural candidates for further investigation include SPANNING DISJOINT PATHS and the annotated deletion problems discussed in our conclusion. For spanning paths, prescribed connections prevent the direct use of our cycle rerouting argument as further expanded upon below, leaving SPANNING DISJOINT PATHS as a natural yet challenging next test case. Across the board, the weak irrelevant vertex property provides a concrete target for a possibly wide class of computational problems on annotated graphs: establish

Figure 3: The depth hierarchy of annotated grid parameters. Known algorithms for TERMINAL CYCLABILITY are fixed-parameter tractable parameterized by depth, while our algorithm is in XP parameterized by depth = bidim. A red-minor-closed class has bounded bidimensionality exactly when it excludes an annotated planar graph; otherwise, TERMINAL CYCLABILITY is NP-complete on the class.
enough structural reduction for the final algorithm to run in polynomial time, even when reduction to parameter-bounded treewidth is impossible.
1.2 Related work
In the following, we give an overview of relevant related results in the known literature.
Annotated grids and structural parameters. The structural parameters underlying our result belong to the depth hierarchy introduced by Thilikos and Wiederrecht [TW26b]; see Figure 3. This hierarchy extends the grid characterisation of treewidth: Robertson and Seymour [RS86] proved that treewidth is functionally equivalent to the largest order of a square grid minor. For annotated graphs, prescribing which branch sets of the grid must meet the terminal set gives a sequence of increasingly permissive structural restrictions.
For integers , the -annotated -grid is the -grid with its leftmost columns coloured red. The parameter depth is the largest for which this annotated grid is a red-minor of . At the endpoint of the hierarchy, depth requires every vertex of the grid to be red and is precisely bidim. Thus, depth is functionally equivalent to treewidth, while depth corresponds to monodimensionality, also known as torso treewidth [MSW17, PTW26, DHM26].
The hierarchy also reflects changes in the structural machinery available. The grid theorem and the rooted grid theorem of Marx, Seymour, and Wollan [MSW17] provide tree-decomposition-based descriptions at its first two levels. Beyond these levels, known descriptions involve surfaces, apices, and vortices, as in Robertson and Seymour's Graph Minor Structure Theorem [RS03]. Such structure theorems are available for bounded depth [TW26b] and bounded bidimensionality [PTW26, GPW26] where the latter makes up the structural foundation for our proof. We explain its role in Section 1.3.
Disjoint Paths and spanning routing. The algorithmic study of TERMINAL CYCLABILITY is closely connected to DISJOINT PATHS, which asks for vertex-disjoint paths connecting prescribed pairs of terminals. Guessing the cyclic order of the vertices in , and splitting terminals appropriately, reduces TERMINAL CYCLABILITY to instances of DISJOINT PATHS. Robertson and Seymour's fixed-parameter algorithm for DISJOINT PATHS therefore also establishes fixed-parameter tractability of TERMINAL CYCLABILITY [RS95].
Recent advances improve different aspects of the running time. Korhonen, Pilipczuk, and Stamoulis [KPS24] obtained an -time algorithm. Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26] obtained a -time algorithm, with the more refined bound when the terminals have bidimensionality . Their quantitative bounds and irrelevant vertex machinery are important ingredients of our proof.
Even closer to TERMINAL CYCLABILITY is the above-mentioned variant SPANNING DISJOINT PATHS, where the prescribed paths must collectively visit every vertex of an additional set . Thilikos and Wiederrecht [TW26b] established its irrelevant vertex property when parameterized by the number of prescribed pairs and . Extending our weak irrelevant vertex rule to this problem remains open. The key distinction is that our rerouting may change the order in which a cycle visits the terminals, whereas spanning paths must preserve their prescribed connections.
Terminal Cyclability. Cycles through prescribed vertices have a long graph-theoretic history. Dirac [Dir60] proved that any specified vertices in a -connected graph lie on a common cycle for any . We refer to Gould's survey [Gou09] for extensions and related results.
For algorithms parameterized by the number of terminals, Kawarabayashi [Kaw08] developed a direct irrelevant vertex argument for TERMINAL CYCLABILITY, improving substantially on the running time obtained through DISJOINT PATHS. A different approach uses algebraic methods: Björklund, Husfeldt, and Taslaman [BHT12] gave a randomised -time algorithm, and Wahlström [Wah13] obtained another single-exponential randomised algorithm together with a randomised compression of size into an algebraic problem. The target problem is not known to be in NP, so this compression does not establish a polynomial kernel for TERMINAL CYCLABILITY. Indeed, TERMINAL CYCLABILITY is sometimes called the only natural problem for which we know a polynomial compression, but no polynomial kernel [GRZ25].
On the way towards a polynomial kernel for TERMINAL CYCLABILITY parameterized by the number of terminals, Gahlawat, Rathod, and Zehavi [GRZ25] recently obtained the first polynomial kernel for planar graphs. They also obtained a deterministic -time algorithm for planar graphs. Finally, Crespelle and Golovach [CG22] studied TERMINAL CYCLABILITY on restricted graph classes other than planar graphs and presented linear-time (unparameterized) algorithms for interval graphs, bipartite permutation graphs, and cographs.
Other variants of Disjoint Paths. DISJOINT PATHS is NP-complete already for two terminal pairs in directed graphs, and DIRECTED TERMINAL CYCLABILITY is NP-complete already for two specified vertices [FHW80]. Related work studies routing with congestion [BCH 26] and fixed-parameter algorithms for directed routing in planar graphs and for edge-disjoint routing in Eulerian digraphs [CMPP13, CKK24]. Another line imposes shortest-path requirements: DISJOINT SHORTEST PATHS was introduced by Eilam-Tzoreff [Eil98], with XP-algorithms developed by Lochet [Loc21] and Bentert, Nichterlein, Renken, and Zschoche [BNRZ23]. Bentert, Fomin, and Golovach [BFG26] studied approximation algorithms, kernelization, and parameterized algorithms for a variant where not all pairs of terminals must be connected.
1.3 Our methods
We prove the weak irrelevant vertex property for TERMINAL CYCLABILITY in three stages. Throughout this overview, let and .
i) Bounding vital instances. We first show that a vital instance, that is, an instance with a unique -cycle visiting every vertex, has treewidth . The central argument shows that deep intrusions of this cycle into a topologically controlled region force exponential branching, which limits their depth.
ii) Combing general solutions. We then use this bound to control solutions in arbitrary instances. Inside a sufficiently large terminal-free annulus, a solution can be rerouted so that it crosses a central subannulus along at most two paths, so the number of paths does not depend on .
iii) Finding an irrelevant vertex. Finally, we use this constant-size interface to insulate a central region whose size depends only on . Existing irrelevant vertex machinery can then be applied within this region. The resulting vertex is chosen independently of any solution, even though the annulus witnessing its insulation may depend on the solution.
A local rerouting lemma is the common tool behind the first two stages. It preserves a cycle through all terminals while allowing the order of traversal to change. This freedom drives both the branching argument and the reduction to two crossing paths. The following two constraints govern how we implement this strategy:
(1) Structural requirements. We use the structure theorem for excluding an annotated planar graph [GPW26], variants of the Flat Wall Theorem [SST24], and homogenisation techniques [GSW26]. Applying these tools may require an input wall substantially larger than the structure they produce. Such losses are usually compatible with a parameter-dependent treewidth threshold, but a polynomial loss in the wall order can be prohibitive at logarithmic scale.
(2) A logarithmic threshold. Our irrelevant vertex rule must apply whenever the treewidth exceeds , for some computable function . The final single-exponential treewidth algorithm then runs in polynomial time for each fixed . A threshold of , for any fixed , would no longer yield this polynomial-time bound.
The challenge is therefore to retain linear dependence on in the structural threshold throughout the proof. This concerns the size of the structures required, rather than polynomial factors in the running time needed to find them. It also dictates where we apply the more expensive tools: we use a logarithmic-size outer region for insulation and confine homogenisation to a central region whose size depends only on b. This separation of scales allows us to use the graph minor toolkit within the threshold required by our algorithm.
Excluding a clique minor. We first reduce to graphs excluding a clique minor whose order depends only on . This allows us to find large walls, which are grid-like subgraphs witnessing large treewidth, without losing the logarithmic scale. Indeed, directly using the general polynomial grid bound of Chuzhoy and Tan [CT21] would require a superlogarithmic treewidth threshold to obtain a wall of logarithmic order. For -minor-free graphs, however, treewidth already forces a wall of order [GSTW26]. To reach this setting, we adapt Robertson and Seymour's generic

Figure 4: The local rerouting lemma. Left: an -cycle intersects a terminal-free -mesh in its three vertical paths. Matching labels indicate their connections outside the mesh in this example. Middle: the rerouted cycle agrees with outside the mesh and avoids the vertices highlighted in yellow. Right: a configuration arising in the proof of Theorem 1.3. The lemma does not require the ambient graph to be planar.
folio argument [RS95]. Given a sufficiently large clique minor of order , we either certify that or find an irrelevant vertex. Combining this argument with the minor-testing algorithm of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK], we can repeatedly delete irrelevant vertices until the remaining graph excludes as a minor. This preprocessing takes time and makes the linear grid bound available for the subsequent arguments.
A local rerouting lemma. Our main routing tool is a local lemma inspired by the planar rerouting argument of Gahlawat, Rathod, and Zehavi [GRZ25]. Their argument controls segments of a cheapest solution within a family of concentric cycles. Its proof uses planarity to restrict how the parts of the cycle outside the local configuration can be connected. We establish a rerouting statement that depends only on a small mesh and its intersection with the solution, without any assumption on the planarity of the ambient graph or on how the solution is connected outside the mesh. Let be a terminal-free -mesh with horizontal paths and vertical paths . For a formal definition of meshes, we refer to Section 2. Suppose an -cycle intersects precisely in . We show that there is an -cycle that agrees with outside and avoids every vertex of . See Figure 4. The lemma applies to any such cycle: it requires neither minimality nor vitality, and the ambient graph may be arbitrarily non-planar.
The freedom to change how the exterior portions of the cycle are joined is essential. In their work on SPANNING DISJOINT PATHS, Thilikos and Wiederrecht [TW26b] use the additional structure supplied by bounded depth to obtain reroutings that preserve the prescribed terminal connections. That structure is unavailable under bounded bidimensionality alone. For TERMINAL CYCLABILITY, we instead exploit the freedom to change the order of traversal while preserving a single cycle through all terminals. Consequently, our lemma need not preserve the prescribed connections of a spanning linkage and in order to derive a weak irrelevant vertex rule for SPANNING DISJOINT PATHS, new ideas seem necessary.
Our local rerouting statement in a mesh drives both main routing arguments of our proof. In a vital instance, a mesh satisfying its hypotheses would permit a rerouting that avoids a vertex,

Figure 5: A sketch of an almost embedding with a small apex set and set of blue concentric cycles embedded in some disc on the surface. The purple discs are the vortices and the orange paths are part of an -cycle. Notice that the vertices of are confined entirely to the vortices and the apex set.
contradicting vitality. We use this contradiction to force branching among nested restrictions of the solution to a disc. Later, the same lemma allows us to reduce three crossings of a terminal-free annulus to one. Repeated applications yield the bound of at most two crossings needed to insulate the central region.
Bounding the treewidth of a vital instance. Following the vital-linkage approach of Robertson and Seymour [RS09], we first bound the treewidth of vital instances of TERMINAL CYCLABILITY. An instance is vital if it has a unique -cycle and . Thus, any rerouting that produces another -cycle, in particular one avoiding a vertex, contradicts vitality.
The main idea is that a deep intrusion of into a terminal-free region must be protected against such reroutings by further intrusions. We show that these protections force repeated branching: depth grows linearly, while the number of disjoint substructures grows exponentially. This yields the following logarithmic bound.
Theorem 1.3. There exists a function such that for every vital instance of TERMINAL CYCLABILITY, it holds that .
To explain the geometric setting of this argument, we require the full power of Robertson and Seymour's graph minor structure theory. Towards this goal, we briefly sketch some fundamental concepts while noting that these are mostly for intuition and do not necessarily reflect the full technical detail of the definitions used. Informally, an -almost embedding of a graph in a surface represents after deleting an set of at most vertices. This representation is an embedding of in with the exception of a bounded number of regions called , where non-planar behaviour is allowed but controlled by a bounded-width path-decomposition respecting the vortex boundary. The number of vortices is the , and their complexity is measured by the . See Figure 5 for an illustration.
The Graph Minor Structure Theorem of Robertson and Seymour [RS03, GSW25] asserts that every -minor-free graph can be built from -almost-embeddable graphs (into surfaces of Euler-genus at most and with breadth at most and depth at most ) by gluing along cliques. This notion of almost-embeddings is usually used to describe the global structure of -minor-free graphs. We do require a local variant more closely related to theorems of Robertson and Seymour [RS03, RS99, GSW25]. The representation of an almost embedding in this local version is much more involved and we use a formalisation known as surface renditions [RS99, KTW20, GSW25]. See Section 2.2 for the formal definitions. The notion of almost embeddings, however, is fully sufficient as an intuitive concept for the purpose of this introduction. For annotated graphs of bounded bidimensionality, the local structure theorem additionally confines all red vertices to the vortices and the apex set [PTW26, GPW26]. By the clique-minor argument above, a vital instance already excludes as a minor. The linear grid bound and the local structure theorem therefore provide a large family of concentric cycles represented in a vortex-free disc . Crucially, obtaining such cycles requires treewidth only . This preserves the linear dependence on the number of cycles that our logarithmic threshold requires.
The apices require particular care. Along , at most vertices outside are adjacent to the apex set. By preparing disjoint candidate discs, we therefore find one whose crop contains no such vertex. All red vertices are outside this crop as well. Inside the selected disc, vitality allows us to draw the remaining pieces attached through at most three vertices without crossings: the solution traverses all internal vertices of each piece along a single path, and any edge shortcutting that path would give another -cycle.
We next choose the concentric cycles appropriately, reserve the outermost cycle as the boundary of the disc, and split at its contacts with this boundary. We retain only the resulting paths that meet one of the remaining cycles. Standard rerouting arguments control how the resulting paths meet the retained cycles. Each path reaches a deepest cycle and returns to the boundary, with its two portions meeting the surrounding cycles in order. Moreover, unless is the outermost retained cycle, a path turning at forces another path on its outward side that turns at the next cycle . These reroutings preserve the endpoint pairs of the paths, so they can be joined to the unchanged parts of . Vitality therefore forces the original paths already to have the required behaviour.
Forcing branching. Our counting argument concerns all these restricted paths. Each path cuts off a region between itself and the disc boundary. These regions are nested or have disjoint interiors. Furthermore, nested paths must turn at different cycles.
Consider eight nested paths turning at consecutive cycles . The arms on each side of the first three paths, together with portions of four subsequent cycles, form a -mesh. If the solution met any of these meshes only in its three vertical paths, our local rerouting lemma would contradict vitality. Thus, an additional restricted path must meet each mesh. The nesting order forces each of these paths to cut off a region whose interior is disjoint from the region cut off by the third path. Comparing their contacts with the outermost cycle of the meshes shows that these two regions also have disjoint interiors. Applying the preceding next-cycle property within both regions gives two paths turning at . Together with the eighth path of the original stack, these give three branches in regions with disjoint interiors. See Figure 6 for an illustration.

Figure 6: Illustrations of the branching forced by the vitality of the instance, the rerouting lemma, and the assumption of some paths intersecting somewhere deep inside the nested cycles from . On the left, we illustrate how the rerouting lemma forces a branching in three directions. The paths are coloured orange. The two side branches and are coloured purple and the light yellow areas they enclose (together with parts of the outermost red cycle ) indicate regions with pairwise disjoint interiors. The dashed meshes indicate the areas that could potentially allow for an application of the rerouting lemma. On the right, we indicate how the branching continues when we continue through the surrounding cycles.
Every seven layers therefore give a branching step. Repeating the argument independently inside the three regions produces paths with distinct vertices after steps. Since the graph has only vertices, this bounds the number of concentric cycles by . Obtaining cycles required treewidth only , so sufficiently large treewidth would supply more cycles than this bound permits.
The Thilikos-Wiederrecht counterexamples. The class defined above is precisely the class of annotated graphs for which there exists some such that is a red-minor of the 2-annotated -grid. This is precisely how Thilikos and Wiederrecht prove the lower bound for their boundary on the applicability of the irrelevant vertex technique for TERMINAL CYCLABILITY [TW26b]. Within this class they identify a family of examples with the properties that each has treewidth while it is also a vital instance for TERMINAL CYCLABILITY. The example in Figure 7 illustrates precisely the branching behaviour predicted by our analysis as shown in Figure 6.
A weak insulation lemma. The bound on vital instances does not yet identify an irrelevant vertex in an arbitrary instance. To bridge this gap, we prove a variant of the annulus combing lemma of Golovach, Stamoulis, and Thilikos [GST23]. Informally speaking, combing reroutes a solution through a terminal-free annulus so that, within a central subannulus and away from its two boundary circles, it coincides with a union of selected radial paths called rails. This exposes the connections through which the solution interacts with the region inside the annulus. The standard route from combing to irrelevant vertices faces two related obstacles in our setting:

Figure 7: An illustration of the recursive construction of the counterexample family to the irrelevant vertex property of TERMINAL CYCLABILITY in red-minors of the 2-annotated -grids. The annotated graph displayed is . The full annotated graph is a vital instance of TERMINAL CYCLABILITY recursively created from two types of gadgets (the purple and yellow pieces and on the level below the green and orange pieces respectively). Notably, the treewidth of these graphs grows linearly in the number of layers while their vertex-number grows exponentially in the number of layers.
Problem 1: A logarithmic interface. The bound on vital instances initially gives a combed solution using rails. Thus, the number of connections to be preserved inside the annulus may still depend on .
Problem 2: Preparing the inner region. Existing irrelevant vertex arguments require a sufficiently large wall with additional properties. Specifically, suspension and homogeneity are required. Homogeneity ensures that the bounded routing configurations available locally, including connections involving apices, recur throughout the wall. Homogenisation can require a polynomial increase in the initial wall order [GSW26], and finding a suspended wall by the available algorithm has a super-single-exponential dependence on that order [SST24]. Applying these tools at logarithmic scale would exceed our computational budget and require super-linear dependency on for our structural bounds.
Our local rerouting lemma resolves the first obstacle. Once a solution is combed, any three consecutive occupied rails, together with four suitable portions of the surrounding cycles, form a mesh after contracting the relevant contact paths. Our local rerouting lemma applies to this mesh. Re-routing reduces the number of crossings by two. Moreover, the additional portions that turn back towards the same boundary can be excluded by trimming a constant number of layers. Repeating this operation leaves at most two occupied rails. Since the initial number of crossings is and each operation consumes only a constant number of layers, the total amount of insulation required remains logarithmic.
This constant-size interface allows us to separate the two structural scales. Using the linear grid theorem [GSTW26] and a variant of the Flat Wall Theorem whose required wall order is linear in the desired output order [GSW25], we find a flat wall of order after deleting an apex set of size . Its outer layers provide the logarithmic insulation, while a central region of size depending only on provides room for suspension and homogenisation. Once insulated, this region interacts with a solution through at most two rails and the incidences of the apices. After recording these connections, the required rerouting can be encoded by a rooted minor of detail at most three with roots. We can therefore apply the more expensive preparation tools entirely at a scale depending only on with one caveat: the annulus must avoid the incidences used by the apices in the solution, which the algorithm does not know. We address this by constructing nested candidate annuli with pairwise disjoint domains, all surrounding the same central region. A cycle uses at most two incidences at each apex, so for every solution at least one candidate annulus avoids all these incidences and permits combing. The successful annulus may depend on the solution, but the central region is fixed. Inside this region, we find a sufficiently large suspended and homogeneous wall and select a vertex that is irrelevant for all the bounded routing configurations arising from the possible solutions [CGK26]. Whichever candidate annulus supplies the insulation, the corresponding solution can consequently be rerouted to avoid this same vertex. The vertex is thus irrelevant for the original instance of TERMINAL CYCLABILITY and can be found without knowing a solution. This completes the passage from the structural bound on vital instances to the algorithmic rule in Theorem 1.2.
From logarithmic treewidth to polynomial time. The final ingredient is the following single-exponential (deterministic) algorithm for TERMINAL CYCLABILITY parameterized by treewidth.
Theorem 1.4. Let be an integer. There exists an algorithm that takes as input an annotated graph where and solves TERMINAL CYCLABILITY in time . Moreover, if a tree-decomposition of width at most for is supplied as part of the input, the algorithm runs in time .
The algorithm uses dynamic programming over a tree-decomposition. If implemented in a naïve way, the dynamic program has entries. We instead keep representative families using the framework of Bodlaender, Cygan, Kratsch, and Nederlof [BCKN15]. This reduces the dependence on the treewidth to single exponential and this improvement is essential to the final running-time bound. Repeatedly applying Theorem 1.2 either deletes a non-empty irrelevant set or supplies a tree-decomposition of width . The single-exponential dynamic program then runs in time, giving the claimed XP-algorithm. By comparison, the direct implementation would yield only a quasi-polynomial bound for fixed .
We mention that we may assume to be dealing with a -minor-free graph due to our preprocessing and that many problems are known to admit single-exponential parameterized algorithms when parameterized by treewidth on -minor-free graphs. However, we are not aware of an existing proof that TERMINAL CYCLABILITY admits such an algorithm.
2 Preliminaries
We introduce basic concepts as well as more advanced ideas from the toolkit of graph minors.
2.1 Basics
We open with a short array of definitions for commonly used concepts and notation. By we denote the set of non-negative integers. Given any two integers , we write for the set . Notice that the set is empty whenever . For any positive integer we set . We denote the multiset union by . For a graph , we denote the set of vertices by and the set of edges by . We use the shorthands and .
For a set , we denote by the set of all subsets of of size exactly and by the power set of , that is, the set of all subsets of . For a set , let denote the set of perfect matchings on , that is, the set of all subsets of in which every element of appears exactly once. For a graph and a collection of subgraphs of , we denote by the set and by the set .
Treewidth. A tree-decomposition for a graph is a pair such that is a tree, assigns to each node of a subset of the vertices of known as a bag, , and for each , the set is connected. The width of is defined as . The treewidth of a graph , denoted by , is the smallest integer such that has a tree-decomposition of width at most .
We use rooted nice tree-decompositions whose nodes have one of the following types. A leaf node has a bag and introduces . An introduce-vertex node has one child and for some . An introduce-edge node has one child , satisfies , and introduces one edge with both endpoints in . A forget-vertex node has one child and for some . Finally, a join node has two children with . We require every edge to be introduced exactly once.
Unlike the usual definition, we allow the root bag to contain two vertices. The standard refinement of tree-decompositions shows that, given a tree-decomposition of width and a set contained in one of its bags, one can construct in time a nice tree decomposition of the same width, with root bag and nodes. See, for example, Bodlaender, Cygan, Kratsch, and Nederlof [BCKN15].
Red-minors and bidimensionality. Let and be graphs. A minor model of in is a family of connected subgraphs of such that
i) for all ,
ii) for all and the intersection vertex is an endpoint of ,
iii) if for all and ,
iv) is a path in for every , and
v) and are internally vertex-disjoint for all .
In case is isomorphic to we do not require to be part of the model explicitly. This also means that may be a minor model of in if for all , there is an edge in between and . Most of the time, we will be working with this simpler version of a model, but sometimes it will be convenient to provide explicit models for edges. In particular, all clique-minor models considered below are represented solely by their branch sets, with an edge between every two distinct branch sets.
An annotated graph is a red-minor of an annotated graph if there exists a minor-model of in such that for all . The bidimensionality of an annotated graph , denoted by , is the largest integer such that there exists as a red-minor in where denotes the -grid. If , then we set . We say that a subgraph of is blank if it does not contain any vertices in .
Paths, linkages, and vitality. A linkage in a graph is a set of pairwise vertex-disjoint paths. Given the set of the endpoints of the paths in , we say that is a -linkage. Based on , we define the pattern of as . In some cases, we are already given a set of terminal pairs. In such a situation, we say that a linkage is a -linkage if and for every there is a path with endpoints and . In DISJOINT PATHS, one is given as input a graph and a set of terminal pairs and the question is whether a -linkage exists. Given a -linkage in a graph we say that is vital if and is the unique -linkage in with its pattern.
We say that a path in is internally disjoint from a set if does not contain any vertex of that is not an endpoint vertex. Given a graph and two subsets , an -path in is a path with both endpoints in and internally disjoint from , and an -B-path is a path with one endpoint in , the other in , and internally disjoint from . An -B-linkage in is a linkage consisting of -B-paths. If is a subgraph of , an -path is a -path of length at least one with no edge in .
We will make heavy use of the following minor-testing algorithm.
Proposition 2.1 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). There exists an algorithm that takes as input two graphs H and G and either correctly decides that G does not contain H as a minor or outputs a minor model of H in G in time .
Surfaces. By a surface we mean a compact 2-dimensional manifold with or without boundary. Let . The boundary and interior of will be denoted and , respectively. The topological closure of is denoted by .
Let be continuous and injective on , such that either or . We say that the image of is a curve in and are its endpoints. A curve is closed if its endpoints agree.
2.2 Tools more specific to graph minor structure theory
We continue by briefly introducing some key concepts for handling the general structure of H-minor-free graphs. The definitions we introduce here originate from the work of Robertson and Seymour [RS99]. They were later refined by Kawarabayashi, Thomas, and Wollan [KTW20] and then adopted and reiterated by several authors (see for example [TW26a, PPTW24, PPTW25, GSW25]).
Brambles. Let be a graph. A bramble in is a collection of connected subgraphs of such that for all either or there exists an edge with one end in and the other in . A hitting set for a bramble is a set such that for all . The order of a bramble is the minimum size of a hitting set for .
Proposition 2.2 (Reed [Ree97]). Let be an integer and be a graph. If has a bramble of order , then .
Separations and tangles. Let be a graph and be a positive integer. A separation of is a pair such that , , and there is no edge with one end in and the other in . The order of a separation of is defined as . We denote by the collection of all separations of order less than in . An orientation of is a set such that for all exactly one of and belongs to . A tangle of order in is an orientation of such that for all , it holds that . If is a tangle and we call the small side and the big side of . Let be a graph and and be tangles of . We say that is a truncation of if .
Let and be graphs as well as be a tangle in . We say that a minor-model of in is controlled by if there does not exist a separation of order less than and a vertex such that . In particular, let and be a minor model of , then for every separation of order less than there is some such that is contained in either or . Moreover, for , if , then there is no with . Indeed,
is known to be a tangle and usually referred to as the tangle induced by [RS91, BU22].
If has order at least 1, then we denote by the -big component of the unique component of such that for all where . We call the -big component of the -big component of .
Let be a tangle of order in a graph and let be a set with . We denote by
the tangle of G - A inherited from T.
Meshes. Let be integers with . A -mesh is a graph which is the union of paths where
• are pairwise vertex-disjoint, and are pairwise vertex-disjoint.
• for every and , the intersection induces a path,
• each is a -path intersecting the paths in the given order, and each is a -path intersecting the paths in the given order.
We say that the paths are the horizontal paths, and the paths are the vertical paths. The union is a cycle called the perimeter of . The unique cycle in the union , where and , is called a brick of . A mesh is a submesh of a mesh if every horizontal (vertical) path of is a subpath of a horizontal (vertical) path of , respectively. We write -mesh as a shorthand for an -mesh.
Let with , let be a graph, and be an -mesh in . Let be the orientation of such that for every , the set contains the vertex set of both a horizontal and a vertical path of . Then, is the tangle induced by . If is a tangle in , we say that controls the mesh if is a truncation of . A minor model is controlled by if it is controlled by .
The significance of meshes lies in the fact that every mesh has large treewidth and, reversely, every graph of large treewidth must contain a big mesh. This theorem is originally due to Robertson and Seymour [RS86]. The variant of this theorem we state here guarantees a linear relation between the size of the grid minor and the treewidth in H-minor-free graphs.
Often a special case of meshes known as “walls” is used in the literature. Let be two positive integers. The -grid is the graph with the vertex set and the edges
An n-grid is an -grid.
The elementary -wall is in turn derived from the -grid by deleting all edges in the following set
and removing all vertices of degree at most 1 in the resulting graph. An -wall is a subdivision of the elementary -wall. An n-wall is an -wall.
It is relatively easy to see that every -wall is also an -mesh for each . Conversely, every -mesh contains a -wall as a subgraph.
Proposition 2.3 (Gorsky, Stamoulis, Thilikos, and Wiederrecht [GSTW26]). There exists a function and an algorithm that, given an integer , a -vertex graph of Euler genus , and an -minor-free graph , outputs in time either a -mesh in or a tree-decomposition of of width .
Paintings in surfaces. A painting in a surface is a pair , where , is finite, is closed, has a finite number of arcwise-connected components, called cells of , and for every cell , the closure of , denoted by , is a closed disc where . If , the cell is called a vortex. We further let , let , and let be the set of all cells of .
Any given painting defines a hypergraph with as its vertices and one hyperedge for each cell . Accordingly, we call the nodes of .
-renditions. Let be a graph and be a surface. A -rendition of is a triple , where
• is a painting in ,
• for each cell , is a subgraph of , and
• is an injection,
such that
R1 ,
R2 for all distinct , the graphs and are edge-disjoint,
R3 for every cell , and
R4 for every cell , we have .
We write for the set , let for all , and similarly, we lift the set of cells from to . If it is clear from the context which is meant, we will sometimes simply write instead of , and if the -rendition for is understood from the context, we usually identify the sets and along for ease of notation.
Blank renditions. Let be a -rendition of an annotated graph . If
is disjoint from , we call a blank rendition (of ).
Societies. Let be a cyclic ordering of the elements of some set which we denote by . A society is a pair , where is a graph and is a cyclic ordering with . For a given set a vertex is an endpoint of if there exists a vertex that immediately precedes or succeeds in . We call a segment of if is a set of consecutive vertices in the cyclic ordering .
Let be a society and let be a surface with one boundary component homeomorphic to the unit circle. A rendition of in is a -rendition of such that the image under of is and is one of the two cyclic orderings of defined by the way the points of are arranged in the boundary .
Traces of paths and cycles. Let be a -rendition of a graph . For every cell with , we select one of the components of . This selection will be called a tie-breaker in , and we assume that every rendition comes equipped with a tie-breaker.
Let be a graph and be a -rendition of . Let be a cycle or path in that uses no edge of for every vortex . We say that is grounded if either is a path of length at least one with both endpoints in , or is a cycle that uses edges of and for two distinct cells . If is grounded we define the trace of as follows. Let be distinct nontrivial maximal subpaths of such that is a subgraph of for some cell . Fix . The maximality of implies that its endpoints are and for distinct nodes . If , let be the closure of the component of selected by the tie-breaker, and if , let be the closure of the component of that is disjoint from . We define by pushing slightly so that it is disjoint from all cells in , while maintaining that the resulting curves intersect only at a common endpoint. The trace of is defined to be the curve obtained from by slightly pushing it in order to ensure that intersects the painting of in nodes only. If is a cycle, its trace is therefore the homeomorphic image of the unit circle, and otherwise, it is an arc in with both endpoints in .
Aligned discs and grounded subgraphs. Let be a graph and let be a -rendition of . We say that a 2-connected subgraph of is grounded (in ) if every cycle in is grounded and no vertex of is drawn by in a vortex of . A disc in is called -aligned if its boundary only intersects in nodes. If is planar, we say that it is flat in if there exists a -aligned disc which contains all cells with and does not contain any vortices of . For any -aligned disc , we call the subgraph of that is drawn by onto the crop of by (in ). Furthermore, the restriction of by is defined as the -rendition that consists of the restriction of , and to .
This allows us to define a society associated to as follows. Let be the set of all vertices whose corresponding nodes are drawn in the boundary of and let be the cyclic ordering of obtained by traversing along the boundary of in the anticlockwise direction. Now, let be the crop of by . We call the society the -society (in ). If is clear from the context, we do not mention it. We also call the restriction of by , the restriction of to .
Let be a -rendition of a graph , where is connected. If is a grounded cycle whose trace bounds a closed disc , we call a -disc in . If is the sphere, then there are two discs bounded by the trace of . If the trace is contained in a specified disc, we choose its -disc inside that disc; otherwise, we choose one of the two discs arbitrarily.
Flat Meshes. Let be an integer. Let be a graph, and let be an -mesh. We say that is a flat mesh in if there exists a sphere-rendition of with a unique vortex such that is grounded and flat in , and the closed disc bounded by the trace of the perimeter of whose interior avoids contains every node corresponding to a vertex of . For this rendition, the perimeter-disc of is always chosen to be . We say that witnesses the flatness of .
Inner and outer graphs of cycles and aligned curves. Let be a graph with a -rendition and let be a (closed) curve in . We say that is -aligned if it intersects in nodes only. That is, must be disjoint from all cells of . Further, let be a grounded cycle or a -aligned closed curve whose trace – or itself, if it is a closed curve – bounds a disc and the -society . If is a grounded cycle, then we call the inner graph of (in ) and call itself the proper inner graph of (in ). Let . We define the proper outer graph of (in ) as and call the outer graph of (in ). If is a -aligned closed curve, then we call the inner graph of and the outer graph of .
Transactions and nests. Let be a society. A transaction in is an -B-linkage for disjoint segments of consisting of -paths.
Let be a -rendition of a graph . Further, let be a sequence of pairwise disjoint cycles in , such that each of them is grounded in and we have , where is the -disc for each . We say that the cycles in are concentric (in ) and call the inner cycle and the outer cycle of in .
Let now be a rendition of a society . A nest (in ) is a set of concentric cycles with the inner cycle such that every vortex of is found in the -disc. The order of a nest is its number of cycles.
Depth of vortices. Let be a graph and be a -rendition of with a vortex cell . Notice that defines a society , where is the set of vertices of corresponding to . The ordering is obtained by traversing along the boundary of the closure of in anti-clockwise direction. We call as obtained above the vortex society of .
We define the depth of a society as the maximum cardinality of a transaction in . The depth of the vortex is thereby defined as the depth of its vortex society.
Given a -rendition , we define the breadth of as the number of vortex cells of and the depth of as the maximum depth of its vortex societies, or zero if there are no vortices.
2.3 The structure of annotated graphs of small bidimensionality
We use the following consequence of the structure theorem of Gorsky, Protopapas, and Wiederrecht [GPW26] that establishes polynomial bounds for the structure of annotated graphs of small bidimensionality. We slightly modify the original statement and use a refinement of its first outcome described by Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26].
Proposition 2.4 (Gorsky, Protopapas, and Wiederrecht [GPW26]). There exist functions and such that for all integers , and , every annotated graph with , and every -mesh one of the following holds.
i) has a blank -minor model and a separation of order at most such that the -big component of is blank,
ii) has a red -minor model controlled by M, or
iii) there exists a set with and a surface of Euler genus less than such that has a blank -rendition with breadth at most , depth at most , and there exists a vortex-free, -aligned disc such that the restriction of to contains a w-wall that is grounded and flat in . Moreover, if we denote by the vortices of , then for every there exists a -aligned disc such that
• contains and is disjoint from and from for all , and
• there exists a nest of order k in the restriction of to .
Moreover, it holds that and .
There also exists an algorithm that, given , an annotated graph , and a mesh as above as input, finds one of these outcomes in time .
3 Preparing the toolkit
We require some additional tools that can be imported almost entirely from the literature. Those include a subroutine finding an irrelevant vertex whenever our instance contains a large clique minor relative to its bidimensionality, and some fundamental operations to deal with paths in a surface relative to a large set of concentric cycles embedded in some disc. The purpose of this section is the preparation of these tools for later use.
3.1 What to do with a clique
While we are not restricting the number of vertices in , the fact that we bound the bidimensionality of our instances allows us to easily find irrelevant vertices in large enough clique minors. This observation has two distinct purposes in our proof: First, it allows us to show that vital instances do not contain large clique minors – where the size of the excluded minor is conditioned only on the bidimensionality of . Second, within our final algorithm it allows us to perform a preprocessing step in which we first detect all large clique minors in the graph and subsequently remove their irrelevant vertices. Once this procedure terminates we know that we are now in the regime of -minor-free graphs which allows us to call upon Proposition 2.3 to ensure that the graph either has treewidth in , or contains a grid minor of order at least where and are functions we will determine later and denotes the bidimensionality of the instance . Key to this irrelevance is the following theorem of Robertson and Seymour.
Let be a graph and be a set of vertices. The weak -folio relative to , denoted by , is the set of all patterns of linkages in with at most paths and all endpoints in . Singleton paths are allowed. A vertex is said to be irrelevant for the weak -folio relative to if and only if . In particular, it is worthwhile pointing out that the weak -folio relative to defined above is essentially the special case where the detail in the original statement.
Proposition 3.1 (Robertson and Seymour [RS95]). Let be a graph, let be a non-negative integer, and let with . Further let , let be a minor model of in , and let be a separation in such that
i) for some ,
ii) ,
iii) subject to item i) and item ii), is of minimum order, and
iv) subject to item i), item ii), and item iii), A is maximal.
Then for any , is irrelevant for the weak -folio of relative to .
In particular, given , , and as above, such a vertex can be found in -time.
We will also require the following result from [PTW26] which refines some of the tools from [RS95].
Proposition 3.2 (Protopapas, Thilikos, and Wiederrecht [PTW26]). Let and be integers with . Let be an annotated graph such that contains a minor model of . Then one of the following is true:
i) There exists a red-minor model of a red in such that is a truncation of , or ii) There exists a set of size at most such that the -big component of is blank.
Furthermore, there exists an algorithm that takes as input , , and as above and finds one of the two outcomes in time .
With this, we are ready to state the main lemma of this subsection.
Lemma 3.3. Let be positive integers where , let be an instance of TERMINAL CYCLABILITY. If there exists a minor model of in , then either or there exists an irrelevant vertex .
Moreover, there exists an algorithm that takes as input , , and as above and either correctly concludes that or finds the irrelevant vertex in time .
Proof. We first show that we may assume without loss of generality that . If , any vertex is irrelevant, since deleting one vertex leaves a clique minor of order at least three. If , then we can find a cycle containing , or determine that none exists, in linear time. In the latter case, any non-red vertex is irrelevant. Otherwise, if the cycle is not spanning, any vertex outside it is irrelevant. If it is spanning, the clique minor guarantees a chord, and one of the two cycles obtained using that chord contains and omits a vertex. Hence, we may assume that .
We apply Proposition 3.2 to , looking for a red -clique minor. In case we find this clique minor, it is clear that also contains a red -grid as a red-minor, thereby implying that . Hence, we may assume that we find the second outcome of Proposition 3.2: A set of size at most such that the -big component of is blank. In other words, there exists a separation with and of order at most such that and . Moreover, this also means that there exists a minor model of in since can intersect at most branch sets of and .
Now notice that any solution intersecting contains at least two distinct vertices of , since is blank and . Splitting at its vertices in , let consist of the resulting paths with non-empty interiors contained in . We encode these paths by their terminal pairs in . To make this formally correct, we need to first observe that for any solution of , each vertex of contained in has degree 2. Hence, the corresponding instance of DISJOINT PATHS in uses any vertex of for at most 2 terminals. Thus, we obtain from by replacing every vertex of by two non-adjacent copies with the same neighbours in . This is also the reason why we stressed that is a minor model of a clique with vertices. Let be the resulting set and notice that . We include every unused vertex of as a singleton path in the linkage pattern, ensuring that replacement paths remain internally disjoint from .
Suppose there is some vertex such that is irrelevant for the weak -folio of relative to . Then we may reroute the lifted linkage of any solution intersecting in while preserving its pattern. Discarding the singleton paths, identifying the copies, and restoring the unchanged part of in yields a simple -cycle: The replacement paths have pairwise disjoint interiors in , two distinct original endpoints each, and at least two edges each, since is independent. Solutions disjoint from already avoid . It follows therefore that is irrelevant for .
We can find a separation of satisfying the requirements of Proposition 3.1 in time [KKR12]. By applying Proposition 3.1 to , and with , we find a vertex

Figure 8: An illustration of the inner workings of the proof of Lemma 3.3. On the left, the situation after the application of Proposition 3.2 with a small order separation between the red vertices and the clique-minor (indicated in grey). The orange curve illustrates the possible behaviour of an -cycle . On the right we see the corresponding situation in with the duplicated vertices in the separator. The dashed orange paths indicate how the clique-minor may be used for routing the left side of through the size-constrained clique minor. The green vertex is irrelevant.
that is irrelevant for the weak -folio relative to . Since , this vertex is also irrelevant for the weak -folio and hence for .
3.2 The wells are running dry
In this subsection we recall some fundamental results about linkages intersecting a partial embedding of a graph in a disc which contains a family of concentric cycles. It has been observed several times that such linkages – and the cycles themselves – can always be deformed such that the paths interact with the cycles in a “convex” manner. This property is crucial for several parts in our analysis and we make use of the terminology and results of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK26].
Let be a positive integer. An -prewell consists of a society with a vortex-free rendition in a disc , a family of pairwise internally vertex-disjoint nontrivial -paths , and a family of concentric cycles such that
• for every there is such that , and
• .
We choose the traces of the paths in to meet only at their endpoints. If also satisfies the following condition, it is called an s-well:
- there does not exist any path containing a grounded -path whose trace, except for its endpoints, is contained in the interior of the -disc in .
Indeed, we are interested in a slightly stronger property as follows.
Let be a sequence of concentric cycles in a -rendition of a graph in a disc and let be the -disc in for each , with . We say that is tight (in ) if for all there does not exist a grounded -path whose trace is found in . Given a vortex with , we say that is tight around (in ) if there does not exist a grounded -path whose trace is found in . In general, we call a set of concentric cycles tight in a rendition (around a vortex) if we can find a disc such that the restriction of to allows us to call tight. A (pre)well is tight if is tight in .
The existence of tight concentric cycles is relatively easy to establish. In the literature many algorithmic proofs going from a family of concentric cycles to a tight one have been given, see for example the discussion of cosy nests in [GSW25]. Thus we state the following result without proof.
Proposition 3.4. Let be a set of concentric cycles in a -rendition of a graph in a disc with being the -disc in . Then there exists a tight concentric set of cycles such that the trace of each cycle in lies in .
It is easy to see that every tight prewell is in fact a well.
Observation 3.5. Let be a positive integer and let be an -prewell. If is tight, then is an -well.
In an -well , we may take the trace in of any path and observe that contains a unique component whose intersection with the trace of is empty. The interior of , denoted by , is the closure of this unique component of .
We say that an -well is drained if
-
for each and every , if is non-empty, then there exists whose trace is contained in and for which is non-empty;
-
for all , no -path contained in a member of that is disjoint from is contained in a cell such that contains an edge of .
In drained wells the vortex-free rendition tells us that any path that moves deeply into a drained well implies the existence of many other paths that also go deep. This is captured in the following observation which we will apply implicitly whenever we work with drained wells.
Observation 3.6. Let be a drained -well and let be a path such that is non-empty for some . Then there exist distinct paths such that is non-empty for all and we have for every .
Tightness allows us to further strengthen the properties of drained wells. We say that a well is dry if is drained and for all we have that
i) the graph is either empty or a single path,
ii) there exists a unique such that is a single path – we call this path the apex of ,
iii) for all the graph is empty, and
iv) for all the graph consists of exactly two paths.
Proposition 3.7 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). Let be a positive integer and let be a tight -well with . If the cells of represent individual edges or isolated vertices and the traces of all cycles in lie in , then there exists a tight, dry -well such that , is the rendition of induced by , , and for each there exists a with the same endpoints.
3.3 Building villages
With all the preparations in place, we may now move on to the first proper refinement step for our vital instances. In the future we will study counterexamples to Theorem 1.3. Due to Lemma 3.3 we know that such counterexamples must have large treewidth but exclude a clique minor whose size is dependent only on the bidimensionality of the instance. This means that we may always assume that there exists a large wall that allows for the application of Proposition 2.4. This gives rise to some surface where has a rendition under the removal of a small set of apices and with a small number of vortices, all of which have bounded depth and to where is confined. The goal of this subsection is to establish that we may assume some additional properties satisfied by such an instance.
Villages. Let and be integers and be a vital instance of TERMINAL CYCLABILITY with solution such that . Suppose further that there exists
i) a set with and
ii) a surface of Euler genus less than such that
iii) has a blank -rendition with
• breadth at most ,
• depth at most , and
- there exists a vortex-free, -aligned disc such that the restriction of to contains a sequence of concentric cycles where
• no vertex of is contained in the crop of by .
- Moreover, if we denote by the vortices of , then for every there exists a -aligned disc such that contains and is disjoint from and from for all .
We refer to as a -village of .
Theorem 3.8. There exists a function such that for all integers and , if is a vital instance of TERMINAL CYCLABILITY with and , then there exists a -village for . Moreover, .
Proof. Let us set up the function before we begin with the proof.
We fix S to be the unique solution of .
By Lemma 3.3 we know that cannot contain a -minor as otherwise the existence of an irrelevant vertex would contradict the vitality of .
Hence, with , , Proposition 2.3 supplies us with a mesh of order in . Notice that , . Moreover, we have that and thus the desired bound on holds.
We now apply Proposition 2.4 to . Since does not contain a -minor, the first two outcomes of the theorem are impossible and so we must be in the third outcome. Hence, we obtain a set with and a surface of Euler genus less than such that has a blank -rendition with breadth at most , depth at most , and there exists a vortex-free, -aligned disc such that the restriction of to contains a flat -mesh that is grounded and flat in .
For any vertex , we have . Hence, . We may now find submeshes of , each of order and with pairwise disjoint compasses, that is, disjoint inner graphs of their perimeter. By the pigeonhole principle this means that there is one of those -meshes, say whose compass is disjoint from . By discarding the perimeter of and then selecting to be the sequence of cycles obtained by iteratively removing the perimeter from , we have found our desired village in .
3.4 Teaching villagers how to cycle
Having built villages in the previous subsection, we next control the interaction of the solution with the concentric cycles inside their protected disc. For this purpose, it suffices to consider the restrictions of the solution then use Proposition 3.7 to obtain a dry well.
Water is getting scarce. Let be a -village, where . We say that is thirsty if the following holds. All crops in this definition are taken through the rendition of . Inside , the rendition is refined into cells representing individual edges or isolated vertices, so that the crop is explicitly embedded in . The cycles of are tight and their traces lie in . Let be the set of graph vertices represented on , and let
Let , and let be the cyclic order of inherited from . We require that is a dry -well, where is the induced rendition. We refer to as the well of and to the members of as its legs.
Theorem 3.9. There exists a function such that for all integers and , if is a vital instance of TERMINAL CYCLABILITY with and , then there exists a thirsty -village for . Moreover, .
Proof. Let . By Theorem 3.8, there exists a -village for . We first refine the ordinary cells inside without changing . Consider such a cell with an internal vertex. Every connected component of containing an internal vertex is a path whose two distinct endpoints belong to . Since , there is exactly one such component , and it contains every internal vertex of . Every remaining edge has an endpoint at the possible third boundary node outside . Consequently, can be embedded in while fixing its boundary nodes. If has no internal vertex, its graph has at most three vertices and can be embedded directly.
We refine these drawings into cells representing individual edges or isolated vertices. At most one of the pairwise disjoint grounded cycles uses edges of a given cell. We choose the drawing so that its passage through that cell is on the same side of any remaining boundary node as its original trace. The cycles therefore remain concentric. The refinement changes neither the graph nor its vortices, and the crop by remains disjoint from . We then apply Proposition 3.4 in the refined rendition to obtain tight concentric cycles inside . Let and . Note that the retained cycles lie strictly inside .
Define , and as above. Splitting at all its contacts with makes the members of pairwise internally vertex-disjoint -paths. Every vertex of a retained cycle lies on one of these paths: spans , the retained cycles are strictly inside , and no edge of leaves the crop through an apex. Following from such a vertex in either direction reaches , since contains a red vertex outside . In particular, . Thus, is a tight prewell and hence a well.
Notice that vitality implies . Furthermore, distinct members of have distinct endpoint pairs. Proposition 3.7 now provides a dry well whose paths have the same endpoint pairs as . We replace the paths of in by these paths. Their interiors avoid and are pairwise vertex-disjoint. Moreover, meets the unchanged part of only at the prescribed boundary endpoints. Hence, this replacement preserves the cyclic order of the unchanged pieces of and gives a simple -cycle, also when two selected paths share a boundary endpoint. Vitality forces this cycle to be , and therefore each selected path remains unchanged. Thus, is already dry. This concludes the proof.
3.5 The local rerouting lemma
To conclude this section, we prove our local rerouting lemma. Recall that the goal is to generalise the rerouting lemma of Gahlawat, Rathod, and Zehavi [GRZ25] to graphs that need not be planar. In particular, we show that a solution cycle whose intersection with a terminal-free -mesh consists precisely of its three vertical paths can be rerouted inside the mesh. This local rerouting will later allow us to reduce the number of times a solution crosses a railed annulus.
Lemma 3.10. Let be an annotated graph and let be a -cycle in . Moreover, let be a -mesh with paths , and such that and . Then, there exists a -cycle such that and .
Proof. We start with some notation. We consider the paths directed in such a way that the vertices of are first on and the vertices of are last, which is possible by definition of meshes. Consider Figure 9 for an example. Therein, we consider the paths to be

Figure 9: An example of a -mesh. The paths are coloured blue, the paths are coloured red, and edges that belong to both a path and a path are coloured purple. The three paths , and that are part of the solution are highlighted.

Figure 10: The three solution candidates (left side), (middle) and (right side). The vertices of are coloured black and are not part of any solution candidate.
directed from top to bottom. For each and , let be the first vertex of in and let be the last vertex of in . In the nontrivial intersections shown in Figure 9, the -vertices are the top-left endpoints of purple edges, and the -vertices are the corresponding bottom-right endpoints.
We construct the -cycle in two steps. First, we remove the subpath of between and and the subpath of between and . Note that since is a simple cycle and these two paths are vertex disjoint, removing them from (but retaining their endpoints) yields two vertex-disjoint paths. We now consider two cases for the second step. First, we try to add the subpath of between and and the subpath of between and . Let be the resulting graph. See Figure 10 (left side) for an illustration. Note that each vertex has degree 2 in and no vertex in belongs to . Hence, if is connected, then we can return . So assume that is not connected. As shown above, before adding the two subpaths of and , we had two connected components and since we assume to not be connected, it must still consist of two connected components. Let be the connected component of that contains the added subpath of and let be the connected component of that contains the added subpath of .
We now make a final case distinction whether belongs to or and in both cases create the -cycle .
If belongs to , then we remove the subpath of between and and the subpath of between and and replace them by the subpath of between and , the subpath of between and , and the subpath of between and . We call the resulting graph and return . See Figure 10 (middle) for an illustration. Note that since is the disjoint union of two cycles, it holds that the part of that is not contained in is a set of disjoint paths, one of which has endpoints and . Moreover, by construction the paths of outside of are not modified and therefore . Since does not contain any vertices of , it also holds that contains all vertices of . It remains to show that is connected and that it does not contain any vertices of . Note that the latter holds trivially by construction. To show the former, let be the -path remaining in after removing the specified subpath of , and let be the -path remaining in after removing the specified subpath of . Starting at , we can traverse to , then follow to , then traverse to , before following to , and finally following back to . Since the prescribed walk (which is also a simple cycle) only uses edges of and contains all vertices of , it holds that is connected.
It remains to consider the case where belongs to . This case is almost completely symmetric, the only difference being that a symmetric replacement would use vertex . However, this can easily be circumvented. Instead, we remove the subpath of between and and the subpath of between and . We replace them by the subpath of between and , the subpath of between and , and the subpath of between and . Let be the resulting graph; see Figure 10 (right side) for an illustration. Note that no vertex of is contained in . The proof for connectivity and that it contains all vertices of is analogous to the previous case and hence omitted. This concludes the proof.
4 Branching inside a well
In this section, we prove that the well of a thirsty village in a vital instance has logarithmic depth. Our local rerouting lemma forces branching among nested legs, and every seven additional layers give three independent branches. Afterwards, we show that this bounds the treewidth of vital instances.
Let be a thirsty -village, where , and let be its well.
We first perform a simple preprocessing step. Let be obtained from by contracting every nontrivial component of for each , while retaining parallel edges. Denote the images of and by and , respectively, and let be the family of images of the paths in . Moreover, let be the disc obtained from by the same contractions. All contracted paths are blank and lie strictly inside . Hence, the vertices of and the endpoints of the paths in remain unchanged. Each has at least two edges outside , since a unique such edge would shortcut a blank subpath of and therefore contradict vitality. Thus, the remain pairwise disjoint embedded circles and remains a spanning cycle. Note that for all .
In the following, we call the members of legs. For , let be the index of its apex cycle, and let denote its ordinary interior, that is, the closure of the component of minus the trace of that does not meet the trace of . The contractions preserve the nesting of the ordinary interiors and the successor property supplied by drainedness. Each leg now meets its apex cycle in one vertex and every later cycle in exactly two vertices. We next show a laminar structure of the interiors of the legs in and that each leg whose apex is not on has a nested leg with apex on the next cycle.
Lemma 4.1. For any two distinct legs , their ordinary interiors have disjoint open interiors, or one is properly contained in the other. Moreover, implies . If , then there exists a leg with and .
Proof. The legs are internally disjoint proper arcs in and all ordinary interiors are chosen on the side not meeting . Hence they are laminar.
Now, let be the index such that . The cycles preceding are disjoint from and lie on its -side. The cycle meets in one vertex, and the remainder of is connected and lies on the same side. Thus meets none of .
If , the leg cannot meet these cycles in , nor can it meet them on , because the retained cycles lie strictly inside and different legs are internally vertex-disjoint. Thus, we have that . Finally, the inherited successor property supplies a different leg inside meeting . Its ordinary interior is properly contained in , so its apex index is larger than and at most .
The next goal is to formalise the branching step.
Lemma 4.2. Let be a leg with apex on , where . Then, there exist three legs in with apex on whose ordinary interiors are contained in and have pairwise disjoint open interiors.
Proof. Let be legs such that , , and . Note that such legs exist by Lemma 4.1. Consider the cycles . Each such cycle meets each of in exactly two vertices. On the part of any one of these cycles inside , their contacts occur in the nested order , where and are its contacts with . Choose the -side consistently along the three legs. For each , let be the corresponding subpath of from to , passing through . For each , let be the subpath of this arm of between and .
The paths form a -mesh . If , then Lemma 3.10 gives an -cycle omitting a vertex, contradicting the vitality of . Hence, some vertex of a horizontal path outside the three vertical paths belongs to another leg . Here, we use the fact that spans and that every vertex on a retained cycle belongs to a leg. The other arms of do not meet the selected horizontal paths, so is different from these legs.
This contact lies in and outside . The interior of cannot cross or touch , so . Due to the laminar structure, either and have disjoint open interiors or . In the latter case, Lemma 4.1 implies and therefore .
However, and both contain and are therefore comparable, contradicting . Thus, and have disjoint open interiors.
Since meets one of , we have . By a symmetric argument, there is also a leg that has disjoint open interiors with on the -side. Note that we have , , and for each .
Let and let and be the subpaths of from to and from to , respectively, using the contact vertices on . For each , it holds that meets . Now assume towards a contradiction that and are equal or one contains the other, and let be the larger one. By the one or two contacts of its defining leg with , the intersection of with the trace of is a connected arc or a single vertex. It contains a point of each of and . Since , it therefore contains the intervening subpath of inside . An interior point of an edge of this subpath belongs to : the retained cycles lie strictly inside and their edges do not belong to , a contradiction. Thus and are distinct and their ordinary interiors have disjoint open interiors.
Repeatedly applying Lemma 4.1 inside each of and gives legs and with apices on . Together with , these legs have the required properties, concluding the proof.
We next bound the size of thirsty villages.
Theorem 4.3. Let be a thirsty -village for a vital instance . Then, .
Proof. First, we construct for each , and as in the beginning of the section. Since spans and every vertex of belongs to a leg, some leg has its apex on . Repeatedly applying Lemma 4.2 shows that whenever , there are legs with apex on whose ordinary interiors have pairwise disjoint open interiors. These legs have distinct apex vertices, since the retained cycles lie strictly inside and the legs are internally vertex-disjoint. Thus, . If , then consider . It holds that and , a contradiction. This concludes the proof.
To conclude this section, we now combine the preparation of a thirsty village with the logarithmic bound on the depth of its well in order to finalise the proof of Theorem 1.3.
Theorem 1.3. There exists a function such that for every vital instance of TERMINAL CYCLABILITY, it holds that .
Proof. We assume to be nondecreasing in both arguments. This can be achieved by replacing any entry which is smaller than or by . For , let and . For , this gives .
Let be vital and let be its unique solution. Then . If , any edge outside would be a chord and yield another cycle. Hence and . We may therefore assume that .
Suppose towards a contradiction that . By Theorem 3.9, there exists a thirsty -village for . However, Theorem 4.3 gives , a contradiction. This concludes the proof.
5 Combing a spanning cycle
All of the previous sections have been dedicated to proving Theorem 1.3 which provides a bound on the treewidth of vital instances of TERMINAL CYCLABILITY. However, in order to establish an irrelevant vertex rule we need to lift this statement to non-vital instances and make it algorithmic in the sense that we need a way to efficiently detect an irrelevant vertex in case the treewidth exceeds a certain bound. To do this we employ a strategy pioneered by Golovach, Stamoulis, and Thilikos [GST23] known as “annulus combing”. The core idea is that whenever a graph contains a large collection of “concentric” cycles which are almost embedded in a sphere rendition, with one vortex on either side of the “annulus” created by these cycles, then for any solution only a bounded number of subpaths are able to pass from one side of the annulus to the other. The original annulus combing lemma was formulated for the DISJOINT PATHS problem and it was later improved by Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK+26]. While this improvement already assumes bounded bidimensionality for the terminals, it is not able to handle the spanning requirement we impose. Recently, Thilikos and Wiederrecht introduced a first variant of the lemma for a version of DISJOINT PATHS where the paths are required to contain a specified set of red vertices [TW26b]. However, this variant still does not fit our needs because it only works for annotated graphs where a parameter strictly larger than bidimensionality is bounded. For this reason, we have to open the black box of this proof once again in order to establish the necessary properties for our case.
We start by introducing the necessary terminology.
Cylindrical meshes. To formalise fully what a “concentric family of cycles” is meant to be in the context of annulus combing, we make use of so-called cylindrical meshes.
Let be positive integers, let be a graph, and let be cycles and be paths in such that the following holds for all and :
are pairwise vertex-disjoint, are pairwise vertex-disjoint, and .
• is a path, and if or , then has exactly one vertex,
- when traversing starting from an endpoint of , then either the paths are encountered in the order listed or the next one encounters is and from here the paths are encountered in the order , and
• has one end in and the other in , and when traversing starting from its endpoint on , the cycles are encountered in the order listed.
If the above conditions hold for , we call an -cylindrical mesh. The cycles are called the concentric cycles, or cycles, of and the paths are called the radial paths, or rails, of . We also call -cylindrical meshes -cylindrical meshes.
The compass of a (cylindrical) mesh. Let be a flat mesh in a graph where is a sphere rendition of witnessing the flatness of . The compass of is the inner graph of its perimeter. Let now be a graph and be a -rendition of for some surface . Let be a cylindrical mesh grounded in whose outermost and innermost cycle traces bound a specified annulus . The compass of , with respect to this annulus, is the union of all graphs over the cells contained in .
A partially embedded railed annulus. Let be two integers. A -railed annulus is a graph such that there exist pairwise vertex-disjoint cycles , called the circles, and pairwise vertex-disjoint paths , called the rails, such that
i) is a planar graph,
ii) has one endpoint on , the other on for all , and is otherwise disjoint from ,
iii) for all is a path, and
iv) for each visits the cycles in the order listed when traversing along starting from its endpoint on .
We call and the boundary circles of . We say that a graph is a railed annulus if there exist and such that is a -railed annulus.
Now let be a surface and be a graph, some set of vertices and be a -rendition of . We say that a railed annulus is separating in if
i) is grounded in ,
ii) if has at least two circles and at least two rails, then there exists an annulus such that the traces of the boundary circles of coincide with the two boundary components of , and the trace of every grounded subpath of a rail of is contained in ,
iii) is disjoint from the closures of the vortices of , and
iv) for every circle of , the trace of is a separating curve in .
We call the annulus above the domain of in . The crop of by is the union of all graphs whose cell of is contained in . Finally, if is an annotated graph, , is a -rendition of , and is a separating railed annulus with domain , we say that is blank if the crop of by does not contain any vertices from . Moreover, if is an -cycle in , we say that is -calm if it is blank and the crop of by is disjoint from .
Let and be integers. Let be a railed annulus. The -trimming of is the railed annulus obtained from by removing the first and last circles and restricting the rails to their minimal -subpaths.
Combed -cycles. Let be an instance of TERMINAL CYCLABILITY, let be some set, be a surface and be a -rendition of . Moreover, let be a separating railed annulus with domain in . Let be the crop of by . An -cycle is combed in if, within the crop of by after deleting the vertices of the two boundary circles, it coincides with a union of rails of . We say that uses at most rails if at most rails suffice.
We will also need the following tool from the work of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK ].
Let be a surface. A topological linkage in with pattern is a set of pairwise disjoint simple curves such that contains for each pair a curve with endpoints and . We denote the pattern of by .
A pattern is realisable (in ) if there is a linkage in with and it is topologically feasible (in ) if there is a topological linkage in with .
Proposition 5.1 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). Let be a graph with a vortex-free rendition into a disc and let with a sequence of disjoint grounded cycles in such that the intersection of and is the set of nodes of and for all , the trace of separates the trace of from the trace of . Let be a -linkage of order in such that is a path for all and all . Finally, let be a pattern of order on .
If is topologically feasible in the closed annulus between and , then it is realisable in .
We are now ready to state our annulus combing lemma for -cycles.
Theorem 5.2. There exist functions such that for every instance of TERMINAL CYCLABILITY with , every set , every surface , and every -rendition of , the following holds:
If is an -cycle in and is an -calm railed annulus with and in and , then there exists an -cycle in such that
i) is combed in the -trimming of , and
ii) uses at most 2 rails of .
Moreover, .
A striking feature of Theorem 5.2 is that the number of rails our solution gets combed onto is bounded by a constant that is independent of . As we will find out in the proof, this is due to Lemma 3.10. Indeed, the usual way to prove the various annulus combing lemmas is to create a vital instance consisting only of the solution and the circles of the annulus. This allows us to apply the treewidth bound for vital instances in order to control the way the solution interacts with the circles. Then the actual combing happens and the paths of the solution – of which there now can only be few – are routed onto the rails of a central annulus. Once this is done, we implement a second refinement step. By repeatedly applying Lemma 3.10 to those paths crossing through the central annulus and, in each step moving slightly more inwards, we reduce the number of crossing paths more and more. Since the initial number of crossing paths was already bounded by the preceding arguments, if we reserve enough space inside the combed annulus, this procedure will finally come to a halt and produce the desired outcome.
Let us proceed with the proof of Theorem 5.2.
Proof of Theorem 5.2. We begin by defining our functions by setting
where denotes the function from Theorem 1.3. Notice that we may assume as otherwise there is nothing to prove.
Let be the circles of . For the following preparation, let be the 1-trimming of and let . We choose an -cycle among all -cycles of for which is calm such that minimises . Let and . Note that is the connected component containing in . If , then already avoids the required central annulus. We therefore assume that . Every -cycle in is still calm for , since all edges of incident with belong to . Thus, the minimality of applies to every such cycle.
We first refine the relevant part of the rendition into an actual embedding. The support cells of the circles in lie inside the original domain of and are therefore blank and disjoint from . Consider such a cell . The nontrivial part of , if present, is one path between two boundary nodes. Any further vertex of in this cell is its possible third boundary node . Moreover, at most one circle of uses edges of , and its nontrivial intersection with this cell is a path . Every subpath of with distinct endpoints on and interior disjoint from must contain . Otherwise, replacing the corresponding blank subpath of would decrease the number of edges outside . There is at most one such excursion through . Hence, the union in the cell is a subdivision of a path with possible additional edges to the third boundary node and can be embedded while fixing the boundary nodes. If is absent, the required embedding is immediate. We choose these embeddings consistently with the circle traces, preserving their nesting.
In this drawing, we split at every contact with . Let consist of the nontrivial resulting paths whose interiors lie in the open annulus between these two circles. We call a member of a mountain, a valley, or a river according as its endpoints lie on , on , or on different boundary circles. These paths are internally vertex-disjoint.
Generating a vital instance. We now go through two phases of reductions for , finally ending with an annotated graph for which we then show that it constitutes a vital instance of TERMINAL CYCLABILITY with some additional properties.
Step 1: Remove non-red vertices of degree 2. We iteratively pick some vertex of degree exactly 2, then we pick one of its incident edges and contract that edge – from here on we allow the formation of loops and the occurrence of parallel edges in the following situations. It is possible that the intersection of some circle with is a single path . If has length at least one, this operation leaves with two edges, one representing and the other . If is only a singleton, shrinks into a loop at this singleton. In order to maintain the correct degree counts in this setting of multi graphs, we define the degree of a vertex to be the number of incidences. This means, we count each parallel edge separately and each loop adds two to the degree of its vertex as it adds two distinct incidences.
In case the other endpoint of belonged to , we replace that vertex with the contraction vertex, thereby maintaining the total number of vertices in . Let be the resulting annotated graph. For every , let be the image of in . Each of these circles survives. No vertex of belongs to these circles or to the working annulus. Moreover, every vertex of is either red or has degree at least three and at most four. Let denote the image of .
Step 2: Remove vertices of degree 3. Next, for all and any edge we now contract . As before, we allow for the formation of loops in this step.
As a result, we obtain a new annotated graph and the image of . For every , let be the image of . These circles are pairwise vertex-disjoint and satisfy . Every vertex of is either red and has degree two, or belongs to some and has degree four.
We perform these operations in the drawing described above, retaining loops and parallel edges as distinct drawn edges. For each , we denote by its image in . These images remain proper arcs in the working annulus. Indeed, identifying the endpoints of a mountain or valley would require a contracted common solution-boundary-circle path joining them. Together with the original piece, this would be the whole cycle , contained in the blank working annulus, contradicting .
Claim 5.2.1. The new instance satisfies .
Proof of claim. The claim is easy to see since is indeed a red-minor of and thus . This fact is not changed by allowing for parallel edges or loops since these cannot contribute to the existence of minor models of simple graphs.
Claim 5.2.2. The new instance is vital with solution . Moreover, .
Proof of claim. Suppose that some vertex of does not belong to . Then , and hence belongs to some and has degree four. Its two incidences outside belong to , a contradiction. Thus spans .
For every edge of , let the cost of be the number of original edges outside represented by . The cost of every circle edge is zero. Every edge of has positive cost, since all common solution-circle paths were contracted in Step 2. Reversing the reductions lifts any -cycle of to an -cycle of whose number of edges outside equals its cost. For a contracted common path, we join the two selected attachments along that path, or use only their common endpoint if both attachments occur there. Note that all contracted common paths are blank.
Now suppose that is another -cycle in . It omits an edge of , and its positive-cost edges form a proper subset of those of . Its lift therefore contradicts the minimality of . This proves uniqueness.
If , then . Otherwise, the spanning cycle has at least three vertices. It cannot use an edge with a parallel twin, since exchanging that edge for its twin would give another -cycle. Let be obtained from by deleting all loops and retaining one representative of each class of parallel edges. Then is a simple vital instance with the same treewidth as . By Theorem 1.3 and , we have .
Our next goal is to show that mountains and valleys do not enter deeply into the working annulus. We use the images for all in for the following bramble arguments. For a mountain in this drawing, let be the closed disc bounded by and the corresponding outer boundary arc on the side not containing the inner boundary.
The area is nice for cycling: No deep valleys or high mountains
Claim 5.2.3. No mountain of meets , and no valley of meets .
Proof of claim. As the arguments for valleys are symmetric, we only consider mountains. To this end, let and assume towards a contradiction that a mountain meets . Then all meet and therefore survive in . Let be the image of this mountain. We construct distinct mountains such that meets and
Suppose that has already been chosen. Since it reaches and has both endpoints on , there is a subpath of with distinct endpoints on and interior contained in and disjoint from .
If were a single edge, it would shortcut the blank subpath of between its endpoints and give another -cycle, contradicting Claim 5.2.2. Hence, has an internal vertex . Since spans , the vertex belongs to another solution piece. This piece cannot cross and cannot reach the inner boundary, which is outside . It is therefore a mountain whose disc is properly contained in . This completes the construction.
For each , let and let . Each of these graphs is connected, and any two intersect, since a mountain reaching meets every preceding circle. Moreover, each interior vertex belongs to at most one selected mountain and one selected circle. A boundary vertex belongs to at most two selected mountains and none of the selected circles. Thus, is a bramble with members, each vertex belonging to at most two members. Its order is therefore at least . By Proposition 2.2, this implies , contradicting Claim 5.2.2.
Even the rivers are few. The only remaining members of we have not yet taken care of are the rivers. These must necessarily intersect all circles of . However, similar to before, there is a bramble hiding among the rivers and this time, if there are too many, the order of this bramble exceeds the bound imposed by Theorem 1.3.
Claim 5.2.4. The number r of rivers of is at most .
Proof of claim. Suppose that there are distinct rivers, and let be their images in . Every working circle meets every river and therefore survives. For each , let . These graphs are connected and pairwise intersecting. The selected circles lie strictly between the two working boundary circles. Hence, each interior vertex belongs to at most one selected river and one selected circle, while a boundary vertex belongs to at most two selected rivers and none of the selected circles. Thus the graphs form a bramble of order at least , contradicting Claim 5.2.2.
We have now established the required properties of in the working annulus . Let be the -trimming of the original annulus . Enumerate its circles as , where . By Claim 5.2.3, is disjoint from all mountains and valleys. We continue to consider the rivers of with respect to , since restricting them to might create additional local mountains and valleys.
If there are no rivers, then already satisfies the desired conclusion. Otherwise, enumerate the rivers as in their cyclic order, where by Claim 5.2.4. At a shared endpoint, use the order of the river incidences. Similarly, enumerate the full rails of the original annulus as in cyclic order and orient them from towards .
Next, we set up a collection of 5 vertex-disjoint railed annuli obtained from as follows:
-
is the railed annulus with circles and rails obtained by taking the cycles and restricting the rails of to their -subpaths.
-
is the railed annulus with circles and rails obtained by taking the cycles and restricting the rails of to their -subpaths.
• is the -trimming of .
-
is the railed annulus with circles and rails obtained by taking the cycles and restricting the rails of to their -subpaths.
-
is the railed annulus with circles and rails obtained by taking the cycles and restricting the rails of to their -subpaths.
For a circle and a full rail , let and be the first and last vertices of , respectively, when traversing towards . Let
Channelling rivers. For each , let be the initial subpath of from its endpoint on to its first contact with . Similarly, let be the subpath obtained by following from its endpoint on to its first contact with .
We next construct auxiliary linkages connecting the river endpoints on the two working boundaries to distinct rails through and , respectively. To this end, we start with the graphs and . In each graph, we split every shared working-boundary endpoint into one degree-one copy for each incident river prefix. Let be the resulting auxiliary graphs, and let be the respective roots belonging to . Let and let . The prefixes and in each auxiliary graph are now pairwise vertex-disjoint.
Note that stays on the outer side of the inner circle of , and stays on the inner side of the outer circle of . This allows us to prove the following.
Claim 5.2.5. There exists an --linkage in and an --linkage in , each of size precisely .
Proof of claim. We only prove the assertion for , as the other case is symmetric. Assume towards a contradiction that no --linkage of order exists. By Menger's theorem, there is a set of size at most separating from .
The prefixes are pairwise vertex-disjoint, so one of them avoids . Similarly, one of the circles of avoids . Let this circle be . For each full rail, consider its subpath from its first contact with the outer circle of to its last contact with the inner circle of . These paths are pairwise vertex-disjoint and contained in , so one of them avoids . Let be this path. The graph is connected, avoids , and contains a vertex of and a vertex of . This contradicts the choice of .
For each , let be the index of the rail containing the -endpoint of the member of starting at . Similarly, let be the index of the rail containing the -endpoint of the member of ending at . Note that both maps are injective and preserve cyclic order. Let and .
Claim 5.2.6. There exists an --linkage in and an --linkage in , each of size precisely .
Moreover, for every , the endpoint in of the path whose endpoint in lies on belongs to , and the endpoint in of the path whose endpoint in lies on belongs to .
Proof of claim. We prove the claim only for as the case for is completely symmetric. We first select rails whose indices include . If this set does not yet contain rails, then we add arbitrary rails until we have selected exactly rails. Note that this is possible as .
We then contract the contact path of every selected rail with each boundary circle of . The selected rails now form a boundary-to-boundary linkage of order , and each circle meets each of them in a path. The boundary circles remain cycles, since each retains at least one distinct vertex from each of the original rails.
The required pattern is topologically feasible because preserves cyclic order. Since has circles, Proposition 5.1 provides us with the required linkage in the contracted graph.
Finally, we lift the linkage through the contracted contact paths, joining the selected attachments along each such path. At a terminal, we join the selected attachment to the prescribed original entry or exit vertex. At most one linkage member uses each contracted vertex, so lifting preserves vertex-disjointness and gives the required linkage in . This concludes the proof of the claim.
We can now combine these linkages to force the rivers onto the rails in . To this end, fix any and start at . We follow its path in to . Afterwards, we follow to . The corresponding path in brings us to the vertex of on . We next follow to , and then follow the corresponding path in to . From there, we follow to and its path in to .
Note that the interiors of the connecting rail segments avoid their endpoint routing annuli. Together with the confinement of , the disjointness of the linkages, and the injectivity of and , this shows that the concatenated paths are pairwise vertex-disjoint in the auxiliary graphs.
This allows us to identify the root copies with their original vertices and replace each river by its corresponding new path. At a shared root, this restores exactly the two original solution incidences. All other intersections with the unchanged part of are the prescribed river endpoints. Thus, the replacements preserve the original cyclic connection pattern and give an -cycle . Within , away from its boundary-circle vertices, this cycle follows precisely the rails . Hence is combed in using rails.
Dropping the number of rivers to 2. In the last step we have to reduce the number of rivers from at most to 2. We do this as follows. First, has at least circles and is combed in using rails. If , then remains combed using at most two rails in the -trimming of , and we are done. Hence, we may assume that . Let us denote the circles of as . Let . These four circles lie strictly inside .
We then choose any three consecutive used rails and, in the union of and the circles of , contract their twelve contact paths with these circles. In the resulting graph, their images and the corresponding circle subpaths form a -mesh whose intersection with the image of consists precisely of its three vertical paths. Applying the construction in the proof of Lemma 3.10 to the image of and then lifting the resulting cycle by reversing the contact-path contractions yields the lifted cycle . Each contracted path is blank, and its selected attachments can be joined along that path. Recall the proof of Lemma 3.10 – and consider Figure 10. It becomes apparent that this rerouting results, in particular, in a solution which has two fewer rivers than but introduces one additional valley and one additional mountain . In each of the three constructions, the new cycle uses exactly one of the selected rails strictly between the second and third selected circles, and all changes between rails occur on the four selected circles. Thus, the new mountain and valley and all changes between rails avoid the 3-trimming of . Moreover, the new solution is combed for the 3-trimming of .
For , let and . Moreover, let denote the 3i-trimming of . Then is precisely the set of circles of . Let be the selected family of rails whose union agrees with in the crop after deleting the vertices of the two boundary circles of . We then iteratively reduce the number of rivers that intersect by two until at most two rivers are remaining.
Above we have described the start of the process where . Now suppose we have already completed steps for , yielding an -cycle that is combed in . If , then let and stop the iteration. Since , we may repeat the construction above again using three consecutive rails from and the circles from . Another application of Lemma 3.10, followed by the lifting, then yields a new -cycle which is still combed in and .
Since the number of rails of used by is reduced by 2 in every iteration and we have at most such rails in , after at most iterations the process must come to a halt for some . At this point, is combed in using at most two rails. Indeed, since we know that has circles. Moreover, is the -trimming of , and . In particular, is combed in any trimming of including the -trimming of . At this point we may return as our desired -cycle.
6 Detecting an irrelevant vertex
The first major subroutine we need to establish is an algorithm that finds an irrelevant vertex in whenever the treewidth exceeds the required bound. So far, we have shown that a solution can be combed through a sufficiently insulated annulus using at most two rails. However, so far Theorem 5.2 requires knowledge about the way the apices are used. Moreover, we have not talked about how to integrate Lemma 3.3, how to find a partially embedded annulus in the first place and even how to safely ensure that a large enough wall survives for us to apply the irrelevant vertex argument. The latter is particularly important because the required treewidth threshold must remain linear in .
The goal of this section is to eventually derive Theorem 1.2.
6.1 Getting rid of clique minors
Let us first establish that we may always assume to be in the regime of -minor-free graphs. For this we simply implement a preprocessing algorithm that either correctly determines that the input instance has bidimensionality larger than or returns an equivalent instance excluding as a minor.
Lemma 6.1. There exists an algorithm that takes as input an instance of TERMINAL CYCLABILITY together with an integer and either correctly determines that or returns an equivalent instance such that is an induced subgraph of and does not contain a -minor in time .
Proof. The algorithm is relatively simple. We first run the algorithm from Proposition 2.1 for and either correctly determine that does not contain it as a minor or we find a minor model in in time . We then hand over to Lemma 3.3. With , we know that this will either correctly deduce that , in which case we may stop, or it will find an irrelevant vertex in time .
From here on we simply feed back into the same algorithm until after at most repetitions, we either stop because or we have exhausted all -minors in and may return the remaining annotated graph.
6.2 Finding and preparing a flat mesh
From now on we may assume that does not contain any large clique minors. This is already great for us because now we have access to a linear grid theorem in the form of Proposition 2.3. However, we need to make several additional preparatory steps. We require a series of technical definitions and auxiliary results before we can state the core lemma of this subsection. In broad terms, however, we need to overcome the following difficulty: In order to apply Theorem 5.2 we need to know that we can be sure the large separating annulus is not being used by the apices for at least some solution. Since we do not know the solution beforehand it is hard to choose such an annulus. However, if we choose our initial flat mesh to be large enough, we can actually generate nested candidate annuli where is the number of apices. Then, for any solution one of those annuli must be a valid choice for the application of Theorem 5.2 and thus we know that the central part of is always insulated by some valid choice of a separating annulus where combing can be applied. However, we do not have an algorithmic way to determine which of these annuli is the correct choice, so we need to prove that some fixed vertex in the compass of the central part of is irrelevant no matter which of the annuli ends up being the correct choice. This is typically done by ensuring that satisfies a number of additional properties known as “homogeneity” and “being suspended” – both terms are defined below. We first obtain a flat and suspended mesh using a version of the Flat Wall Theorem whose required input order is linear in the requested order. Homogenisation, however, requires a mesh whose order is polynomial in the desired output order. Applying it to the entire logarithmic-sized mesh would therefore lose the required linear dependence on . Instead, within the compass of the central submesh we find another flat wall satisfying additional connectivity assumptions as well as a robust homogeneity property that will allow us to identify an irrelevant vertex in the centre of .
The goal of this subsection is to establish an intermediate theorem. We prove that for any -minor-free instance of TERMINAL CYCLABILITY we can either find that , that the treewidth of is at most , or find a flat mesh of order such that there exists a “suspended” and homogeneous flat mesh of order in the compass of the centre of . This lemma will be the backbone of our proof of Theorem 1.2 in Section 6.3.
Flattening meshes and finding suspended ones
Flat meshes play a key role in the algorithmic theory of graph minors. However, certain applications require additional conditions on the sphere-renditions witnessing this flatness. In this subsection we introduce the necessary terminology and import the theorems required to flatten meshes and to realise the required properties.
We actually need two different types of statements, because we require a way to turn any mesh of logarithmic size into a flat one without polynomial overheads and, at the same time, we also need a theorem that produces a flat and suspended mesh. Below we state the variant of the Flat Mesh Theorem due to Gorsky, Seweryn, and Wiederrecht [GSW25] as our go-to flat mesh option. The algorithm to find a suspended flat mesh is due to Sau, Stamoulis, and Thilikos [SST24].
Proposition 6.2 (Robertson and Seymour [RS95, GSW25]). There exist functions and such that for all integers such that the following holds for every integer .
For every graph containing a -mesh either
• contains a -minor, or
• there exists an -submesh , and a set with such that is a flat mesh in .
Furthermore, there exists an -time algorithm that takes as input and and finds either a minor model of or and as above together with a rendition of witnessing the flatness of .
Moreover, it holds that and
With Proposition 6.2 we have a quick way to obtain a flat mesh by losing only a polynomial factor depending only on the size of the excluded minor in the size of the input mesh. This is great because together with Proposition 2.3 this means that in -minor-free graphs it is easy to preserve the logarithmic factor. Moreover, the algorithm above is entirely polynomial in .
The downside is, the flat mesh that is returned by Proposition 6.2 is not necessarily “suspended”. This may as well be a technical issue that can be overcome by a more careful analysis of the proof of Proposition 6.2, but we believe this is beyond the scope of this paper and leave this question for another time.
Suspended meshes. Let be an integer. Let be a graph and be an -mesh in . We say that is a suspended -mesh – or simply a suspended mesh – in if there exists a sphere-rendition of such that is flat in and for every cell the following two properties hold:
i) for every non-empty set there exists a connected subgraph of containing all vertices from and avoiding all vertices from and
ii) there exist vertex-disjoint paths from to the perimeter of .
We say that witnesses that is suspended in .
Let be a graph and be a flat wall in witnessed by the sphere rendition . The treewidth of in is the smallest integer such that the treewidth of the compass of in is at most .
Proposition 6.3 (Sau, Stamoulis, and Thilikos [SST24]). There exist functions such that for every integer , all odd integers , and every graph one of the following holds:
i) contains a minor,
ii) has a tree-decomposition of width at most , or
iii) there is a set , where together with an -wall that is flat and suspended in as witnessed by the sphere-rendition and the treewidth of in is at most .
Moreover, , , and there exists an algorithm that finds one of the three outcomes above in time .
To obtain suspension, we apply Theorem 8 of Sau, Stamoulis, and Thilikos [SST24] with order and take the central r-subwall, using Proposition 11.9 of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]. Enlarging by a constant factor absorbs this increase in the requested order and preserves all stated bounds.
Notice that the running time of Proposition 6.3 depends exponentially, in fact the dependency is in , on the size of the requested flat wall. This means that we cannot hope to use Proposition 6.3 in order to find a suspended flat wall of size efficiently.
Cleaning a flat mesh. Our goal is to make use of large flat meshes in order to insulate a small central region of such a mesh using Theorem 5.2. A core property for the entire flat mesh is that its compass must be void of red vertices. For graphs of bounded bidimensionality, this is handled by the lemma below.
Proposition 6.4 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). For all integers and and every annotated graph , if is a flat -mesh with in as witnessed by the sphere-rendition , then one of the following holds:
i) , or
ii) there exists an -submesh of M such that the compass of does not contain a vertex from R.
Moreover, if and witnesses that is suspended in , then also witnesses that is suspended in . There also exists an algorithm that, given , , and as input finds either a red -grid as a red-minor in or the mesh as above in time .
Next, we require some additional terminology. This is because our goal is to insulate the “centre” of some large flat mesh, then find a large but bounded in a function depending only on in size suspended flat mesh , and then prepare to yield the desired irrelevant vertex. To make this happen, we require further definitions and some more involved machinery to be able to state the result that declares the centre of a “homogeneous” suspended flat mesh irrelevant for the DISJOINT PATHS problem.
Layers and central submeshes. Let be an integer and be an -mesh. We define the layers of recursively as follows: The first layer of is its perimeter. For , the th layer of is the th layer of the -mesh obtained from by removing its perimeter and iteratively removing vertices of degree 1.
Given an integer such that is even, the q-central submesh of is the -mesh obtained from by removing the first layers of and then iteratively deleting vertices of degree at most 1.
Homogeneous meshes. We adapt our definition of “homogeneity” from the work of Gorsky, Seweryn, and Wiederrecht [GSW26] in order to preserve minimal parametric dependencies and to avoid another exponential blow-up in our dependency on . The result is stated in the language of “colourful graphs” which are a generalisation of annotated graphs. Here each vertex can carry up to q distinct annotations instead of just being red.
Let be a subgraph of a graph . An -bridge in is either an edge of with both endpoints in , together with its endpoints, or the graph consisting of a component of , all edges joining to , and their endpoints, provided that at least one such edge exists.
Let be a grounded flat mesh in witnessed by . Let be the vortex-free disc bounded by the trace of the perimeter of . For every cycle , let be the disc bounded by the trace of . Let be the inner graph of in with respect to , and let . We omit the subscript when it is clear from the context.
A -colourful graph is a pair where is a graph and assigns to each vertex a, possibly empty, set of at most colours. Notice that the case is precisely the case of annotated graphs. We explicitly allow for to be 0.
Given an arbitrary -colourful graph , a set and a subgraph , we define
as well as . Note that this should not be confused with the chromatic number of , which is of no concern to us. Finally, we write for the -colourful subgraph of , where we implicitly restrict to the vertex set of .
Let be a non-negative integer and be a -colourful graph. Let be an integer and be an -mesh in such that is flat in witnessed by a sphere-rendition . We say that is homogeneous in if for every cycle it holds that
The core reason why we need to allow for more than one annotation for our homogenisation is the presence of apex vertices. In order to be able to properly certify redundancy for some vertex in the centre of a flat mesh one needs to ensure that all possible ways to extend an instance of DISJOINT PATHS into the cells of the flatness-witnessing rendition of a flat mesh are redundant as well. This includes the ways the apex vertices may be connected via disjoint paths deep inside those cells. Below we introduce the technical definitions to make this intuition exact.
Rooted graphs. Let be an integer. A -rooted graph is a pair where . We sometimes write instead of . The are called the roots of . A pair is a rooted graph if it is a -rooted graph for some . Rooted graphs are considered up to isomorphisms preserving every root label. The detail of is . It is important to note that annotated graphs fundamentally differ from rooted graphs. Indeed, one may understand a rooted graph with roots as a special case of a -colourful graph where each colour is carried by a single vertex.
The -folio of a rooted graph. A rooted graph is a rooted minor of another rooted graph if there exists a minor model of in such that for every it holds that .
Given an integer and a rooted graph , the -folio of , denoted as , is the set of all rooted graphs of detail at most that are rooted minors of .
Next, we provide the definitions making exact our initial intuition. Each cell of a flatness-witnessing rendition for some flat mesh has first of all its own boundary to take into account as roots, but it must also respect all apex vertices present “above” the flat mesh.
Augmenting cells. Let with . Let be a graph, be a set of vertices, and let be an -mesh in that is flat in witnessed by the sphere rendition . We denote by the collection of cells contained in the disc bounded by the trace of the perimeter of that avoids the unique vortex of .
Fix an orientation of the sphere. For each , let and choose an anticlockwise ordering of . Let for each . For , we use the empty ordering and labelling. Finally, let be a bijection.
For each cell we fix such that for all and for all . Finally, the augmented cell is defined as the rooted graph
where for all . We denote the graph by .
Palettes of augmented cells. With each we associate a set of graphs as follows.
Let be an integer. We denote by -palette( ) the set -folio( ) which is referred to as the -palette of .
Notice that . In the following, the set of all rooted graphs of detail at most with at most roots is treated as the set of colours for our colourful graph. This means, in particular, that .
A -folio homogeneous wall. Let with . Let be a graph, a set of vertices and let be an -mesh in that is flat in witnessed by the sphere rendition . We define the -folio augmentation of , denoted by , as the colourful graph obtained from by introducing, for each , a vertex adjacent to exactly the vertices of , setting for all and -palette for every . Notice that may be extended to a sphere rendition of such that is the restriction of to simply by setting for all and for all . We call the -augmentation for .
In particular, is still flat in as witnessed by .
Now, is said to be -folio homogeneous in if is homogeneous in .
Finding a folio homogeneous mesh. We are finally ready to state an adapted variant of the homogenisation lemma of Gorsky, Seweryn, and Wiederrecht [GSW26] to the setting of folios.
Proposition 6.5 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). There exists a function such that for all integers and the following holds. Let be a graph, with , and be a flat -wall in with a sphere rendition witnessing the flatness of in . Then there exists an -wall such that
i) is flat in G - A witnessed by ,
ii) the tangle of in G - A is a truncation of the tangle of in G - A, and iii) is -folio homogeneous in G.
In particular, if is suspended in witnessed by , then so is . Moreover, and there exists an algorithm that takes as input , and as above and computes in time where denotes the treewidth of in .
We choose to be nondecreasing in each argument and to always take odd values at least five.
Finding a favourable configuration
We are now ready to prove a preliminary lemma to Theorem 1.2 which allows us to either determine that is large, the treewidth of G is small, that G contains a large clique minor, or to find a huge flat mesh and smaller but still sizeable suspended and folio-homogeneous flat mesh in the compass of its centre.
Before we begin, we have to make a small adaptation to catch a degenerate case in our discussion. The issue is that we wish to preserve pieces of a given solution in a subgraph of partially determined by an apex set that resulted from an application of Lemma 6.7 as stated below. For this we wish to make use of the machinery for DISJOINT PATHS and folios. However, an apex may occur internally in a piece of , and its use must be recorded even when it is not an endpoint of that piece. To record its two incidences separately, we split the apices before we start the homogenisation process.
Let be a graph and be some vertex set. We say that a graph is obtained from by splitting the vertices of if is obtained from by replacing each vertex with two copies and such that and both have the same neighbourhood as in outside of and for every vertex with we add the edges .
Let be an integer. Given a graph , a set , and a mesh in such that is flat in , we say that is strongly -homogeneous in if is -folio homogeneous in where is obtained from by splitting the vertices in and .
We further require a subroutine for detecting whether an annotated graph has bounded bidimensionality. Such an algorithm can be easily deduced from the reduction given by Protopapas, Thilikos, and Wiederrecht [PTW26] that reduces the problem of checking whether an annotated graph is a red-minor of in polynomial time to checking for a rooted minor in a (regular) graph. The latter can be solved in time by the rooted-minor algorithm of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK+26]. Since testing if amounts to checking if contains a red -grid as a red-minor, we obtain the following observation.
Observation 6.6. There exists an algorithm that takes as input an integer and an annotated graph and either determines that or returns a red-minor-model of a red -grid in in time .
Lemma 6.7. There exist functions , , , , such that for all integers , and and every annotated graph one of the following holds.
i) G contains a -minor,
ii) ,
iii) , or
iv) There exist sets with for each , a -mesh which is flat in and whose compass is blank, and an s-wall which is
• flat in ,
-
its compass is entirely contained within the compass of the -central submesh of ,
-
the graph induced in by the vertices of its compass together with has treewidth at most ,
• is suspended in , and
• is strongly -homogeneous in .
In the last outcome, there exist sphere-renditions and witnessing the stated properties of and , respectively, with the following additional property. Let be the -central submesh of . For every -aligned disc containing the compass of , let be obtained from the crop of by by restoring and every edge of with both endpoints in the resulting vertex set. Then , and the same mesh is flat and suspended in and strongly -homogeneous in . Moreover, these properties can be witnessed by a rendition with the same compass and the same cells inside that compass as .
There exists an algorithm that takes as input an annotated graph and finds an (annotated) minor model certifying the first or second outcome, a tree-decomposition for of width at most , or the meshes and sets as in the last outcome together with renditions witnessing the flatness, suspension and homogeneity in time .
Moreover, we have
Proof. Let us first set up our functions properly. For the remainder of the proof, let
We may assume that the functions in the propositions we use are nondecreasing. Let q be the smallest odd integer satisfying
and let be the smallest odd integer such that
We now set
This also immediately validates the claimed bounds on these functions. Notice in particular that is even.
We start by using Proposition 2.1 to check if contains a -minor in time . If this produces a minor model of , we return and stop. Otherwise, we may now assume that is -minor-free.
Next we make use of Proposition 2.3 to either find a tree-decomposition of width at most for , or an -mesh in where
In the first outcome, we return the tree-decomposition and stop.
We proceed by applying Proposition 6.2 while asking for a -minor as the alternative. Since we have already confirmed that does not contain any -minors, we must obtain a set of size at most and an -submesh together with a sphere-rendition of that witnesses that is flat in where
Now we make sure that the compass of our mesh is blank. This is achieved by applying Proposition 6.4 with parameter to in . As a result, we obtain a -submesh of whose compass is blank, or we find a red-minor model of the red -grid. In the second outcome, is also a red-minor model in , so we simply return that - or as a witness for that fact - and stop. Hence, we may assume that we arrive at the first outcome. Notice that the assertion does not require us to fully determine whether . Set to be the submesh of obtained by removing its outer layer. We have found the first of our two flat meshes. Let be the -central submesh of , let be the -aligned disc defining its compass, and let be the crop of by . Let be obtained from by restoring together with all edges of incident with whose other endpoint is in . Here we use the crop itself, rather than the induced graph on its vertices, since the latter may contain additional edges drawn outside between boundary vertices. The -central submesh of is contained in . Since
we have .
This means that, if we now apply Proposition 6.3 to with target order , we must find a set with and a flat -wall in together with a sphere-rendition witnessing its flatness and suspension. We use the witness supplied by the proposition with the claimed bound on its compass treewidth. Let be the compass of in and let be the perimeter of . Then . Adding to every bag of a tree-decomposition accommodates all edges with an endpoint in and both endpoints in . By our choice of , the resulting width is at most
Notice that this does not require the compass itself to be induced.
Claim 6.7.1. There exist a set with and a -wall which is flat and suspended in , witnessed by a sphere-rendition in which its compass is blank and entirely contained in . Moreover, the graph induced in by the vertices of this compass together with has treewidth at most .
Proof of claim. For every cell of contained in , let be its cell-separation, restricted to , where
This separation has order at most three. We first consider the case where the tangle induced by points into for some such cell . Set and
Notice that . Since points into , the set contains a complete row and a complete column of . There are at most three rows and three columns of meeting . Every row avoiding meets the complete column on this side of the separation and cannot cross to the other side. The analogous statement holds for columns. Hence, by omitting the rows and columns meeting , we find an -submesh of in . It follows that
We now apply Proposition 6.3 to with target order . Again, neither the clique-minor outcome nor the bounded-treewidth outcome is possible. Thus we find a set of size at most and a flat and suspended -wall in , with a witnessing rendition whose compass has treewidth at most . Let be its -central subwall, discard , and set .
Every edge from to the rest of has its other endpoint in . Since , we may move the entire exterior into the unique vortex of the new rendition. Here we retain the cells inside the trace of the perimeter of the -central subwall of , rather than restricting immediately to the compass of . The intervening layer ensures that all cells supporting edges of are retained.
Indeed, two vertex-disjoint grounded cycles cannot both use edges of the same ordinary cell, since each would require two distinct boundary nodes of that cell. Thus the support cells of lie on the inner side of the intervening perimeter. This witnesses that is flat in , with the same compass as before. For suspension, the connectivity witnesses inside each cell are unchanged, and the disjoint paths to the perimeter of may be truncated at their first contacts with the perimeter of . These truncated paths lie in the retained region. Its compass is contained in the cell , and hence in , and is blank.
The two layers between and the perimeter of also ensure that its compass avoids that perimeter. Every edge induced on this compass in , unless it has an endpoint in , therefore belongs to . Indeed, such an edge belongs to , and an edge incident with a vertex strictly inside the old compass cannot be drawn outside that compass. Restricting a tree-decomposition of to the vertices of the compass of and adding to every bag gives width at most
Moreover, and . This completes the first case.
Hence, we may assume that the tangle of does not point into any cell of contained in . Let be obtained from by removing its two outer layers. We first show that is grounded in .
For this, suppose that some cycle is contained in for a cell . Since , every edge of belongs to a cell contained in , so is such a cell. By our assumption, the other side of its cell-separation contains a complete row and a complete column of , both disjoint from . Let , and call a row or column of untouched if it avoids . Every untouched row meets the complete column on the other side, and every untouched column meets the complete row on that side. Hence all untouched rows and columns lie in one component of , and . In particular, avoids every untouched row and column.
Write for the rows of and let
A cycle of a mesh meets at least two distinct rows and at least two distinct columns, so . Since , we also have and . There is an untouched row above all rows indexed by . Otherwise, the rows and the at least two rows indexed by would give at least four distinct rows meeting , contradicting . Similarly, there is an untouched row below all rows indexed by .
Let and be the leftmost and rightmost columns meeting . These columns are distinct, and each meets in at least two distinct vertices. Indeed, at an extremal column, every part of leaving that column must leave towards the same side. At each row there is only one horizontal connector towards that side, so a cycle must use such connectors at two distinct rows. This remains true when a row-column intersection is a nontrivial path, since that contact path has only one horizontal connector towards either side. Along each of and , we may therefore take a path from its first contact with upwards to an untouched row above , and a path from its last contact with downwards to an untouched row below . These four paths are pairwise vertex-disjoint, start on , and end in . Each must meet , again contradicting . This argument also allows vertices of to lie on , since the four initial vertices are distinct. Thus every cycle of is grounded in . No vertex of is drawn in a vortex, since all its edges belong to the vortex-free crop by . Consequently, is grounded in .
Choose four pairwise disjoint -subwalls of in a two-by-two array, with two unused rows or columns between consecutive rectangles and between the array and the perimeter of . For each , let be the -central subwall of , let be the perimeter of , and let be the perimeter of its -central subwall. Notice that our choice of leaves enough room for this choice, since .
We make use of the following elementary consequence of groundedness. The part of a two-connected grounded mesh carried by a cell of order at most three is a forest whose leaves are boundary nodes: a cycle would violate groundedness, and an internal leaf would violate two-connectivity of the mesh. There is therefore at most one nontrivial tree component, with at most three leaves, and any remaining components are isolated boundary nodes. These forests may be drawn inside their respective cells, fixing the boundary nodes and respecting the trace convention. This gives a planar drawing of the mesh.
We also justify why this drawing has the usual rectangular embedding, including when row-column intersections are nontrivial paths. After suppressing its degree-two vertices, a rectangular grid of order at least three is three-connected. To see this, delete at most two non-corner grid vertices and consider the component containing all untouched rows and columns. If the deleted vertices share a row or column, every remaining vertex belongs to that component. Otherwise, the only additional candidates are the other two corners of the coordinate rectangle determined by the deleted vertices. Each such vertex has a neighbour in an untouched row or column, unless it is a corner of the whole grid and both its neighbours were deleted. Thus the only possible additional components are isolated grid corners. Suppressing the four corners removes this exception and preserves connectivity of the remaining vertices.
In a general mesh, a nontrivial contact path replaces an interior degree-four grid vertex by an edge whose endpoints each inherit two incident grid edges, followed by subdivisions. Boundary contact paths are singletons by the definition of a path between two vertex sets. Splitting a vertex of a three-connected graph into two adjacent vertices, each inheriting at least two neighbours, preserves three-connectivity. Indeed, if neither split vertex is deleted, their joining edge preserves the original connections. If one split vertex and one other vertex are deleted, the remaining split vertex still has a neighbour in the connected graph obtained by deleting the original vertex and that other vertex. If both split vertices are deleted, we use connectivity after deleting the original vertex. Hence a mesh of order at least three is a subdivision of a three-connected planar graph. Whitney's uniqueness theorem now implies that its sphere embedding is the usual rectangular one, up to a homeomorphism and reflection. In particular, the buffered perimeters bound their expected, pairwise disjoint interior discs in both renditions.
By applying this to in , we obtain pairwise disjoint discs , where is bounded by the trace of on the side containing and excluding the remainder of the buffered mesh. At most one of these discs contains the vortex of . Choose for which does not contain that vortex. Since the trace of lies in , whereas the vortex lies outside , we have .
Let be the inner graph of in , on its rectangular interior side, and let be the compass of in . The buffers and the rectangular embedding imply that
Moreover, all support cells of lie on the inner side of . As in the first case, this follows because two vertex-disjoint grounded cycles cannot both use edges of the same ordinary cell. We may assume that is connected. Indeed, any component not meeting has no attachment across the boundary of this inner graph, whose boundary nodes belong to , and can be placed in the exterior vortex. This changes neither the graph nor any support cell of .
The separation defined by in now implies that is entirely contained on the side containing . Indeed, its separator is contained in , which avoids, and a connected subgraph avoiding a separator cannot meet both sides. In particular, if we let be the proper inner graph of in , we obtain
These vertices lie strictly on the inner side of , and hence are not on the boundary of . Consequently, every edge of incident with such a vertex is already present in . Notice that this argument compares two graph separations; it does not require the renditions and to agree. Set and . Keep the cells of on the inner side of the trace of and place the entire exterior in one new vortex. This gives a sphere-rendition of : no additional edge attaches to a retained interior vertex, and every attachment to the retained disc already occurs on its boundary in . The intervening layer ensures that all support cells of are retained. It therefore witnesses flatness of , with the same compass , which is blank and contained in . For suspension, the connectivity witnesses inside each cell are unchanged, and disjoint paths to the old perimeter may be truncated at their first contacts with the perimeter of . The truncated paths lie inside the retained disc bounded by .
Finally, . Every edge induced on in belongs to : it is present in , and an edge incident with a vertex strictly inside the old compass cannot be drawn outside that compass. Restricting a tree-decomposition of to and adding to every bag therefore gives width at most
Moreover, and . All choices above can be made from the supplied meshes and renditions in polynomial time. This completes the proof of the claim.
Let be obtained from by splitting the vertices in and let
Notice that . Moreover, splitting the apices increases the treewidth of the augmented compass by at most . Thus its treewidth in is at most
Let us apply Proposition 6.5 to with apex set and detail in . Our choice of permits this application; if necessary, we first take the central subwall of the order requested by the proposition. As a result, we obtain an -wall which is flat in , suspended, -folio homogeneous, and whose compass is blank and contained in . Notice that this means that is strongly -homogeneous in . Its augmented compass is contained in the augmented compass supplied by the claim, so the required treewidth bound also follows.
It remains to verify the additional assertion concerning crops. Let be a -aligned disc containing the compass of . The compass of and all vertices of are retained in . Keep the rendition on the buffered region retained in the proof of the claim and put the remainder of into the exterior vortex. This region is contained in the compass of , and the intervening layer retains all support cells of , and hence of . As in the proof of the claim, this witnesses flatness and suspension of the same mesh . Every augmented cell inside the compass has exactly the same induced graph together with the split apices as before the crop. Hence all its palettes are unchanged, which proves strong homogeneity in . The same argument applies after splitting vertices outside both the compass of and , since these vertices have no neighbours in the retained compass outside . In particular, the rendition on the compass, and any vertex chosen in its central region, can be fixed before the choice of .
Finally, the only calls with a nonpolynomial dependence on a requested mesh order use orders at most . Both and belong to . The clique-minor test, the two possible applications of Proposition 6.3, and the homogenisation therefore take time
All remaining steps are polynomial in the requested outer mesh order and the size of the graph. This completes the proof.
6.3 Actually finding the irrelevant vertex
With Lemma 6.1, Lemma 6.7, and Theorem 5.2 we now have almost all the tools we need for the proof of Theorem 1.2 in place. The only missing piece at this point is a theorem that lets us make use of suspended and homogeneous flat meshes directly. This is handled by the following result of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26].
Strongly irrelevant vertices for folios. Let be non-negative integers and be an annotated graph. We say that a vertex is strongly irrelevant for -folio if for every ordered multiset consisting of roots chosen from among the vertices of it holds that -folio-folio.
Proposition 6.8 (Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26]). There exists a function such that the following holds for all non-negative integers and odd integers . Let be an annotated graph with , let , and let be an -wall. Suppose that is suspended in and -folio homogeneous in , witnessed by a sphere-rendition of , and that its compass contains no vertex of . Then, the following holds:
If is the disc bounded by the perimeter of the -central subwall of which contains all nodes of in and
then every is strongly irrelevant for -folio .
Moreover, .
We note that the precise wording of the homogeneity condition in the work of Cavallaro, Gorsky, Kreutzer, Thilikos, and Wiederrecht [CGK 26] is slightly different. However, we use the geometric interior determined by the vortex-free -disc in the definition of homogeneity. In particular, if is -folio homogeneous, then for every brick of and every rooted graph occurring in a -palette of a cell in , there exists a cell such that -palette( ). Here, is the vortex-free disc bounded by the trace of .
Indeed, the colour occurs at a cell vertex in the geometric interior of in the folio augmentation. This is precisely the necessary property as supplied by the main result of [GSW26] and used in the reconstruction step of the proof of Proposition 6.8. This also means that this change in the definition does not interfere with the validity of Proposition 6.5 where the tools from [GSW26] are explicitly applied. The augmented cell graphs and their apex and boundary labels are unchanged, so our homogeneity definition is indeed sufficient to make Proposition 6.8 applicable.
Theorem 1.2. There exists a function and an algorithm that takes as input an instance of TERMINAL CYCLABILITY and an integer , and finds one of the following outcomes in time:
i) ,
ii) an induced subgraph with such that is irrelevant and does not contain as a minor, or
iii) a tree-decomposition for of width at most .
Proof. We begin by defining our function . We may assume that is nondecreasing in each argument and that its values with fourth argument 3 are odd and at least five.
It follows from this definition and the bounds from Lemma 6.7, Theorem 5.2, and Proposition 6.8 that
as desired.
We begin by calling Lemma 6.1 to either correctly determine that , in which case we return this outcome and stop, or find an equivalent instance such that is an induced subgraph of and does not contain a -minor. This step runs in time. If , we may stop here and return since, in particular, is irrelevant.
From now on we may assume that , so contains no -minor. Before proceeding, we use Observation 6.6 to either find a red-minor model of the red -grid, in which case we return the first outcome and stop, or confirm that . This takes time and supplies the hypothesis needed for Theorem 5.2. For the remainder of the proof, write . We now call Lemma 6.7 with parameters . By the discussion above, its first outcome is impossible. If it returns a red-minor model certifying , we return that certificate and stop. Similarly, if we are presented with a tree-decomposition for of width at most , we return and stop.
Preparing the annulus. Hence, we may assume that Lemma 6.7 presents us – after . time – with sets with for each , an -mesh which is flat in and whose compass is blank where
and an -wall which is
• flat in ,
- its compass is entirely contained within the compass of the -central submesh of ,
• suspended in , and
• strongly (12, )-homogeneous in .
Here we use the wall returned by Proposition 6.5 in the proof of Lemma 6.7. Let and be the witnessing renditions supplied by that lemma, including its additional assertion concerning crops. This means, in particular, that we may let with be the outermost layers of where is the perimeter of and the cycles are numbered such that is the th layer. Removing all those layers still leaves the central -submesh of intact which means that for any , separates from the perimeter of in . For every let now be the cycles in order. Notice also that there exist more than rows of which contain rows of as subpaths. Let be a selection of any such rows numbered in the order they are encountered when traversing along the leftmost vertical path of from top to bottom. Each of the is a row of that contains a row of , therefore, must intersect each of the cycles , precisely twice. Indeed, if we let be the first columns of , then for every and every , intersects precisely once in . For every let be the unique -subpath of . It follows that every intersects each of the precisely once and this intersection is a path. Next, let us denote for each and by the unique -subpath of .
All of the above now gives rise to disjoint railed annuli, each of them being flat in the rendition of that witnesses the flatness of . Moreover, the compass of each of those annuli is blank and their domains are pairwise disjoint. For each let be the resulting railed annulus with circles and rails.
Finding the right spot. Notice that in each of the is separating. However, each vertex in may have an arbitrary number of neighbours in the compass of any of the . In order to apply Theorem 5.2, we require an -calm annulus for some fixed solution for .
Our goal is to prove that a fixed vertex in the centre of the compass of is irrelevant. Let be the vortex-free disc bounded by the trace of the perimeter of the central 3-subwall of in , and set
This set is nonempty and is contained in the blank compass of . Fix any . In particular, , and this choice of depends only on the input graph and the renditions supplied by Lemma 6.7.
It suffices to show that for every solution of there exists a solution avoiding . This is why we created at least annuli. For any fixed solution , at most vertices outside are adjacent to along . Since the compasses of the candidate annuli are pairwise disjoint and blank, there exists such that is -calm.
Insulating . Let us now assume that is a yes-instance and let be a fixed solution. Furthermore, let be chosen such that is -calm. We now apply Theorem 5.2 to , , , and . As a result, we obtain a new solution that is combed in the -trimming of such that uses at most two rails of .
Notice that has at least ten circles. Let be its domain and let be a -aligned simple closed curve in separating its two boundary components. Let be the disc bounded by on the side containing , and let be the crop of by . In particular, contains the compass of . Since uses at most two rails of , we may choose so that intersects it in at most two nodes. Let be distinct vertices corresponding to nodes of that include all these intersection vertices. If there are fewer than two intersection vertices, we choose the remaining vertices arbitrarily among the other nodes of .
Let , so is precisely the graph from the additional assertion of Lemma 6.7. In particular, . Set
and let be obtained from by splitting every vertex of . For every , denote its two copies by , and put
The vertices lie outside the compass of . Moreover, the separating layers between and imply that neither has a neighbour in the compass of in .
An irrelevant vertex. If , we are already done. Hence, we may assume that . By construction, the annotated graph satisfies
We next encode the part of contained in by a rooted minor of detail at most three. Every vertex of receives its own root label.
Suppose first that and that avoids . Then , since the part of outside is blank. In this case, retain a triangle minor of and include every vertex of as a separate isolated rooted vertex. The resulting rooted graph has detail three.
Otherwise, consider all edges of that belong to . At each , assign these incident edges to distinct copies . Every nontrivial component of the resulting subgraph in is a path with both endpoints in and with no internal vertex in . Indeed, every transition from to its exterior occurs either at a vertex of or at one of . Let consist of these paths together with every unused vertex of as a singleton. The members of are pairwise vertex-disjoint.
We usually contract each nontrivial path of to one vertex carrying its two endpoint labels, and retain the singleton roots as separate vertices. We make the following two exceptions. If and meets in precisely one vertex , then its split image is an -path of length at least three. For this path, retain a three-edge path with the same endpoint labels. If and meets in precisely two vertices, at least one of the two resulting paths has length at least two. Retain a two-edge path for this piece and contract the other piece to a vertex carrying its two endpoint labels. In every case, we obtain a rooted graph of detail at most three: it has at most three edges and at most three unrooted vertices.
A model of supplies the required replacement pieces. A branch set carrying two endpoint labels supplies a path between the corresponding roots, and a model of a retained two-edge or three-edge path supplies a path of at least the prescribed length. All these paths can be chosen pairwise vertex-disjoint. Every vertex of carries a root label in its prescribed component of , so none can occur internally in another replacement piece. For an isolated rooted vertex, we retain just that root as a singleton.
Identifying the copies and restoring the unchanged exterior portions of therefore preserves the cyclic connection pattern and all vertices of R. The replacement paths have no internal vertices in B, and every vertex outside has only one copy, so no additional intersections arise upon identification. If the entire cycle lies in , the triangle, the prescribed path lengths, or the presence of at least three distinct vertices of ensures that the recovered cycle has at least three vertices. Otherwise, every nontrivial exterior piece has length at least two, since is induced in . Thus a replacement piece cannot collapse to the same edge as an exterior piece, and restoring the exterior again yields a cycle. Consequently, preserving this rooted minor suffices to preserve an -cycle.
We now use the additional assertion of Lemma 6.7. It gives a rendition witnessing flatness and suspension of the same wall in and strong (12, A)-homogeneity in , with exactly the same compass and the same cells inside that compass as the fixed witness . After splitting , the wall is therefore (12, )-folio homogeneous. Splitting leaves every augmented cell in this compass unchanged: these vertices lie outside the compass and have no neighbours in it apart from apices. It follows that is flat and suspended in and (12, )-folio homogeneous in . Its compass contains no vertex of . In particular, the set and our fixed vertex are retained in this witnessing rendition.
By the definition of , the order of is
Applying Proposition 6.8 with annotation bound , detail three, root bound , and apex set shows that every vertex of is strongly irrelevant for -folio. To apply this to , list all vertices of as roots and, if necessary, repeat one root until the list has length , giving the same extra labels to . This does not change its detail. Hence is still a rooted minor of . By the preceding reconstruction, there is an -cycle in .
Finally, notice that the wall , its witnessing compass in , and the choice of were fixed before , the calm annulus, and were chosen. The argument therefore applies to every solution . If is a yes-instance, then so is , and the converse follows because is a subgraph of . Since , the vertex is irrelevant. We return , which is an induced subgraph containing and is still -minor-free, as required by the second outcome. The vertex is found from the fixed rendition, and neither the unknown solution nor the application of annulus combing is needed by the algorithm. All algorithmic steps have running time , which completes the proof.
7 A single-exponential parameterized algorithm for treewidth
In this section, we give a deterministic single-exponential dynamic program for TERMINAL CYCLABILITY. While such an algorithm is not surprising – indeed Gahlawat, Rathod, and Zehavi [GRZ25] state that such an algorithm follows for planar graphs from the Catalan-structure framework of Dorn, Fomin, and Thilikos [DFT12] – we are not aware of a proof. Dorn, Fomin, and Thilikos did not explicitly consider TERMINAL CYCLABILITY. While it is plausible that their approach indeed applies, we give a complete proof for general graphs based on the framework of Bodlaender, Cygan, Kratsch, and Nederlof [BCKN15], as it does not restrict the input graph to planar or -minor-free graphs, and, we believe, results in a simpler algorithm.
We start with an intuitive description of the algorithm. As is common with algorithms based on treewidth, we will perform dynamic programming over a nice tree decomposition. To this end, we consider partial solutions in the subgraphs associated with the bags. The subgraph associated with a node contains the vertices and edges introduced in the subtree rooted in that node. A partial solution for a bag is a linear forest (a forest of maximum degree at most two) in this subgraph such that every forgotten vertex has degree zero or two and every forgotten terminal has degree two. We designate one edge that belongs to every solution and search for a path between its endpoints that contains all terminals. The general idea is to merge two partial solutions using matchings on the degree-one vertices in . Each matching describes the connectivity of these degree-one vertices, and two partial solutions can be combined if their union is a linear forest. They can be combined into a full solution if they contain all vertices in and form a single path between the endpoints of .
We next introduce some notation. We describe a partial solution for a bag by a pair , where gives the degrees in the partial solution. Let be its set of degree-one vertices, which we call the boundary. Every nontrivial component of the partial solution is a path with both endpoints in ; the matching pairs the two endpoints of each such path. Because we are interested only in existence, partial solutions described by the same pair behave identically under every completion in the remainder of the graph. We go one step further and do not store every feasible pair, since their number is not bounded singly exponentially in . Instead, we store only a representative family, as defined next.
We say that two matchings are compatible if the multigraph consists of a single cycle. In particular, if , two identical matchings are compatible, since their union is a cycle of length two consisting of two parallel edges. For , the empty matching is compatible with itself.
Let . We say that represents if, for every , the existence of a matching compatible with implies the existence of a matching compatible with . We will use the following result due to Bodlaender, Cygan, Kratsch, and Nederlof [BCKN15].
Lemma 7.1. There exists an algorithm that given a set of perfect matchings over a set , computes a subset of perfect matchings such that represents . The set has size at most and the algorithm takes time.
We remark that the original result can also handle weighted perfect matchings. However, since we will only be interested in unweighted matchings, we can assign each matching a weight of 1 and then ignore the weights for ease of presentation. Moreover, the algorithm makes use of fast matrix multiplication to improve the running time slightly, but the above running time is sufficient for our purpose.
We next explain how to merge partial solutions using a function comb. Let and be two pairs representing two partial solutions and let be the set of vertices in the intersection of the vertex sets of the two respective graphs. Let for each . If for some , then fails. Otherwise, we build the multigraph . If this multigraph contains a cycle, then again fails. Finally, if is acyclic, then we define to be the pair , where is the perfect matching on that pairs the two endpoints of every path component of H. We next show that this pair describes the union of the two partial solutions.
Lemma 7.2. Let and be edge-disjoint linear forests and let . Assume that every nontrivial component of either forest has both endpoints in . Let be the degree of in for each and each and let pair two vertices of precisely if they are the endpoints of the same nontrivial component of . Then, is a linear forest if and only if does not fail. If it does not fail, then describes .
Proof. Every vertex outside has degree at most two in , while the degree of is . Thus, the union has maximum degree at most two precisely if the first failure condition does not apply and we assume this for the rest of the proof. Now, replace every nontrivial component of by the corresponding edge of between its endpoints, and let be the resulting multigraph. Every vertex that has degree one in both and is an endpoint of an edge in and in and thus has degree two in . Since each is acyclic, it holds that contains a cycle if and only if does, which is the second failure condition. Hence, we have shown the first statement of the lemma.
For the second, assume that is acyclic and let . Note that by construction. Since is acyclic, each of its connected components is a path, its degree-one vertices are precisely the vertices of , and two such vertices are paired by precisely if they are the endpoints of the same component of . That is, describes .
The last ingredient we need for our main proof is to extend the combine operation to families of perfect matchings and show that this extension preserves representation. To this end, fix a vertex set and two degree functions . Let and be two sets of perfect matchings. Let for all . We define
If for some , this family is empty.
Lemma 7.3. Let be a set, let be degree functions, and let such that represents for each . Then, represents .
Proof. Let for each . If for some , then both and and the former represents the latter. Hence, we may assume that for all . It suffices to show that replacing by preserves representation while the second family is fixed. The same argument can then be applied to the second family.
First, assume that . Whenever the combine operation succeeds, every vertex of has degree zero or two. Since this multigraph is also acyclic, it cannot contain any edges. Thus, both input matchings are empty and the claim follows immediately. So assume that .
Let be any perfect matching and assume that there exists a matching compatible with such that for some and .
We will show that there is also a matching compatible with such that for some , it holds that . Expanding every edge of into the corresponding path of shows that is a single cycle. If , then is the empty matching and . Hence, since represents . Otherwise, deleting the edges of from this cycle yields vertex-disjoint paths whose endpoints form . Contracting these paths gives a perfect matching compatible with . Since represents , it contains a matching compatible with . Expanding the edges of again shows that is a single cycle. As is non-empty, is acyclic. Thus, the combine operation succeeds and its output is , and is compatible with . Replacing analogously completes the proof.
We also use the following simple observation.
Observation 7.4. Let be a set and let such that represents for each . Then, represents . Moreover, if represents , and represents , then represents .
Proof. Fix any . If a matching in is compatible with , it belongs to one of the two families, and the corresponding representative family contains a matching compatible with . This proves the first statement.
For the second, note that if represents , then it holds by definition that . If a matching in is compatible with , there also exists a matching in that is compatible with since represents . Since represents , there is also a matching in that is compatible with . This shows that represents .
We are now ready to prove Theorem 1.4, which we restate here for convenience.
Theorem 1.4. Let be an integer. There exists an algorithm that takes as input an annotated graph where and solves TERMINAL CYCLABILITY in time .
Moreover, if a tree-decomposition of width at most for is supplied as part of the input, the algorithm runs in time .
Proof. Let be an instance of TERMINAL CYCLABILITY. We assume without loss of generality that as otherwise the problem can be solved trivially in time by computing biconnected components. Fix any .
We first reduce the problem to finding a simple path through all terminals while designating one edge that must belong to every solution. Construct by adding two new vertices , both adjacent to every neighbour of in , deleting all original edges incident with , and adding the edges , and . Let and . Note that every cycle through all vertices in in corresponds to a cycle through all vertices in by replacing the two cycle edges incident with by a path through . The same is also true in the other direction. Specifically, each cycle through all vertices of must contain the edge .
Let be the graph obtained by deleting in . It now suffices to find a simple -path in containing all vertices of . To obtain a tree decomposition of , add and to every bag of the given decomposition that contains . This yields a tree decomposition of width at most . We use the standard -time procedure to turn the tree decomposition into a nice tree decomposition of the same width whose root has bag .
For a node of , let be the union of the bags in the subtree rooted at , and let be the set of edges introduced in that subtree. A partial solution at is an edge set such that the graph satisfies the following conditions:
i) it is a linear forest,
ii) every forgotten terminal has degree two in it, and
iii) every forgotten nonterminal has degree zero or two in it.
Thus, every nontrivial component is a path with both endpoints in .
For a degree function , let be the family of perfect matchings such that there exists a partial solution that is described by . We next present the dynamic program with its recurrences (which will later be compressed into representative families).
Leaf nodes. If is a leaf, then and . Hence,
Introduce-vertex nodes. Suppose that introduces a vertex and has child , that is, . For a degree function on , let for all . Since no edge incident with has yet been introduced, we get
Introduce-edge nodes. Suppose that introduces the edge and has child . Note that . If or , then the introduced edge cannot be used and . Otherwise, let for all , , and . Moreover, let and for all . Then, we have
The first term is for the case where the edge is not used by a solution and the second term uses as a path with only a single edge. It then combines this path with all suitable partial solutions for .
Forget-vertex nodes. Suppose that forgets a vertex and has child , that is, . For a fixed degree function on , let for all and let and . Then, set
Join nodes. Suppose that has children and . By definition, we have . Then, for every degree function on , we set
The recurrences are correct by induction over . The claims for leaf and introduce-vertex nodes follow directly from the definitions. At an introduce-edge node, every partial solution either omits or is the union of and a partial solution at the child. In the latter case, correctness follows from Lemma 7.2. When is forgotten, its degree must be two if it is a terminal and may be zero or two otherwise, which precisely matches the two stated cases. Finally, at a join node, the edge sets introduced in the two child subtrees are disjoint, and the corresponding subgraphs share vertices only in . The two degree functions sum to , and Lemma 7.2 shows that the combine operation gives exactly the matchings of the resulting partial solutions.
We now compress the tables using Lemma 7.1. At every node and for every degree function , we store a family that represents . We compute the candidate family using the appropriate recurrence above, with the stored representative families in place of the full child families, and then apply Lemma 7.1. By Observation 7.4 and Lemma 7.3, unions and combine operations preserve representation. An induction over therefore shows that every stored family represents . We next explain how the root table determines whether the instance is a yes-instance. Recall that is the root of the nice tree decomposition and . Let . We accept if and only if is non-empty. Every corresponding partial solution has exactly one nontrivial component, namely a simple -path, and every terminal lies on this path. Adding yields a cycle through all vertices of in and hence also corresponds to a cycle through all vertices of in . Conversely, every solution in yields such a path described by . Since is the only perfect matching on and is compatible with itself, representation guarantees that is non-empty precisely if is non-empty.
It only remains to analyse the running time. We first consider the case where the tree decomposition is given. Let be an upper bound on the maximum number of vertices in any bag. By Lemma 7.1, each stored family has size at most . Note that comb can be computed in time. Since each call of Comb is only run on reduced sets, it makes at most calls to comb and can therefore be computed in time. There are at most degree functions for each bag and thus, the number of stored entries for each bag is at most . Moreover, each set computed during the algorithm between reductions has size at most . At a join node, there are possible combinations of and to consider: for each vertex , it can be that and hence also , it can be that with either and , or and , or it can be that . In the last case, there are three possible cases: and . Thus, all entries for a single node in the nice tree decomposition can be computed in time. Reducing the entries for a fixed node in the tree decomposition and a fixed degree function takes time by Lemma 7.1. Doing this for each of the at most degree functions reduces all entries for a given node in the tree decomposition in time. Hence, each node can be processed in time. Since there are nodes, the overall running time is in .
Finally, if no tree decomposition is given as input, we can run the -time 2-approximation algorithm for treewidth of Korhonen [Kor23] with successive width guesses. This results in a tree decomposition of width at most for in time. We can then run the above algorithm with the new value . Note that both algorithms can be run sequentially and the second algorithm runs in time. Thus, the running time of the second part is absorbed by the first part and the entire algorithm runs in time . This concludes the proof.
8 The complexity dichotomy
We now combine Theorem 1.2 and Theorem 1.4 to obtain an XP-algorithm for TERMINAL CYCLABILITY parameterized by bidimensionality. The idea is to repeatedly delete an irrelevant set until the remaining graph has treewidth at most , where is the bidimensionality of the red set and is a computable function that only depends on . We then use the algorithm from Theorem 1.4 to get a polynomial-time algorithm whenever the bidimensionality is bounded. We first formalise this argument and then use it afterwards to prove Theorem 1.1.
Theorem 8.1. There exists an algorithm that takes as input an annotated graph and solves TERMINAL CYCLABILITY in time, where .
Proof. We maintain an annotated graph and an integer . Intuitively, is the result of removing irrelevant vertices/sets from and is a guess for the bidimensionality of . Initially, and . If has at most three vertices, then we solve directly. Otherwise, we apply Theorem 1.2 to with parameter and proceed according to its outcome.
i) If the algorithm determines that , then we increase q by one and repeat.
ii) If the algorithm returns an induced subgraph such that is non-empty and irrelevant, then we replace by and repeat.
iii) If the algorithm returns a tree-decomposition for of width at most , then we use Theorem 1.4 to solve the instance .
We next analyse the running time of the algorithm. To this end, first note that throughout the algorithm, it holds that and is equivalent to by Theorem 1.2. Moreover, is always an induced subgraph of , and hence it holds that . Thus, throughout the algorithm we have , and the first outcome of the above case distinction can happen at most times. The second outcome deletes at least one vertex and can therefore happen at most times. The last case can happen only once. Thus, the running time of the described algorithm is times the running time in Theorem 1.2 (which is ) plus once the running time in Theorem 1.4 (which is , where ). Thus, the running time for Theorem 1.4 is in and the overall running time for the described algorithm is in .
It remains to show that the algorithm is correct. To this end, note that the algorithm always terminates as shown above. Before it terminates, it always produces an equivalent instance by
Theorem 1.2. When it terminates, it either solves a trivial instance with at most three vertices or it gives the correct answer by Theorem 1.4. In both cases, the returned answer is correct for and hence also for . This concludes the proof.
With the above result at hand, we can now show our main result: TERMINAL CYCLABILITY is polynomial-time solvable on a red-minor-closed graph class if and only if there exists some constant such that each annotated graph satisfies (assuming ). Equivalently, TERMINAL CYCLABILITY is polynomial-time solvable when restricted to if and only if does not contain all annotated planar graphs. We will explicitly show and use this equivalence in the following proof.
Theorem 1.1. Let be a red-minor-closed class of annotated graphs. If does not contain all annotated planar graphs, then TERMINAL CYCLABILITY can be solved in polynomial time on . Otherwise, TERMINAL CYCLABILITY is NP-complete on .
Proof. Let be a red-minor-closed class of annotated graphs. We first show the hardness part. So assume that contains all annotated planar graphs. We reduce from HAMILTONIAN CYCLE on planar graphs, which is known to be NP-hard [GJT76]. Given an instance , we simply construct the equivalent instance of TERMINAL CYCLABILITY. Since is planar, it holds that . This shows that TERMINAL CYCLABILITY is NP-hard restricted to .
In the other direction, assume that does not contain all annotated planar graphs. We will show that this is equivalent to the fact that there exists some constant such that all annotated graphs in have bidimensionality at most . First, , in which all vertices are red, is planar and has bidimensionality . In the other direction, if does not contain all annotated planar graphs, then there is a fixed annotated planar graph . Then, is a minor of for some large enough integer and thus, is a red-minor of . If any graph in has bidimensionality at least , then it contains an annotated graph , which contains as a red-minor by definition. Note that also contains as a red-minor, a contradiction to being closed under taking red-minors. Thus, every annotated graph in has bidimensionality at most . Finally, since the bidimensionality of all annotated graphs in is bounded by some constant , we can use Theorem 8.1 to solve any instance of TERMINAL CYCLABILITY on in |G|^2^{\mathsf{poly}(c)} \subseteq \mathsf{poly}(|G|) time. This shows that TERMINAL CYCLABILITY restricted to is polynomial-time solvable and this concludes the proof.
9 Conclusion
We established a complexity dichotomy for TERMINAL CYCLABILITY on red-minor-closed classes of annotated graphs. The algorithmic side follows from showing that TERMINAL CYCLABILITY parameterized by bidimensionality has the weak irrelevant vertex property and that TERMINAL CYCLABILITY parameterized by treewidth can be solved in single-exponential parameterized time. Combined with the fact that it is known that TERMINAL CYCLABILITY parameterized by bidimensionality does not have the (regular) irrelevant vertex property, this shows that there is a real distinction between the irrelevant vertex property and polynomial-time solvability for TERMINAL CYCLABILITY.
A natural next step is to extend this approach to SPANNING DISJOINT PATHS. Thilikos and Wiederrecht [TW26b] obtain a -time algorithm where . Moreover, they show that a red-minor-closed class has the irrelevant vertex property for this problem if and only if this parameter is bounded. They conjectured that SPANNING DISJOINT PATHS is in XP when parameterized by bidimensionality and the number of prescribed terminal pairs. Our result establishes the corresponding tractability for terminal cycles, but the extension to spanning linkages requires additional ideas. In particular, our mesh rerouting uses the freedom to change the order in which the cycle visits the red vertices. For spanning linkages, the same operation need not preserve the prescribed connections.
Our running time also leaves open the parameterized complexity of TERMINAL CYCLABILITY with respect to bidimensionality. Can the dependence on in the exponent of be improved? In particular, can TERMINAL CYCLABILITY parameterized by bidimensionality be solved in time for some computable function , or can one establish -hardness?
Next, the weak irrelevant vertex property may be useful for other problems as well. Since many problems are known to be solvable in single-exponential parameterized time when parameterized by treewidth, we believe the weak irrelevant vertex property to be a valuable addition to the algorithmic toolkit. As a concrete open problem we pose the following challenge: For which annotated graphs is the following problem ANNOTATED -DELETION polynomial-time solvable whenever the bidimensionality of the input annotated graph is constant? The input to the problem is and an integer and the question is whether there is a set of at most vertices in such that does not contain as a red-minor. The version of the problem without the set is well studied and even the annotated version is known to be fixed-parameter tractable when parameterized by the solution size [PTW26]. However, the argument carries unspecified and potentially very large parametric dependencies through the use of a logic-based meta-algorithm [SST25]. Moreover, the problem need not have the irrelevant vertex property when parameterized by bidimensionality (but ANNOTATED -DELETION parameterized by the solution size has it). We conjecture that there is a large class of annotated connected graphs for which ANNOTATED -DELETION parameterized by bidimensionality is in XP and we believe that the weak irrelevant vertex property might yield constructive algorithms. For disconnected graphs, the problem is NP-hard for bidimensionality one even for consisting of just three vertices and one edge (where contains the vertex not incident to the edge). We leave it as an explicit open problem to identify further problems that have the weak irrelevant vertex property but not the regular irrelevant vertex property.
Bidimensionality is a way to measure the complexity of graph problems with terminals not only by the number of terminals, but also by the structure of the terminals. As bidimensionality generalises the face cover number of planar graphs and DISJOINT PATHS in planar graphs is in XP when parameterized by the face cover number [Sch91], we wonder whether there is a directed analogue of bidimensionality that allows for similar dichotomy results for DIRECTED TERMINAL CYCLABILITY as we showed for TERMINAL CYCLABILITY. Finally, we resolve the challenge from the introduction. A cycle through all seven sins in the instance shown in Figure 2 is shown in Figure 11.

Figure 11: A solution R-cycle for the instance of DOUBLETS from the introduction.
AI disclosure. The main results and ideas are the authors' own and have been found and developed without the use of large language models. The authors take full responsibility for both the content and the presentation. ChatGPT Pro Astra 6.0 was used to proofread the paper before submission, help fix some of the issues it found, and to assist the writing process. Specifically, it was used to draft a first version of the dynamic program in Section 7 and provided a shorter explanation for Theorem 3.9 with subsequent changes in Section 4. It also drafted first versions of the introduction and the conclusion. All these parts were subsequently substantially rewritten by the authors.
References
[AKK+17] Isolde Adler, Stavros G. Kolliopoulos, Philipp Klaus Krause, Daniel Lokshtanov, Saket Saurabh, and Dimitrios M. Thilikos. Irrelevant vertices for the planar disjoint paths problem. Journal of Combinatorial Theory, Series B, 122:815–843, 2017. doi:10.1016/j.jctb.2016.10.001.
[BCH+26] Matthias Bentert, Dario Cavallaro, Amelie Heindl, Ken-ichi Kawarabayashi, Stephan Kreutzer, and Johannes Schröder. The directed disjoint paths problem with congestion. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2291–2315. SIAM, 2026. doi:10.1137/1.9781611978971.82.
[BCKN15] Hans L. Bodlaender, Marek Cygan, Stefan Kratsch, and Jesper Nederlof. Deterministic single exponential time algorithms for connectivity problems parameterized by treewidth. Information and Computation, 243:86–111, 2015. doi:10.1016/j.ic.2014.12.008.
[BFG26] Matthias Bentert, Fedor V. Fomin, and Petr A. Golovach. Tight approximation and kernelization bounds for vertex-disjoint shortest paths. Theory of Computing Systems,
70(1):5, 2026. doi:10.1007/S00224-025-10252-9.
[BHT12] Andreas Björklund, Thore Husfeldt, and Nina Taslaman. Shortest cycle through specified elements. In Proceedings of the 2012 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1747–1753. SIAM, 2012. doi:10.1137/1.9781611973099.139.
[BNRZ23] Matthias Bentert, André Nichterlein, Malte Renken, and Philipp Zschoche. Using a geometric lens to find k-disjoint shortest paths. SIAM Journal on Discrete Mathematics, 37(3):1674–1703, 2023. doi:10.1137/22M1527398.
[BU22] Henning Bruhn and Arthur Ulmer. Packing A-paths of length zero modulo four. European Journal of Combinatorics, 99:103422, 2022. doi:10.1016/j.ejc.2021.103422.
[Car78] Lewis Carroll. Word-Links: A game for two players, or a round game. Oxford, 1878. URL: https://schnark.github.io/lewis-carroll/html/texts/word-links-printed.html.
[CG22] Christophe Crespelle and Petr A. Golovach. Cyclability in graph classes. Discrete Applied Mathematics, 313:147–178, 2022. doi:10.1016/j.dam.2022.01.021.
[CGK+26] Dario Cavallaro, Maximilian Gorsky, Stephan Kreutzer, Dimitrios M. Thilikos, and Sebastian Wiederrecht. Optimal bounds for the k-disjoint paths problem. CoRR, abs/2605.14902, 2026. arXiv:2605.14902, doi:10.48550/arXiv.2605.14902.
[CKK24] Dario Giuliano Cavallaro, Ken-ichi Kawarabayashi, and Stephan Kreutzer. Edge-disjoint paths in Eulerian digraphs. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), pages 704–715. ACM, 2024. doi:10.1145/3618260.3649758.
[CMPP13] Marek Cygan, Dániel Marx, Marcin Pilipczuk, and Michal Pilipczuk. The planar directed k-vertex-disjoint paths problem is fixed-parameter tractable. In Proceedings of the 54th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 197–206. IEEE Computer Society, 2013. doi:10.1109/FOCS.2013.29.
[CNP+22] Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michal Pilipczuk, Johan M. M. van Rooij, and Jakub Onufry Wojtaszczyk. Solving connectivity problems parameterized by treewidth in single exponential time. ACM Transactions on Algorithms, 18(2):17:1–17:31, 2022. doi:10.1145/3506707.
[CT21] Julia Chuzhoy and Zihan Tan. Towards tight(er) bounds for the excluded grid theorem. Journal of Combinatorial Theory, Series B, 146:219–265, 2021. doi:10.1016/j.jctb.2020.09.010.
[DFT12] Frederic Dorn, Fedor V. Fomin, and Dimitrios M. Thilikos. Catalan structures and dynamic programming in H-minor-free graphs. Journal of Computer and System Sciences, 78(5):1606–1622, 2012. doi:10.1016/J.JCSS.2012.02.004.
[DHM+26] Maël Dumas, Jędrzej Hodor, Tomasz Mazur, Piotr Micek, Clément Rambaud, and Giannos Stamoulis. Invitation to torso parameters of annotated graphs. CoRR, abs/2610.25905, 2026. doi:10.48550/arXiv.2610.25905.
[Dir60] Gabriel A. Dirac. In abstrakten Graphen vorhandene vollständige 4-Graphen und ihre Unterteilungen. Mathematische Nachrichten, 22:61–85, 1960. doi:10.1002/mana.
19600220107.
[Eil98] Tali Eilam-Tzoreff. The disjoint shortest paths problem. Discrete Applied Mathematics, 85(2):113–138, 1998. doi:10.1016/S0166-218X(97)00121-2.
[FHW80] Steven Fortune, John E. Hopcroft, and James Wyllie. The directed subgraph homeomorphism problem. Theoretical Computer Science, 10:111–121, 1980. doi:10.1016/0304-3975(80)90009-2.
[GJT76] Michael R. Garey, David S. Johnson, and Robert E. Tarjan. The planar Hamiltonian circuit problem is NP-complete. SIAM Journal on Computing, 5(4):704–714, 1976. doi:10.1137/0205049.
[Gou09] Ronald J. Gould. A look at cycles containing specified elements of a graph. Discrete Mathematics, 309(21):6299–6311, 2009. doi:10.1016/j.disc.2008.04.017.
[GPW26] Maximilian Gorsky, Evangelos Protopapas, and Sebastian Wiederrecht. Quickly excluding an annotated planar graph. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming (ICALP), pages 99:1–99:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPICS.ICALP.2026.99.
[GRZ25] Harmender Gahlawat, Abhishek Rathod, and Meirav Zehavi. (Almost-)optimal FPT algorithm and kernel for T-cycle on planar graphs. In Proceedings of the 52nd International Colloquium on Automata, Languages, and Programming (ICALP), volume 334, pages 82:1–82:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPICS.ICALP.2025.82.
[GST23] Petr A. Golovach, Giannos Stamoulis, and Dimitrios M. Thilikos. Combing a linkage in an annulus. SIAM Journal on Discrete Mathematics, 37(4):2332–2364, 2023. doi: 10.1137/22M150914X.
[GSTW26] Maximilian Gorsky, Giannos Stamoulis, Dimitrios M. Thilikos, and Sebastian Wiederrecht. Catching rats in H-minor-free graphs. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4644–4659. SIAM, 2026. doi:10.1137/1.9781611978971.169.
[GSW25] Maximilian Gorsky, Michal T. Seweryn, and Sebastian Wiederrecht. Polynomial bounds for the graph minor structure theorem. In Proceedings of the 66th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 1961–1978. IEEE Computer Society, 2025. doi:10.1109/FOCS63196.2025.00104.
[GSW26] Maximilian Gorsky, Michal T. Seweryn, and Sebastian Wiederrecht. The price of homogeneity is polynomial. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming (ICALP), pages 100:1–100:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPICS.ICALP.2026.100.
[HLMR26] Jędrzej Hodor, Hoang La, Piotr Micek, and Clément Rambaud. Quickly excluding an apex-forest. SIAM Journal on Discrete Mathematics, 40(1):282–307, 2026. doi: 10.1137/24M1659248.
[JS24] Bart M. P. Jansen and Céline M. F. Swennenhuis. Steiner tree parameterized by multiway cut and even less. In Proceedings of the 32nd Annual European Symposium on Algorithms (ESA), pages 76:1–76:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik,
- doi:10.4230/LIPIcs.ESA.2024.76.
[Kar72] Richard M. Karp. Reducibility among combinatorial problems. In Complexity of Computer Computations, pages 85–103. Plenum Press, 1972. doi:10.1007/978-1-4684-2001-2_9.
[Kaw08] Ken-ichi Kawarabayashi. An improved algorithm for finding cycles through elements. In Proceedings of the 13th International Conference on Integer Programming and Combinatorial Optimization (IPCO), pages 374–384. Springer, 2008. doi:10.1007/978-3-540-68891-4_26.
[KKR12] Ken-ichi Kawarabayashi, Yusuke Kobayashi, and Bruce A. Reed. The disjoint paths problem in quadratic time. Journal of Combinatorial Theory, Series B, 102(2):424–435, 2012. doi:10.1016/j.jctb.2011.07.004.
[Kor23] Tuukka Korhonen. A single-exponential time 2-approximation algorithm for treewidth. SIAM Journal on Computing, pages FOCS21-174–FOCS21-194, 2023. doi:10.1137/22M147551X.
[KPS24] Tuukka Korhonen, Michal Pilipczuk, and Giannos Stamoulis. Minor containment and disjoint paths in almost-linear time. In Proceedings of the 65th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 53–61. IEEE Computer Society, 2024. doi:10.1109/FOCS61266.2024.00014.
[KTW20] Ken-ichi Kawarabayashi, Robin Thomas, and Paul Wollan. Quickly excluding a non-planar graph. CoRR, abs/2010.12397, 2020. arXiv:2010.12397, doi:10.48550/arXiv.2010.12397.
[Loc21] William Lochet. A polynomial time algorithm for the k-disjoint shortest paths problem. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 169–178. SIAM, 2021. doi:10.1137/1.9781611976465.12.
[LSZ20] Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Efficient graph minors theory and parameterized algorithms for (planar) disjoint paths. In Treewidth, Kernels, and Algorithms - Essays Dedicated to Hans L. Bodlaender on the Occasion of His 60th Birthday, pages 112–128. Springer, 2020. doi:10.1007/978-3-030-42071-0_9.
[MSW17] Dániel Marx, Paul D. Seymour, and Paul Wollan. Rooted grid minors. Journal of Combinatorial Theory, Series B, 122:428–437, 2017. doi:10.1016/j.jctb.2016.07.003.
[PPTW24] Christophe Paul, Evangelos Protopapas, Dimitrios M. Thilikos, and Sebastian Wiederrecht. Obstructions to Erdős-Pósa dualities for minors. In Proceedings of the 65th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 31–52. IEEE Computer Society, 2024. doi:10.1109/FOCS61266.2024.00013.
[PPTW25] Christophe Paul, Evangelos Protopapas, Dimitrios M. Thilikos, and Sebastian Wiederrecht. The local structure theorem for graph minors with finite index. CoRR, abs/2507.02769, 2025. arXiv:2507.02769, doi:10.48550/arXiv.2507.02769.
[PTW26] Evangelos Protopapas, Dimitrios M. Thilikos, and Sebastian Wiederrecht. Colorful minors. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming (ICALP), pages 149:1–149:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPICS.ICALP.2026.149.
[Ree97] Bruce A. Reed. Tree width and tangles: A new connectivity measure and some applications. In Surveys in Combinatorics, pages 87–162. Cambridge University Press, 1997. doi:10.1017/CB09780511662119.006.
[RS86] Neil Robertson and Paul D. Seymour. Graph minors. V. Excluding a planar graph. Journal of Combinatorial Theory, Series B, 41(1):92–114, 1986. doi:10.1016/0095-8956(86)90030-4.
[RS91] Neil Robertson and Paul D. Seymour. Graph minors. X. Obstructions to tree-decomposition. Journal of Combinatorial Theory, Series B, 52(2):153–190, 1991. doi:10.1016/0095-8956(91)90061-N.
[RS95] Neil Robertson and Paul D. Seymour. Graph minors. XIII. The disjoint paths problem. Journal of Combinatorial Theory, Series B, 63(1):65–110, 1995. doi:10.1006/jctb.1995.1006.
[RS99] Neil Robertson and Paul D. Seymour. Graph minors. XVII. Taming a vortex. Journal of Combinatorial Theory, Series B, 77(1):162–210, 1999. doi:10.1006/jctb.1999.1919.
[RS03] Neil Robertson and Paul D. Seymour. Graph minors. XVI. Excluding a non-planar graph. Journal of Combinatorial Theory, Series B, 89(1):43–76, 2003. doi:10.1016/S0095-8956(03)00042-X.
[RS09] Neil Robertson and Paul D. Seymour. Graph minors. XXI. Graphs with unique linkages. Journal of Combinatorial Theory, Series B, 99(3):583–616, 2009. doi:10.1016/j.jctb.2008.08.003.
[RS12] Neil Robertson and Paul D. Seymour. Graph minors. XXII. Irrelevant vertices in linkage problems. Journal of Combinatorial Theory, Series B, 102(2):530–563, 2012. doi:10.1016/j.jctb.2007.12.007.
[Sch91] Alexander Schrijver. Disjoint homotopic paths and trees in a planar graph. Discrete & Computational Geometry, 6:527–574, 1991. doi:10.1007/BF02574704.
[SST24] Ignasi Sau, Giannos Stamoulis, and Dimitrios M. Thilikos. A more accurate view of the flat wall theorem. Journal of Graph Theory, 107(2):263–297, 2024. doi:10.1002/jgt.23121.
[SST25] Ignasi Sau, Giannos Stamoulis, and Dimitrios M. Thilikos. Parameterizing the quantification of CMSO: Model checking on minor-closed graph classes. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3728–3742. SIAM, 2025. doi:10.1137/1.9781611978322.124.
[TW25] Dimitrios M. Thilikos and Sebastian Wiederrecht. The graph minor structure theorem through bidimensionality. CoRR, abs/2306.01724, 2025. arXiv:2306.01724, doi:10.48550/arXiv.2306.01724.
[TW26a] Dimitrios M. Thilikos and Sebastian Wiederrecht. Excluding surfaces as minors in graphs. CoRR, abs/2601.19230, 2026. arXiv:2601.19230, doi:10.48550/arXiv.2601.19230.
[TW26b] Dimitrios M. Thilikos and Sebastian Wiederrecht. Spanning paths and cycles: Structural limitations of the irrelevant vertex technique. CoRR, abs/2607.09342, 2026. doi:10.48550/ARXIV.2607.09342.
[Wah13] Magnus Wahlström. Abusing the Tutte matrix: An algebraic instance compression for the K-set-cycle problem. In Proceedings of the 30th International Symposium on Theoretical Aspects of Computer Science (STACS), pages 341–352. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2013. doi:10.4230/LIPIcs.STACS.2013.341.