Minimum Temporal Spanners in Happy Graphs

Arnaud Casteigts, Hendrik Molter, Meirav ZehaviarXiv 2026

TL;DR

This paper unifies and strengthens our understanding of the computational complexity of finding minimum temporal spanners. The authors prove that the problem remains NP-hard even in "happy graphs"—the most restrictive temporal graph setting where edges appear only once and vertices handle at most one edge at a time. To counter this pervasive hardness, they introduce the first non-trivial positive algorithmic result for general underlying topologies: an XP-algorithm parameterized by the vertex cover number.

What Problem Does This Paper Address?

In traditional, static graphs, finding a minimum connected spanning subgraph is a solved problem: any standard minimum spanning tree algorithm will easily find a skeleton of $n-1$ edges. However, in temporal graphs—where edges appear and disappear over discrete time steps—connectivity is dynamic. Vertices must reach each other via "time-respecting paths" (paths whose edge traversal times are non-decreasing or strictly increasing).

Finding a minimum temporal spanner (a subset of edges that preserves this temporal connectivity) is notoriously difficult. Over the last decade, various research groups proved NP-hardness for different flavors of the problem. However, these results were fragmented and incomparable: some applied only to strict paths, others to non-strict paths; some minimized total edge appearances (labels), while others minimized unique underlying edges.

The authors address this fragmentation by focusing on happy graphs (graphs that are simultaneously simple—edges appear only once, and proper—vertices are incident to at most one edge at a time). In happy graphs, all these conflicting definitions collapse into the same thing, making it the ultimate testing ground for a unified hardness proof.

Existing and new hardness results for Minimum Temporal Spanner.

Methods

1. Unified NP-Hardness Reduction

The authors design a polynomial-time reduction from 3-SAT to a simple, proper temporal graph. The reduction maps variables and clauses to intricate temporal gadgets. Crucially, they employ a label-perturbation technique: they first build a simple but non-proper graph, sort the edges arbitrarily, and then spread the time labels out into unique ordinal positions. This transforms the graph into a fully "happy" graph without breaking the underlying temporal reachability logic.

Illustration of the temporal graph reduction from 3-SAT.

2. Parameterized Tractability via Templates

To find a pocket of tractability, the authors turn to parameterized complexity. They introduce the VC-Tree Lemma, proving that any minimum temporal spanner in a happy graph is composed of a small number of temporal out-trees rooted within a vertex cover $X$, plus at most one extra edge for each vertex outside of $X$.

Using this structural constraint, they design a "guess-and-check" algorithm. Instead of searching an exponential space of subgraphs, the algorithm guesses the "internal structure" of these out-trees using abstract graph templates, maps them to the actual vertices, and checks for validity.

Datasets

Not discussed in the paper. This work is purely theoretical and algorithmic, so no empirical datasets or benchmarks were used.

Key Insights and Ideas

  • The "Happy" Simplification: The core conceptual breakthrough is realizing that in simple and proper temporal graphs, the distinction between strict and non-strict paths disappears, and the Min-Edge and Min-Label minimization criteria coincide. Proving hardness here simultaneously resolves the complexity for all four combinations of settings.
  • The VC-Tree Lemma: This structural insight reveals that minimum temporal spanners are highly organized around the graph's vertex cover. It provides a blueprint for bypassing the standard exponential barriers of temporal graphs, showing that the problem is solvable in polynomial time if the underlying graph has a constant-size vertex cover.

Key Results

  • Unified Hardness: Proved that Minimum Temporal Spanner is NP-hard on happy temporal graphs, successfully resolving a prominent open question in temporal graph theory.
  • Algorithmic Breakthrough: Delivered the first positive algorithmic result for temporal spanners on general underlying graphs (graphs that aren't just static trees), establishing an XP-algorithm with a running time of $n^{O(d^2)}$, where $d$ is the vertex cover number.
  • Parameterized Boundaries: Proved that if you relax the "happy" requirement, the problem becomes $W[1]$-hard when parameterized by the feedback vertex number, mapping a clear boundary between tractable and intractable parameter choices.

Limitations and Future Work

While this paper closes a major chapter on hardness, it opens several multi-dimensional algorithmic gaps:

  1. Generalizing Tractability: Can the XP-algorithm parameterized by the vertex cover number be extended to non-happy temporal graphs?
  2. Pushing for FPT: Can the $n^{O(d^2)}$ XP-algorithm be optimized into a Fixed-Parameter Tractable (FPT) algorithm (e.g., $f(d) \cdot n^{O(1)}$)?
  3. Exploring Smaller Parameters: Is the problem tractable in happy graphs when using a smaller parameter, such as the feedback vertex number? (The authors only proved $W[1]$-hardness for the non-happy setting).

Summary updated

Abstract

Temporal graphs have edge sets that change over discrete time steps. Such graphs are temporally connected (TC) if all pairs of vertices can reach each other using paths that traverse the edges in a time-respecting way (temporal paths). Given a TC temporal graph it, a natural question is to find a minimum spanning subgraph of it that preserves temporal connectivity. These structures, known as temporal spanners, are fundamental and their properties (especially size) have been studied thoroughly in the past decade. In particular, the problem of minimizing the size of a temporal spanner is known to be hard. However, the existing results establish hardness for several incomparable settings and versions of the problem. In this article, we unify and strengthen these results by showing that this problem is NP-hard even on temporal graphs that are simple and proper (also known as "happy"), i.e., where every edge appears only one time, and a vertex cannot be incident to several edges simultaneously. Proving hardness in this extremely restricted setting implies, at once, that the problem is NP-hard for all the previously considered settings and versions of the problem, resolving Open Question 4 in [Casteigts et al. TCS, 2024]. We also initiate the parameterized study of this problem, showing that in the happy setting, the problem can be solved in polynomial time if the underlying graph has a constant-size vertex cover, this result being actually the first positive result on temporal spanners in general. We also show that in the non-happy setting, the problem is W[1]-hard when parameterized by the feedback vertex number of the underlying graph.
BibTeX
@misc{casteigts2026minimum,
  author = {Arnaud Casteigts and Hendrik Molter and Meirav Zehavi},
  title = {{Minimum Temporal Spanners in Happy Graphs}},
  year = {2026},
  eprint = {2604.24227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.24227},
}

Loading related content...

Figure