Better Late, Then? The Hardness of Choosing Delays to Meet Passenger Demands in Temporal Graphs
Abstract
In train networks, carefully-chosen delays may be beneficial for certain passengers, who would otherwise miss some connection. Given a simple (directed or undirected) temporal graph and a set of passengers (each specifying a starting vertex, an ending vertex, and a desired arrival time), we ask whether it is possible to delay some of the edges of the temporal graph to realize all the passengers’ demands. We call this problem DelayBetter (DB), and study it along with two variants: in -DelayBetter, each delay must be of at most ; in (-)Path DB, passengers also fully specify the vertices they should visit on their journey. On the positive side, we give a polynomial-time algorithm for Path DB and -Path DB, and obtain as a corollary a polynomial-time algorithm for DB and -DB on trees. We also provide an fpt algorithm for both problems parameterized by the size of the graph’s Feedback Edge Set together with the number of passengers. On the negative side, we show NP-completeness of (-)DB on bounded-degree temporal graphs even when the lifetime is , and of (-)DB on bounded-degree planar temporal graphs of lifetime . Our results complement previous work studying reachability problems in temporal graphs with delaying operations. This is to our knowledge the first such problem in which the aim is to facilitate travel between specific points (as opposed to facilitating or impeding a broadcast from one or many sources).
Keywords and phrases:
Temporal Graphs, Computational Complexity, Delay Management, Train NetworksFunding:
David C. Kutner: revised this work while a Research Assistant at the University of Glasgow funded by EPSRC grant EP/T004878/1, Multilayer Algorithmics to Leverage Graph Structure (MultilayerALGS).Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Mathematics of computing Graph theory ; Theory of computation Computational complexity and cryptographyAcknowledgements:
The authors would like to thank the anonymous reviewers whose insightful comments led to several improvements.Editors:
Kitty Meeks and Christian ScheidelerSeries and Publisher:

