arXiv:2608.25530cs.DSAug 2026

Manuscript Offprint

arXiv:2608.25530

Not All Degree Constraints Are Created Equal when Computing Spanning Trees

Narek Bojikian, Alexander Firbas, Robert Ganian, Hung P. Hoang, Krisztina Szilagyi

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

Abstract

We study the computation of minimum spanning trees subject to local degree constraints. Recent work (ICALP 2026) established that three natural formalizations of this problem share the exact same parameterized complexity under standard structural graph parameters, including treewidth, pathwidth and clique-width. This applies to the cases where every vertex has a single target degree (SPECIFIED DEGREE MST), or a degree upper bound (BOUNDED DEGREE MST), or is equipped with a set of admissible degrees (SET OF DEGREES MST).

In this paper, we investigate these problems under more restrictive parameterizations and reveal that their complexity landscapes fundamentally diverge on bounded-treedepth graphs. Specifically, we prove that the former two problems are fixed-parameter tractable when parameterized by the treedepth of the input graph. In sharp contrast, we show that SET OF DEGREES MST remains W[1]-hard parameterized by treedepth, even when combined with the feedback vertex number (i.e., deletion distance to treewidth 1). Finally, we show that this divergence seems to be specific to treedepth: we exclude an analogous W[1]-hardness result for SET OF DEGREES MST w.r.t. the vertex cover number and also rule out fixed-parameter algorithms for the former two problems w.r.t. deletion distance to constant pathwidth.

2012 ACM Subject Classification Theory of computation → Parameterized complexity and exact algorithms

Keywords and phrases degree-constrained spanning trees, parameterized complexity, treedepth

Funding Alexander Firbas: FWF Project 10.55776/Y1329 and WWTF Project 10.47379/ICT22029

Robert Ganian: FWF Project 10.55776/Y1329 and WWTF Project 10.47379/ICT22029

Hung P. Hoang: FWF Projects 10.55776/Y1329 and ESP1136425

Krisztina Szilágyi: Supported under the project Robotics and advanced industrial production (reg. no. CZ.02.01.01/00/22_008/0004590) and CTU Global Postdoc Fellowship Program.

1 Introduction

The computation of minimum-cost spanning trees is a foundational topic in computer science, with classical methods like Prim's and Kruskal's algorithms serving as staple introductions to graph theory. Yet, in some settings we require spanning trees which possess additional properties (beyond connectivity and minimum weight). In this article, we build on the recent work of Bojikian, Firbas, Ganian, Hoang and Szilágyi who investigated three natural formalizations of the task of finding minimum-cost spanning trees which satisfy prescribed degree constraints [2]:

Not All Degree Constraints Are Created Equal when Computing Spanning Trees

Given a graph G with polynomially-bounded edge weights and a constraint function D:V(G)→2ND: V(G) \to 2^{\mathbb{N}}, our aim is to determine whether there is a spanning tree T of G such that for each v∈V(G)v \in V(G), deg⁡T(v)∈D(v)\deg_T(v) \in D(v)—and if the answer is positive, output one of minimum cost. Depending on the form of the constraint function, we distinguish between the following three computational problems:

  1. in SET OF DEGREES MINIMUM SPANNING TREE (MST), D maps each vertex to a set of integers;

  2. in BOUNDED DEGREE MST, all sets in the image of DD are of the form {1,…,d}\{1,\ldots,d\} for some d∈Nd\in\mathbb{N};

  3. in SPECIFIED DEGREE MST, the image of D is a set of singletons.

Although these problems form a hierarchy from most to least general 1^{1}, each constraint type is fundamentally important. BOUNDED DEGREE MST serves as a crucial base case for the Thin Tree Conjecture [13, 18] and is widely studied in approximation settings [8, 14, 24]. Meanwhile, SPECIFIED and SET OF DEGREES MST act as natural counterparts to the classical f-FACTOR and GENERAL f-FACTOR problems [25, 5, 9, 10], whose NP-hard connected variants are also well-established [7, 4, 11].

The aforementioned preceding paper [2] established a comprehensive classification of fine-grained running times for these degree-constrained spanning tree problems across various structural graph parameters under the Exponential Time Hypothesis (ETH) and its strong variant (SETH) [16, 17]. Remarkably, the authors demonstrated that all three problems share the exact same complexity for each parameter considered in their work: their lower bounds apply to the most restrictive SPECIFIED DEGREE MST, while their algorithmic upper bounds accommodate the most general SET OF DEGREES MST. For clique-width (cw), they provided an ETH-tight nO(cw)n^{\mathcal{O}(\text{cw})}-time algorithm on unweighted graphs. For treewidth (tw) and pathwidth (pw), they established single-exponential XP-algorithms along with an (almost-matching) SETH lower bound which, among others, excludes fixed-parameter tractability. Finally, they proved that when parameterized by cutwidth (ctw), the problems admit a SETH-tight O∗(3ctw(G))\mathcal{O}^{*}(3^{\text{ctw}(G)})-time algorithm.

