How Many Lines to Paint the City: Exact Edge-Cover in Temporal Graphs

Argyrios Deligkas, Michelle Döring, Eduard Eiben, Tiger-Lily Goldsmith, George Skretas, Georg Tennigkeit

TL;DR

This paper introduces and thoroughly analyzes the Temporal Exact Edge-Cover problem, which models how to efficiently route a minimal fleet of vehicles to satisfy a dynamic schedule of connections. The authors map out a complete computational complexity landscape, showing that while finding optimal paths or trails is generally intractable for three or more journeys, using "walks" opens up surprising pockets of polynomial-time tractability.

What Problem Does This Paper Address?

In logistics and transportation planning, minimizing resources—like the number of trains or delivery vehicles needed to cover a set of scheduled trips—is a critical challenge. Because these connections are inherently time-specific, static graph models fall short.

To capture this dynamic nature, the authors use temporal graphs, where edges (connections) appear only at specific time steps. They introduce the Temporal Exact Edge-Cover problem: Can we cover every temporal edge in a graph exactly once using at most $k$ temporal journeys?

To make the model realistic, they evaluate this problem across four distinct dimensions:

  1. Journey Type: Paths (no vertex revisited), Trails (no static edge revisited), or Walks (no constraints).
  2. Strictness: Strict (at most one edge per time step) vs. Non-strict (multiple edges allowed per time step).
  3. Graph Type: Directed vs. Undirected.
  4. Terminals: Fixed (start and end points specified) vs. Unfixed.

Methods

The paper is purely theoretical, utilizing rigorous algorithmic design and computational complexity analysis.

  • For positive results (Polynomial time): The authors design linear-time greedy algorithms for single-journey covers ($k=1$). For two journeys ($k=2$), they cleverly reduce the problem to 2-SAT or XOR(2)SAT. For more complex tractable cases (like walks with fixed terminals), they employ dynamic programming and network circulation flow techniques.
  • For negative results (NP-completeness/W[2]-hardness): The authors construct intricate gadget-based reductions from classic hard problems, including Not-All-Equal SAT (NAE-SAT), 3-SAT, and Hitting Set.

Datasets

Not discussed in the paper. The work is entirely theoretical and does not use empirical datasets or benchmarks.

Key Insights and Ideas

  • The Path/Walk Divergence: For $k \ge 3$, there is a stark divergence in complexity. Finding exact covers using paths or trails is universally NP-complete and completely inapproximable. Conversely, allowing walks (where vertices and edges can be revisited) makes the problem solvable in polynomial time for any constant $k$.
  • The Power of Strictness: In directed graphs with arbitrary $k$, strict walks are solvable in linear time because the arrow of time combined with edge directions uniquely forces the layout of the journeys. Making the walks non-strict introduces choices (like looping around a cycle at a single time step), which immediately bumps the complexity up to NP-complete and W[2]-hard.
  • Fixed Terminals Simplify Walks: Specifying exactly where journeys must start and end removes the algorithmic headache of deciding where to deploy vehicles. This constraint flips several intractable walk variants into the polynomial-time column via flow network formulations.

Key Results

The paper provides a comprehensive dichotomy of results for $k \ge 3$:

  • Paths and Trails: Always NP-complete to solve exactly, and they admit no constant-factor approximation algorithm unless $P = NP$.
  • Walks (Unfixed Terminals): Solvable in $O(n^{O(k)})$ time when $k$ is constant. For arbitrary $k$, strict walks on directed graphs are in P, while non-strict directed walks and all undirected walks are NP-complete.
  • Walks (Fixed Terminals): Non-strict walks become polynomial-time solvable on both directed and undirected graphs.

Limitations and Future Work

While this paper elegantly maps out the complexity landscape, a few open doors remain:

  1. The Undirected Strict Walk Gap: For arbitrary numbers of edges per time step, the exact complexity of strict walks on undirected graphs with fixed terminals remains an open question.
  2. Approximability of Walks: While paths and trails are proven to be inapproximable, the approximation bounds for hard walk variants have yet to be explored.
  3. Non-Exact Covers: The "exact" constraint means each edge is traversed exactly once. Exploring a non-exact variant—where vehicles can "deadhead" (traverse an already-covered edge to get to the next destination)—would be highly relevant to real-world logistics.

Summary updated

Abstract

Logistics and transportation networks require a large amount of resources to realize necessary connections between locations and minimizing these resources is a vital aspect of planning research. Since such networks have dynamic connections that are only available at specific times, intricate models are needed to portray them accurately. In this paper, we study the problem of minimizing the number of resources needed to realize a dynamic network, using the temporal graphs model. In a temporal graph, edges appear at specific points in time. Given a temporal graph and a natural number k, we ask whether we can cover every temporal edge exactly once using at most k temporal journeys; in a temporal journey consecutive edges have to adhere to the order of time. We conduct a thorough investigation of the complexity of the problem with respect to four dimensions: (a) whether the type of the temporal journey is a walk, a trail, or a path; (b) whether the chronological order of edges in the journey is strict or non-strict; (c) whether the temporal graph is directed or undirected; (d) whether the start and end points of each journey are given or not. We almost completely resolve the complexity of all these problems and provide dichotomies for each one of them with respect to k.
BibTeX
@inproceedings{deligkas2025how,
  author = {Argyrios Deligkas and Michelle Döring and Eduard Eiben and Tiger-Lily Goldsmith and George Skretas and Georg Tennigkeit},
  title = {{How Many Lines to Paint the City: Exact Edge-Cover in Temporal Graphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i25.34850},
}
Figure