1 Introduction
In the first half of 2024, punctuality of Deutsche Bahn’s long distance trains was 62.7% [8]. Disruptions to train networks often result in passengers arriving later than planned or not at all. Whenever a train is late and the passengers of this train would miss a connecting train, there are two choices: either, the second train departs on time, meaning that the passengers of the first train miss their connection, or the second train waits, meaning that the passengers can make the connection, at the cost of this train now also being late. The problem of deciding whether (and by how much) such services should wait is the Delay Management problem, well studied in Operations Research.
Separately, the field of temporal graph theory provides a general, rigorous mathematical framework with which to investigate the complexity due to the intrinsically dynamic properties of certain real-world networks. Briefly, a temporal graph is one whose edge set changes over time. Much work has been devoted to modification problems of the form “Given a temporal graph , apply some (delaying or other) operations to satisfy some reachability property” (see Table 1), but interestingly the problem of managing delays to ensure that specific passengers arrive at their destination on time has yet to be studied in this framework. Figure 1 shows a simple example of a temporal graph illustrating such a scenario.
The present work aims to study the practically interesting problem of Delay Management through the lens of temporal graph theory. We introduce the decision problem DelayBetter (or simply DB) which asks, given a temporal graph and a collection of passengers on its vertices, each with a desired destination and arrival time, whether it is feasible to delay some edges of the graph to satisfy each of the passengers. We also consider variants of the problem: Path-DB, where passengers must be routed along specific edges prescribed in the input, -DB, where each edge can be delayed by at most some fixed , and -Path-DB combines both constraints. We present (parameterized) tractability and hardness results for these problems, including on structurally restricted graph classes.
Problem | Operation | Restriction | Reachability condition | Additional inputs |
ReachFast [6] | Shift | N/A | sources , to be minimized | |
TRLP [10] | Shift | up to edges, by up to each | designated source , | |
MinReachDelay [25] | Delay | up to time-edges by exactly each | sources , | |
MinReach [7] | Delay | up to time-edges by up to each | sources , | |
MaxMinTaRDiS [21] | Choose time-labels | lifetime is | ||
(-)DelayBetter | Delay | (by up to per edge) | () | |
(-)Path DB | Delay | (by up to per edge) | as above along specified path | () |
1.1 Problem setting
We denote the integer interval , and say a graph is cubic if all vertices in the graph have degree 3. We now give some definitions from temporal graph theory.
Definition 1 (Temporal graph, temporal path).
A temporal graph consists of a static graph (also called its footprint, denoted ) and a temporal assignment . The lifetime of a temporal graph is the maximum time assigned to any edge by , and the time-edges of a temporal graph are . A temporal path is a path in whose edges have strictly increasing time-labels, and the arrival time of a temporal path is the time-label of its last edge.
We take this opportunity to note a more general definition of temporal graphs is often studied, where each edge may have multiple time labels (non-simple temporal graphs). Another variant applies a notion of temporal reachability which allows for the traversal of consecutive edges at nondecreasing (rather than strictly increasing) times (non-strict temporal paths). For a discussion of these different models (in the undirected setting only) we refer the interested reader to [5]. Hardness results from the simple setting generalize to the non-simple setting, and tractability for the non-simple setting may be applied to the simple setting. In the present work, we focus exclusively on strict temporal paths and simple (directed or undirected) temporal graphs.
Definition 2 (Delaying).
We say that a temporal assignment is a delaying of an assignment if for every . If , we say that is delayed by in , and that is a -delaying of if every is delayed by at most in (hence a -delaying is also a -delaying).
We can now introduce our protagonists:
(-)DelayBetter
Instance: Temporal graph , demands (, ).
Question: Does there exist a (-)delaying of such that for each there is a temporal path from to with arrival time at most in ?
(-)Path DelayBetter
Instance: Temporal graph , demands (, ).
Question: Does there exist a (-)delaying of such that for each there is a temporal path from to in with arrival time at most and footprint ?
We say a temporal graph is planar if its footprint is planar, and directed (resp. undirected) if is directed (resp. undirected). We use the shorthand DB for our problems, referring to, for example, 3-DB, Path DB, or DB. For a demand , we denote . Restriction of, or parameterization by, the lifetime is often leveraged to obtain tractability of temporal graph problems. In our case, we denote by the initial lifetime (that of the temporal graph before delays are applied), and by the latest arrival time required by any single demand – that is, . We call final lifetime because it upper-bounds the lifetime of the temporal graph (after delays are applied): any time-edge delayed beyond in some feasible solution could instead be delayed to instead (or not at all), since it will not be used by any passengers. For the same reason, we may assume without loss that is at most .
1.2 Related work
Temporal Graphs
As we touched on earlier, modifying (or choosing) to optimize a notion of reachability is a well-studied problem in temporal graph theory. Broadly, problems in this paradigm may either aim to worsen or improve the input temporal graph’s connectedness. Problems in the first category (including MinReach [7] and MinReachDelay [25]) are typically motivated by practical cases where spread is undesired, such as epidemics. In the case of transportation networks, where connectedness is desired, the second category (which contains TRLP [10] and MaxMinTaRDiS [21]) is of greater relevance. Of course, if the delays are controlled by an adversary, the opposite motivation becomes relevant to each problem: is there any strategy for the adversary to disconnect a transporation network, or facilitate disease spread? A related, but slightly different perspective on delays in temporal graphs is explored in [13] and [12], who determine how robust against unforeseen delays a given temporal graph is with and without re-routing of the passengers, respectively.
Delay Management
The Delay Management (DM) problem concerns itself with finding a good delaying strategy in a public transport network to minimize passenger inconvenience. Usually, this means minimizing the total passenger delay, but other objectives like simultaneously minimizing the number of delayed trains or the operational costs have also been studied. In the original problem, as introduced by [28], passengers stick with their initial routes (as in Path-DB); a popular variant of the problem allows passenger re-routing (as in DB) [9]. Both settings have since been the subject of much study, spanning both theory and practice.
On the theoretical side, different models and algorithmic approaches have been introduced over the years [1, 16, 17, 31, 33]. Due to modeling differences, studies of the computational complexity of different DM problem variants [14, 15, 27] do not necessarily yield results for our problems. In addition to minimizing an aggregate function (e.g., total weighted passenger delay [14, 15]) rather than asking whether some specific set of passenger demands can be satisfied (as we do), DM problems are commonly formalized using event-activity networks – which are more expressive than temporal graphs. For example, the definition of DM in [27] includes headway constraints (where two trains cannot use the same track segment simultaneously). Several interesting practically-motivated extensions are studied in this line of work, including a setting with slack times (trains may catch up on their delay), which makes the problem hard when the rail network is a line [15], and the incorporation of rolling-stock circulation into the problem [27] – though results in such settings do not straightforwardly translate into our model. Nonetheless, some results from these works can be adapted into the our setting; for example, Theorem 6.1 in [14] could be adapted to show that DelayBetter is NP-complete in the directed setting with (we strengthen this in Theorem 15). Also, all of these works consider a directed model (as is natural for rail networks), whereas our results are proven for both directed and undirected temporal graphs.
On the more practical side, there have been a number of case-studies and data-driven approaches to this problem [4, 23, 32]. In [30], a model for optimizing delays in rail and air travel combined is proposed, together with a European case study. For a more comprehensive overview of the work in delay management, we refer the reader to [3], [22], and [29]. A related area of research is the Timetabling Problem, which concerns itself with designing a timetable that is robust against delays. We refer the reader to [20] for an introduction.
1.3 Our contribution
We introduce the problems (-)DelayBetter and (-)Path DB, presenting (to our knowledge for the first time) a temporal graph-theoretic approach to the well-studied Delay Management problem. On the positive side, we give a polynomial-time algorithm for (-) Path-DB, and tractability for (-)DelayBetter on trees as a corollary. Later, we leverage this algorithm to obtain a fixed-parameter tractable (fpt) algorithm parameterized by the number of demands and the size of the feedback edge set of the footprint graph. On the negative side, we establish that DelayBetter remains NP-complete on inputs with in both the directed and undirected setting (which entails that -DelayBetter is NP-complete under the same constraint). Moreover, we show that the problem remains hard on planar (directed or undirected) temporal graphs with , even when . Our results provide a first insight into the structural restrictions which do (and do not) suffice to guarantee tractability of this natural problem. Proofs of statements marked can be found in the full version of the paper.
1.4 Discussion and open questions
We show that (-)Path DB is in P and that (-)DelayBetter is fpt parameterized by , where is the size of smallest feedback edge set of (the undirected version of) . It seems likely that the techniques used in those proofs could actually solve a broader family of problems – including, for example, the natural extension of DelayBetter wherein demands specify a departure time as well as an arrival time, but also possibly problems which do not specify individual demands as part of the input. Can dependence on be eliminated from our fpt result? If not, then what structural parameter is sufficient to yield an fpt result without requiring as a parameter? A more general question for future study is: what family of temporal graph modification problems admit an fpt algorithm in the size of the feedback edge set? Separately, what is complexity of the problems parameterized by fine-grained temporal parameters (e.g., vertex interval membership width [2]), or by smaller structural parameters than (e.g., the feedback vertex number)? We note that for directed graphs, the size of a minimum feedback arc set (the deletion of which leaves a directed acyclic graph, or DAG) is insufficient, since we show in Theorem 17 that the problem is NP-complete restricted to (planar) DAGs.
Another question we leave open is: what is the complexity of DelayBetter restricted to planar inputs with ? (Our proofs of Theorems 14 and 15 do not preserve planarity, and moreover reduce from a variant of NAE 3SAT, the restriction of which to planar instances is solvable in polynomial time [26].) Also stemming from our planar proof is the question of whether -DelayBetter restricted to planar graphs is computationally easy or hard for values of below . Our proof was aimed at minimizing while retaining planarity, so we expect that some easy adjustments to it might yield hardness for, e.g., , but we expect different techniques are necessary to deal with the case of on planar graphs.
Yet another direction our investigation could be extended is to consider non-simple temporal graphs. Our hardness results extend immediately to this case, but our algorithms do not – in the non-simple setting, we do not expect our linear programming approach to work, and it is not even obvious whether our problems would be tractable restricted to trees.
Lastly, we observe that our results for directed and undirected versions of the problem are the same. This is particularly surprising because some of our results require substantially different proofs for each setting. An open question for future work is then: are there any natural restrictions on the input which entail instances are tractable in the directed case and computationally hard in the undirected case (or vice versa)?
2 Preliminary Results
We begin with some basic results, the proofs of which may help to familiarize the reader with the behavior of our problems. We first establish a useful relation between -DB and DelayBetter. Clearly, DelayBetter is reducible to -DelayBetter, by simply assigning a sufficiently large value to (e.g., the final lifetime of the DelayBetter instance). Interestingly, the converse also holds:
Lemma 3.
For any , -DelayBetter is reducible in linear time to DelayBetter. If the input instance is planar (resp. has bounded final lifetime) then the same holds for the output.
Proof.
We require different reductions for directed and undirected graphs. In both cases, substitute a gadget in place of each edge in the original instance, and increase the lifetime of the instance. Both constructions preserve planarity, and the DelayBetter-instance has final lifetime at most (directed) or (undirected), where is the final lifetime of the -DelayBetter instance.
We first deal with the undirected case. We begin with a -DelayBetter instance having the property that every time is at time or later (if necessary, this can be achieved by uniformly incrementing all times in the demands and in the temporal assignment by ). We then create, for every time-edge , a gadget on new vertices and new demands , as shown in Figure 2.
Now each of the demands into must be routed through a different path. Because there are possible paths in total, some demand must be routed through the edge – and this entails that , yielding the desired result since by construction.
We now give the proof for the directed case. Given an instance of -DelayBetter, we produce an instance of DelayBetter as follows. (For this proof, we use to refer to the initial assignment of the new instance, not the delaying of .) We first include as demands, which we call travelers. Next, we replace every time-edge at time with the gadget pictured in Figure 3, and add the demand . We call demands introduced in this step hermits, the edge that hermit’s trailhead, and the edge (resp. ) a first-half (resp. second-half) edge. This concludes the construction.
Clearly, if the -DB instance reduced from was a yes-instance, then the DelayBetter instance obtained is also a yes-instance: whenever some edge is delayed by some amount in the original instance, delay both and by . It remains to show the converse.
Let be a solution to our modified problem with a pareto-optimal time-assignment of the edges (that is, one such that there is no other solution whose time-labels are all strictly smaller or equal to those under ).
Claim 4 ().
Hermits leave early: if is a hermit’s trailhead, then .
Claim 5.
Under , every first-half edge (resp. second-half edge) is assigned an even (resp. odd) time.
Proof.
Suppose otherwise. We must deal with two cases:
We deal first with the case where the earliest edge violating this claim is a first-half at an odd time. Let be the earliest first-half edge assigned an odd time (say, ) under . By pareto-optimality of is must be that assigning time to the edge would stop some demand from being satisfied. This demand cannot be a hermit because of Claim 4 – so there must be some traveler arriving at at time , a contradiction since our premise for this case was that was the earliest edge violating the claim.
Suppose instead that the earliest offending edge is a second-half edge assigned an even time (say, ). We again quickly find that this can only be due to the first-half edge being used by a traveler at time - again reaching a contradiction, since this is a strictly earlier odd time assigned to a first-half edge.
Claim 6 ().
For each time-edge in the original instance, .
Claim 5 allows us to recover a time-labeling for our initial -DelayBetter instance by assigning to each the edge the time while preserving the temporal paths of travelers. Claim 6 entails that this time-labeling does not delay any edge by more than , and the result follows.
Lemma 7 ().
An instance of DelayBetter or Path DB (resp. -DelayBetter or -Path DB) may be reduced in polynomial time to an instance of the same problem with (resp. ).
Lemma 8 ().
(-)DelayBetter is contained in NP.
3 Tractability Results
We begin with a small positive result which can be obtained easily from prior work.
Lemma 9.
DelayBetter is solvable in polynomial time when is the constant function and all demands in have the same source.
Proof.
We use the One Source Reach Fast algorithm from [6]: They show that the time-assignment of their algorithm computes, for a given source and every remaining vertex , the individual minimum time that needs to reach . If this computed minimum time is at most our demanded arrival time for all demands , then we have a YES-instance, otherwise we have a NO-instance.
We now turn to the case where passenger demands fully prescribe the path they must be routed along, establishing tractability through a linear programming argument.
Theorem 10.
Path DelayBetter and -Path DelayBetter are both in P.
Proof.
Let be an instance of Path DelayBetter (or, let be an instance of -Path-DelayBetter – the proof differs only in a few details).
We begin by introducing some notation. Our proof is for directed and undirected inputs – we shall use to mean the edge , but in the undirected case whereas in the directed case these are . For a demand , we denote by the specified static path in from to , and the final edge of , which is incident to and must be at time or earlier to satisfy the demand. We also use as shorthand for , and for . Lastly, we define the relation , to be true if and only if immediately precedes in the path for some .
Consider the following linear program:
(1) | |||
(2) | |||
(3) | |||
(4) | |||
(5) |
This LP has as its set of unknown variables. The variables correspond to given integers fully specified by the Path-DB instance (and likewise refers to a specific edge of ).
Claim 11 ().
The LP is integral. Meaning: at least one optimal solution of the LP assigns integers to all of its unknown variables. Moreover, an integral solution may be recovered from a non-integral solution in polynomial time.
Since linear programs are solvable in polynomial time [19], we may first solve the LP and then (if the solution is not already integral) apply Claim 11 to recover an integral solution. We note here that a modification of Kahn’s algorithm [18] for topological sorting may be used to compute a solution to this particular LP directly and more efficiently. A detailed proof would be quite technical and incongruous with the rest of the paper, so has been omitted.
An integral solution to this LP fully specifies a delaying satisfying the (-)Path DB instance. Note that: is indeed a (-)delaying of (due to Equations 2 and 3); enables strict temporal paths along each path specified in (due to Equation 4); and that each of these paths reaches the destination vertex by the arrival time prescribed (due to Equation 5). Conversely, it should be clear that any delaying satisfying the (-)Path DB instance specifies a (not necessarily optimal) solution to the LP. In fact, the LP allows us not only to decide (-)Path DB, but more strongly to solve its optimization variant.
Since trees are characterized by any pair being connected by a unique (static) path, we obtain the following corollary:
Corollary 12.
(-)DelayBetter is in P when the underlying graph is a (directed) tree.
Next, we are able to extend this result to “tree-like” graphs, by parameterizing by the size of the instance’s feedback edge set.
Theorem 13.
On directed (reps. undirected) temporal graphs, with , (-)DelayBetter is solvable in time (resp. ).
Proof.
The proofs for directed and undirected graphs differ only in small details, and those for for -DB and DelayBetter are identical (until we apply Theorem 10).
Let be a feedback edge set of (the undirected version of) of size . We iterate over each of the possible orderings of , and require that . (Note that if is small and is large, we may prefer to iterate over all assignments and obtain an ordering from those.)
In any solution, each demand is satisfied by a strict temporal path from to using some subset of the edges of . In the directed case, specifying this subset (together with the ordering fixed earlier) fully specifies the path from to ; in the undirected case, it is also necessary to specify the direction taken for each edge. The journey from one edge in the subset to the next is uniquely determined due to the fact that it can only use the edges of the spanning tree obtained by removing from .
For directed graphs, this means there are at most possible paths for each demand (an edge is either chosen or not), and thus for all demands. For undirected graphs, we get possible paths per demand (an edge is either traversed from to , from to , or not at all), and thus for all demands. For each ordering of and collection of subsets of , there is a corresponding instance of (-)Path DB.
In total, it is sufficient to solve such instances of (-)Path DB for directed graphs, and instances of (-)Path DB for undirected graphs. Since (-)Path DB is solvable in polynomial time by Theorem 10, we obtain the desired result.
4 Hardness results
Our first two hardness results are in the restrictive setting wherein and the initial temporal assignment is the constant function . In this setting, the problems DelayBetter and -DelayBetter essentially ask only whether there exists any satisfying our passenger demands; any such can be assumed without loss of generality to have lifetime , and could be obtained by delaying all time-edges by at most - meaning our results hold for any .
Theorem 14.
On undirected graphs, DelayBetter (and -DelayBetter with any ) is NP-complete even restricted to instances where , the initial temporal assignment is the constant function , and the has diameter 6.
Proof.
Our reduction is from Positive Not-All-Equal Exactly 3SAT [11], an NP-complete problem taking as input a formula consisting of triples of variables (which appear only positively). The formula is a yes-instance if there is an assignment to the variables such that every triple contains at least one true variable and at least one false variable.
We shall construct a graph which admits a temporal assignment satisfying all our demands if and only if admits a satisfying assignment. Figure 4 may be of use to the reader in following the proof. Solid (resp. dashed) edges in bold are ones which are necessarily assigned (resp. ) in any temporal assignment satisfying all demands.
We shall refer to the demand as a -demand from to . We begin with four special vertices , with -demands from to and to . Then, for each variable in , we introduce vertices and edges from each of these to each of . We further introduce 1-demands from to each of (enforcing that both edges must be assigned time ) and 2-demands from each of to (enforcing that both of must be assigned time ). Lastly, we introduce 2-demands from to and from to , which together with the previous constraints, guarantees that .
Next, for each triple in , we create vertices and and a 1-demand between these, and connect the vertex to by an edge if appears in the triple and introduce a 2-demand from to . We also introduce -demands from each of and to .
The intention is that assigning will correspond to an assignment of true to in , and assigning will correspond to an assignment of false to in . Suppose that some satisfies all demands. Then the assignment in which variable is set to true if and false otherwise is a satisfying assignment of .
Suppose that has a satisfying assignment . Consider the temporal assignment in which and if is true under and and otherwise (and all other values of are as specified in Figure 4). Under , every clause is adjacent to some pair of vertices such that under and under – so the 2-demand from (resp. ) to can be routed through (resp. ). It is clear that satisfies all other demands.
Our result for directed graphs requires a slightly different proof:
Theorem 15.
On directed graphs, DelayBetter (and -DelayBetter with any ) is NP-complete even restricted to instances where and has no directed cycles.
Proof.
The reduction is again from Positive Not-All-Equal Exactly 3SAT. Given a formula , we construct a directed graph as follows: Then, for each variable in , we introduce six vertices and connect them as shown in Figure 5. Further, we introduce a vertex identified with each triple in , and create directed edges from to and from to .
We now specify the demands for our instance; for each variable , we have 2-demands from (resp. , ) to (resp. ), and for each clause we have 2-demands from to each of and . (All of our demands are 2-demands, and these are shown as red dashed arrows in Figure 5.) We let the constant function be the initial temporal assignment for our directed graph, and this concludes the construction of our (-)DelayBetter instance (together with specifying , if necessary).
Claim 16.
Let be any temporal assignment satisfying all demands in our construction. Then entails , and entails .
Proof.
Suppose for some . Since all our demands are satisfied, we have that there must be a temporal path from to arriving at time 2. Such a path necessarily leaves at time 1 (since the two vertices are at distance 2). Consequently, and . Similarly, we now must have that the 2-demand from to is routed through , entailing that and . Applying the same logic a third time, the 2-demand from to must be routed through , and the desired claim follows. (The other direction is symmetric.)
Suppose that some satisfies all demands. Consider the truth assignment in which a variable is set to true if , and false otherwise. Suppose for contradiction that under this truth assignment, some triple is not satisfied. Then either: (a) all variables in are true under our truth assignment, and leveraging Claim 16, the vertex cannot reach the vertex by time ; or, (b), all variables in are false under our truth assignment, and there cannot reach the vertex by time . In either case, some demand is not satisfied and we derive the desired contradiction.
Now suppose that there is some truth assignment satisfying . Consider the temporal assignment in which:
-
If and is true (resp. false) under the assignment, then (resp. ), and
-
All other edges are assigned times arbitrarily.
Under , has a path to (resp. ) through (resp. ) if and only if is assigned true (resp. false). It should be clear that satisfies all other demands in our instance by construction, and the result follows.
Having shown that the instance being a tree yields tractability in Corollary 12, we consider the case of planar graphs - a well-studied superclass of trees.
Theorem 17.
-DelayBetter is NP-complete under any combination of the following:
-
is planar and has maximum degree .
-
Either is undirected, or is a directed acyclic graph (DAG).
-
Either and (with any ), or and .
Proof.
Our reduction is from Cubic Bipartite Planar Edge Precoloring Extension (CBP-EPE). That problem asks, given an undirected graph (which is planar, bipartite, and cubic) and a precoloring of its edges (indicating red, green, blue, and uncolored edges respectively) whether there is a proper edge-coloring of such that . Let be an arbitrary bipartition of , and fix an arbitrary order on (so we may refer to the th neighbor of some vertex).
We shall make use of the following hardness result:
Lemma 18 (Theorem 2.3 in [24]).
Cubic Bipartite Planar Edge Precoloring Extension is NP-complete.
Construction
Our construction for the directed case is a specific orientation of our construction for the undirected case. Consequently, we shall describe the directed construction, which implicitly also specifies the undirected construction – but still detail explicitly, for example, that edge-gadgets can only be traversed from an -gadget to a -gadget (which is trivial in the directed case).
In our construction, the inclusion of a bold time-edge essentially dictates that the edge is assigned time exactly in any temporal assignment satisfying all demands. To realize this constraint, we introduce a temporal path of length and duration on new vertices and , as shown in Figure 6 and include in our demands. Note that in the case where no new vertices are created – only the demand .
The reader may find the diagram in Figure 7 helpful. We first describe the graph for our instance of DelayBetter, and then the demands . (For now, we let the initial temporal assignment be everywhere except for bold time-edges and their gadgets.)
For each vertex , we create a vertex-gadget consisting of a copy of and 12 other vertices (subscripts represent color; superscript represents the th neighbor of ). These vertices are connected differently depending on whether or , as shown in Figure 7. In a vertex-gadget, we call spoke edges those edges which are not bold, and blue (resp. red, green) layer the vertices (resp. ).
For each edge with , we also create three vertices . Then if is the th neighbor of and is the th neighbor of , we introduce six bold time-edges . (In Figure 7 is the second neighbor of and vice versa.) If is precolored under , then we delete two of , or , as appropriate, leaving just one path from to . In Figure 7: is the second neighbor of the ; is the second neighbor of ; and .
We make use of three types of demands:
- Bold demands
-
as described earlier and shown in Figure 6.
- Hermits
-
demands from a vertex in a vertex-gadget to another vertex in the same gadget. For each vertex we have demands and , and for each vertex we have demands and . (We say hermits have the color of the layer their source or destination lies in.)
- Travelers
-
demands from a vertex in an -gadget to a vertex in a -gadget. For each edge in the CBP-EPE instance with and , we add a demand .
This concludes our construction.
Correctness
Claim 19.
If the CBP-EPE instance is a yes-instance, then the DelayBetter instance is a yes-instance.
Proof.
We shall construct a delaying of the initial temporal assignment satisfying all demands in . Consider a proper edge coloring of which extends .
First, we do not delay any bold time-edges – i.e., for those, . Note that all bold demands are immediately satisfied under any such labeling.
Let be an edge assigned color (resp. ) under , with being the th neighbor of and being the th neighbor of . We assign:
-
(resp. )
-
(resp. )
-
(resp. )
-
(time-edges into and out of are all bold)
-
(resp. )
-
(resp. )
-
(resp. )
It should be clear that this labeling creates a temporal path from to for each edge such that the traveler demands are satisfied (via or depending on whether the edge was colored or under ).
We now show hermit demands are satisfied as well: because is a proper 3-edge-coloring of a cubic graph, every vertex is incident to exactly one edge of each color.
In -gadgets, the hermit starting at (resp. ) has a temporal path to (resp. ) arriving by time (resp. ) if the edge from to its th neighbor is assigned (resp. ) under . The hermit can then (if ) use the bold time-edges to reach (resp. ).
In -gadgets, the hermit starting at (resp. ) has a temporal path to (resp. ) arriving by time (resp. ) using the bold time-edges. If the edge from to its th neighbor is assigned (resp. ) under , then the hermit can extend this path by using the spoke edges from (resp. ) into .
The remainder of the proof is devoted to showing the opposite implication; that is, if DelayBetter instance is a yes-instance (i.e., there exists some delaying of satisfying all demands in ) then the CBP-EPE instance is a yes-instance. For some , we say that the traveler from to is blue (resp. red, green) if that traveler is routed through a vertex (resp. ). (If several paths are possible, one may be chosen arbitrarily - though as we shall see this never happens.) No traveler has more than one color: each traveler goes through exactly one edge-gadget, from its starting -gadget to its ending -gadget (due to the bold time-edges enforcing the direction of the edge-gadget).
We make repeated use of the fact that, by construction, bold time-edges are never delayed. Note that if everywhere including bold gadgets, then these force their edge to be at exactly the intended time in the delaying .
Claim 20.
Let . Then there is exactly one such that (resp. ); there is at least one such that (resp. [9-11]); and there is at least one such that .
Proof.
The claim holds as a consequence of the hermit demands. The blue (resp. red, green) hermit must reach the blue (resp. red, green) layer using at least one (resp. two, three) spoke edge(s), arriving by time (resp. , ) at the latest and departing from at time (resp. , ) at the earliest.
Claim 21.
At most of travelers are blue and at most of travelers are red or blue.
Proof.
First, suppose over a third of travelers are blue. Then the -gadget of some vertex has at least two travelers reaching different vertices of its green layer by time (and, necessarily, different vertices of its red layer by time ). This entails that at least two of the spoke edges between the blue and red layers in that gadget are at time or less, which contradicts Claim 20. Similarly, if over two thirds of travelers are red or blue, then the -gadget of some vertex has at least three travelers reaching three different vertices of the green layer by time , entailing that the three spoke edges from the red layer to the green layer are at time or earlier and again contradicting Claim 20.
The following result is obtained through similar reasoning to that for Claim 20:
Claim 22 ().
Let . Then under , there is some such that is a temporal path with departure time in and arrival time in ; there is some such that is a temporal path with departure time in and arrival time in ; and there is some such that .
Claim 23.
Let . Then at least 1 traveler arrives at the -gadget of at time ; and at least 2 travelers arrive at the -gadget of at time or time .
Proof.
First note that all travelers arriving at the -gadget come from some edge-gadget and consequently arrive at a time in . Applying Claim 22, there is some such that any traveler arriving at strictly after time would be stranded there – so the traveler arriving from the th neighbor of must arrive at time . Likewise, there is some different from such that any traveler arriving at strictly after time would be stranded there – so the traveler arriving from the th neighbor of must arrive at by time and so at at time or time .
The proof of the following is similar to that of Claim 21:
Claim 24 ().
At least of travelers are blue and at least of travelers are red or blue.
For some , we say that the traveler from to is blue (resp. red, green) if the temporal path used to route that traveler goes through a vertex (resp. ).
Claim 25.
The colors of travelers in fully specify a proper edge-coloring of which is consistent with the precoloring .
Proof.
First, note that the precoloring is consistent with because precolored edges in have edge-gadgets consisting of only one vertex, ensuring that the traveler is assigned the appropriate color.
Next, observe that Claims 21 and 24 together entail that exactly of travelers are blue and exactly of travelers are red. Moreover, the proof of those claims holds locally; exactly one of the three travelers leaving any given -vertex is blue (resp. red), and exactly one of the three travelers arriving at any given -vertex is blue (resp. red).
This concludes the proof that the CBP-EPE instance is a yes-instance if the DelayBetter instance was a yes-instance.
We emphasize at this point that our construction preserves planarity and that in the directed case, the footprint contains no directed cycles. We recall that in the undirected case bold time-edges enforce that travelers can only go from an -gadget to a -gadget once. The maximum degree in the graph is (due to vertices , which are incident to 4 bold gadgets in addition to 6 normal edges). Note that the proof still holds if the initial temporal assignment assigns time to every non-bold edge in an -gadget and time to every non-bold edge in a -gadget, in which case the largest delay is of (delaying a time-edge from the green layer of a -gadget to a -vertex to be at time ). Consequently, our proof also shows that -DelayBetter is NP-hard for .
On the other hand, the proof also holds if the initial temporal assignment is instead the constant function : studying Figure 6 it can be seen that this would still result in bold time-edges being assigned the intended time under .
We have membership of NP from Lemma 8, and the result follows.
References
- [1] Stefan Binder, Yousef Maknoon, and Michel Bierlaire. The multi-objective railway timetable rescheduling problem. Transportation Research Part C: Emerging Technologies, 78:78–94, May 2017. doi:10.1016/j.trc.2017.02.001.
- [2] Benjamin Merlin Bumpus and Kitty Meeks. Edge exploration of temporal graphs. In Paola Flocchini and Lucia Moura, editors, Combinatorial Algorithms, Lecture Notes in Computer Science, pages 107–121, Cham, 2021. Springer. doi:10.1007/978-3-030-79987-8_8.
- [3] Valentina Cacchiani, Dennis Huisman, Martin Kidd, Leo Kroon, Paolo Toth, Lucas Veelenturf, and Joris Wagenaar. An overview of recovery models and algorithms for real-time railway rescheduling. Transportation Research Part B: Methodological, 63:15–37, May 2014. doi:10.1016/j.trb.2014.01.009.
- [4] S. Carosi, S. Gualandi, F. Malucelli, and E. Tresoldi. Delay Management in Public Transportation: Service Regularity Issues and Crew Re-scheduling. Transportation Research Procedia, 10:483–492, 2015. doi:10.1016/j.trpro.2015.09.002.
- [5] Arnaud Casteigts, Timothée Corsini, and Writika Sarkar. Simple, strict, proper, happy: A study of reachability in temporal graphs, August 2022. doi:10.48550/arXiv.2208.01720.
- [6] Argyrios Deligkas, Eduard Eiben, and George Skretas. Minimizing Reachability Times on Temporal Graphs via Shifting Labels. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pages 5333–5340, Macau, SAR China, August 2023. International Joint Conferences on Artificial Intelligence Organization. doi:10.24963/ijcai.2023/592.
- [7] Argyrios Deligkas and Igor Potapov. Optimizing reachability sets in temporal graphs by delaying. Information and Computation, 285:104890, May 2022. doi:10.1016/j.ic.2022.104890.
- [8] Punctuality | Deutsche Bahn Interim Report 2024. https://zbir.deutschebahn.com/2024/en/interim-group-management-report-unaudited/product-quality-and-digitalization/punctuality/. [Accessed 19-09-2024].
- [9] Twan Dollevoet, Dennis Huisman, Marie Schmidt, and Anita Schöbel. Delay Management with Rerouting of Passengers. Transportation Science, 46(1):74–89, February 2012. doi:10.1287/trsc.1110.0375.
- [10] Jessica A. Enright, Laura Larios-Jones, Kitty Meeks, and William Pettersson. Reachability in temporal graphs under perturbation. In SOFSEM 2025: Theory and Practice of Computer Science - 50th International Conference on Current Trends in Theory and Practice of Computer Science, SOFSEM 2025, Bratislava, Slovak Republic, January 20-23, 2025, Proceedings, Part I, volume 15538 of Lecture Notes in Computer Science, pages 255–269. Springer, 2025. doi:10.1007/978-3-031-82670-2_19.
- [11] Ivan Tadeu Ferreira Antunes Filho. Characterizing Boolean satisfiability variants. PhD thesis, Massachusetts Institute of Technology, 2019. URL: https://dspace.mit.edu/handle/1721.1/124241.
- [12] Eugen Füchsle, Hendrik Molter, Rolf Niedermeier, and Malte Renken. Delay-Robust Routes in Temporal Graphs, January 2022. arXiv:2201.05390 [cs]. doi:10.48550/arXiv.2201.05390.
- [13] Eugen Füchsle, Hendrik Molter, Rolf Niedermeier, and Malte Renken. Temporal Connectivity: Coping with Foreseen and Unforeseen Delays, January 2022. arXiv:2201.05011 [cs]. doi:10.48550/arXiv.2201.05011.
- [14] Michael Gatto, Björn Glaus, Riko Jacob, Leon Peeters, and Peter Widmayer. Railway Delay Management: Exploring Its Algorithmic Complexity. In Algorithm Theory - SWAT 2004, volume 3111, pages 199–211. Springer Berlin Heidelberg, Berlin, Heidelberg, 2004. Series Title: Lecture Notes in Computer Science. doi:10.1007/978-3-540-27810-8_18.
- [15] Michael Gatto, Riko Jacob, Leon Peeters, and Anita Schöbel. The Computational Complexity of Delay Management. In Graph-Theoretic Concepts in Computer Science, volume 3787, pages 227–238. Springer Berlin Heidelberg, Berlin, Heidelberg, 2005. Series Title: Lecture Notes in Computer Science. doi:10.1007/11604686_20.
- [16] Andreas Ginkel and Anita Schöbel. To Wait or Not to Wait? The Bicriteria Delay Management Problem in Public Transportation. Transportation Science, 41(4):527–538, November 2007. doi:10.1287/trsc.1070.0212.
- [17] Géraldine Heilporn, Luigi De Giovanni, and Martine Labbé. Optimization models for the single delay management problem in public transportation. European Journal of Operational Research, 189(3):762–774, September 2008. doi:10.1016/j.ejor.2006.10.065.
- [18] A. B. Kahn. Topological sorting of large networks. Communications of the ACM, 5(11):558–562, November 1962. doi:10.1145/368996.369025.
- [19] N. Karmarkar. A new polynomial-time algorithm for linear programming. In Proceedings of the Sixteenth Annual ACM Symposium on Theory of Computing, STOC ’84, pages 302–311, New York, NY, USA, 1984. Association for Computing Machinery. doi:10.1145/800057.808695.
- [20] Leo G. Kroon, Rommert Dekker, and Michiel J. C. M. Vromans. Cyclic Railway Timetabling: A Stochastic Optimization Approach. In Frank Geraets, Leo Kroon, Anita Schoebel, Dorothea Wagner, and Christos D. Zaroliagis, editors, Algorithmic Methods for Railway Optimization, volume 4359, pages 41–66. Springer Berlin Heidelberg, Berlin, Heidelberg, 2007. Series Title: Lecture Notes in Computer Science. doi:10.1007/978-3-540-74247-0_2.
- [21] David C. Kutner and Laura Larios-Jones. Temporal Reachability Dominating Sets: contagion in temporal graphs, May 2024. arXiv:2306.06999 [cs, math]. doi:10.48550/arXiv.2306.06999.
- [22] Eva König. A review on railway delay management. Public Transport, 12(2):335–361, June 2020. doi:10.1007/s12469-020-00233-1.
- [23] Federico Malucelli and Emanuele Tresoldi. Delay and disruption management in local public transportation via real-time vehicle and crew re-scheduling: a case study. Public Transport, 11(1):1–25, June 2019. doi:10.1007/s12469-019-00196-y.
- [24] Dániel Marx. NP-completeness of list coloring and precoloring extension on the edges of planar graphs. Journal of Graph Theory, 49(4):313–324, 2005. _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1002/jgt.20085. doi:10.1002/jgt.20085.
- [25] Hendrik Molter, Malte Renken, and Philipp Zschoche. Temporal reachability minimization: Delaying vs. deleting. Journal of Computer and System Sciences, 144:103549, September 2024. doi:10.1016/j.jcss.2024.103549.
- [26] B. M. E. Moret. Planar NAE3SAT is in P. SIGACT News, 19(2):51–54, June 1988. doi:10.1145/49097.49099.
- [27] Michael Schachtebeck. Delay Management in Public Transportation: Capacities, Robustness, and Integration. PhD thesis, Georg-August-University Göttingen, 2010. doi:10.53846/goediss-2538.
- [28] Anita Schöbel. A Model for the Delay Management Problem based on Mixed-Integer-Programming. Electronic Notes in Theoretical Computer Science, 50(1):1–10, August 2001. doi:10.1016/S1571-0661(04)00160-4.
- [29] Schöbel, Anita. Optimization in Public Transportation, volume 3 of Springer Optimization and Its Applications. Springer US, Boston, MA, 2006. doi:10.1007/978-0-387-36643-2.
- [30] Geoffrey Scozzaro, Clara Buire, Daniel Delahaye, and Aude Marzuoli. Optimizing air-rail travel connections: A data-driven delay management strategy for seamless passenger journeys. In SESAR Innovation Days, 2023.
- [31] Lucas P. Veelenturf, Martin P. Kidd, Valentina Cacchiani, Leo G. Kroon, and Paolo Toth. A Railway Timetable Rescheduling Approach for Handling Large-Scale Disruptions. Transportation Science, 50(3):841–862, August 2016. doi:10.1287/trsc.2015.0618.
- [32] Chuntian Zhang, Yuan Gao, Valentina Cacchiani, Lixing Yang, and Ziyou Gao. Train rescheduling for large-scale disruptions in a large-scale railway network. Transportation Research Part B: Methodological, 174:102786, August 2023. doi:10.1016/j.trb.2023.102786.
- [33] Yongqiu Zhu and Rob M. P. Goverde. Integrated timetable rescheduling and passenger reassignment during railway disruptions. Transportation Research Part B: Methodological, 140:282–314, October 2020. doi:10.1016/j.trb.2020.09.001.