Contributions. In this article, we revisit these problems under the lens of more restrictive parameterizations than treewidth. In particular, we focus on treedepth, a fundamental structural parameter that characterizes how close a graph is to a star forest. Perhaps the most intuitive and algorithmically useful characterization of the treedepth td(G) of a graph G is via recursive vertex elimination: it is exactly the minimum depth of a recursion tree in which, at each step, one deletes a single vertex and recurses independently on the newly formed connected components until each such component is a singleton. Because graphs with bounded treedepth cannot contain long paths, bounded treedepth constitutes a strictly stronger restriction than bounded treewidth. This—along with its fundamental ties to graph sparsity [22] and space-efficient algorithms [23, 21], including more recent breakthroughs on fine-grained logic-based meta theorems [1]—makes it a natural parameterization that has been successfully employed for a variety of problems.

As our first result, we show that treedepth can indeed be leveraged to push the boundaries of tractability for some variants of degree-constrained spanning trees:

1^{1} SPECIFIED DEGREE MST can easily be reduced to BOUNDED DEGREE MST without changing G [2].

▶ Theorem 1. BOUNDED DEGREE MST is in FPT w.r.t. the treedepth of G.

The proof of Theorem 1 follows by encoding the problem into an Integer Linear Program (ILP) which is “well-structured”: both the multiplicative coefficients and the treedepth of the ILP’s dual graph are bounded by a function of td(G)\text{td}(G). It is known that such instances of ILP admit a fixed-parameter algorithm [19, Theorem 6]; however, encoding acyclicity and connectivity in such an ILP is challenging and our approach relies on insights into the structure of hypothetical solutions and a notion of rank inspired by graphic matroids.

With the above theorem in hand and recalling the previous results on the three problems, one could hope for a way of lifting tractability also to SET OF DEGREES MST—either via a more refined ILP encoding or via different techniques entirely. A natural stepping stone in this direction would be to attack instances where each vertex must have one of two possible degrees in the spanning tree. Surprisingly, we show that such an algorithm is impossible under current complexity assumptions, and this holds even on graphs which are “almost trees” (in the sense of having small feedback vertex number). This means that—unlike for all parameters studied in the preceding work—which problem variant we target actually matters on bounded-treedepth graphs.

▶ Theorem 2. SET OF DEGREES MST is W[1]-hard w.r.t. the treedepth plus the feedback vertex number of G, even on unweighted graphs with ∣D(v)∣≤2|D(v)| \leq 2 for each vertex v.

At the heart of the proof of Theorem 2 lies a carefully constructed gadget that can model a choice between either summing up two k-dimensional integer vectors or keeping one of the vectors intact. This gadget then allows us to reduce from a known W[1]-hard variant of the MULTIDIMENSIONAL SUBSET SUM problem [12].

We complement the above results by showing that the diverging behavior between SET OF DEGREES MST and the “simpler” two problem variants seems to occur specifically on treedepth. On one hand, when parameterized by the vertex cover number—a more restrictive parameterization than treedepth which merely measures the vertex deletion distance to singleton components—we can obtain tractability for the former case at least on unweighted graphs, by reducing the problem to a generalization of (B-)matching [15]:

▶ Theorem 3. On unweighted graphs, SET OF DEGREES MST is fixed-parameter tractable w.r.t. the vertex cover number.

On the other hand, as SET OF DEGREES MST is W[1]-hard w.r.t. the feedback vertex number (which is the vertex deletion distance to treewidth ≤1\leq 1), one might wonder whether the vertex deletion distance to bounded-treewidth or bounded-pathwidth graphs is an alternative structural measure where the parameterized complexity of the problems differ. We show that this is not the case via a separate lower bound:

▶ Theorem 4. SPECIFIED DEGREE MST is W[1]-hard when parameterized by the vertex deletion distance to graphs of pathwidth ≤4\leq 4 and treewidth ≤3\leq 3, even on unweighted graphs.

An overview of our results is provided in Table 1.

Paper Organization. In Section 2, we introduce notation that will be used throughout the paper. In Section 3, we describe an FPT algorithm for BOUNDED DEGREE MST parameterized by treedepth. Section 4 shows W[1]W[1]-hardness of SET OF DEGREES MST parameterized by feedback vertex number plus treedepth. In Section 5, we prove that SPECIFIED DEGREE MST is W[1]W[1]-hard w.r.t. vertex deletion distance to graphs of constant

Not All Degree Constraints Are Created Equal when Computing Spanning Trees

ParameterSPECIFIED DEGREE MSTSET OF DEGREES MST
TreedepthFPT (Thm. 1)W[1]W\left[1\right]-hard (Thm. 2)
Vertex cover numberFPT (Thm. 1)FPT∗(Thm. 3)\mathrm{FPT}^{*}\left(\mathrm{Thm.~3}\right)
Deletion distance to pw ≤4\leq 4W[1]W\left[1\right]-hard (Thm. 4)W[1]W\left[1\right]-hard (Thm. 4)

Table 1 Overview of our results for stronger structural restrictions. The vertex-cover algorithm marked by * is for edge-unweighted instances.

pathwidth. In Section 6 we show that SET OF DEGREES MST is in FPT parameterized by vertex cover on unweighted graphs. We conclude with possible directions for further research in Section 7.

References (23)