Abstract 1 Introduction 2 Preliminaries 3 Isotonic Objectives 4 General Objectives 5 The SSMTSPP with Unrestricted Path Lengths 6 Conclusion References

Label Correcting Algorithms for the Multiobjective Temporal Shortest Path Problem

Edina Marica ORCID Campus Straubing for Biotechnology and Sustainability, Technical University of Munich, Straubing, Germany    Clemens Thielen ORCID Campus Straubing for Biotechnology and Sustainability, Technical University of Munich, Straubing, Germany    Alina Wittmann ORCID Campus Straubing for Biotechnology and Sustainability, Technical University of Munich, Straubing, Germany
Abstract

Given a directed, discrete-time temporal graph G=(V,R), a start node sV, and p1 objectives, the single-source multiobjective temporal shortest path problem asks, for each vV, for the set of nondominated images of temporal s-v-paths together with a corresponding efficient path for each image. A recent general label setting algorithm for this problem relies on two properties of the objectives–monotonicity and isotonicity. Monotonicity generalizes the nonnegativity assumption required by label setting methods for the classical additive single-objective shortest path problem on static graphs, while isotonicity ensures that the order of the objective values of two paths is preserved when both are extended by the same arc.

In this paper, we study the problem without assuming monotonicity and/or isotonicity. A key difficulty in this setting is that zero-duration temporal cycles may need to be traversed an arbitrary finite number of times to generate all nondominated images. This motivates the study of a restricted problem variant in which a maximum admissible path length K is imposed, and only paths containing at most K arcs are considered. We develop general label correcting algorithms for this setting and establish several sufficient conditions under which such a bound is not required, implying that the algorithms compute all nondominated images.

Keywords and phrases:
temporal graphs, multiobjective optimization, shortest paths, label correcting algorithm
Funding:
Alina Wittmann: This author’s work was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project number 508981269.
Copyright and License:
[Uncaptioned image] © Edina Marica, Clemens Thielen, and Alina Wittmann; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Shortest paths
; Mathematics of computing Paths and connectivity problems
Related Version:
Full Version: https://doi.org/10.48550/arXiv.2605.05954
Editors:
George B. Mertzios and Andréa W. Richa

1 Introduction

The shortest path problem is one of the most fundamental and well-studied optimization problems in graphs and networks. In the most prominent case where the length of a path is given as the sum of the lengths of its arcs, the problem can be solved efficiently in polynomial time by label setting approaches if all arc lengths are assumed to be nonnegative or by label correcting approaches if negative lengths are allowed.

Many graphs and networks, however, are inherently dynamic in the sense that the available connections between nodes – or even the nodes themselves – change over time. Prominent examples include airline or railway networks, where each train or flight connection has a specific departure time [10, 16]. Such situations are naturally modeled by (discrete-time) temporal graphs [10, 11], where the nodes (corresponding to airports or railway stations in the example) are static, but the arc set changes in discrete time steps. In this case, paths of interest are so-called temporal paths that respect the temporal nature of the graph, meaning that the next arc of a path must always start at a node after the previous one has arrived there. Given the temporal aspect, several natural interpretations of a “shortest” temporal path arise depending on the specific objective of interest. The most prominent objectives include minimizing the arrival time at the destination, the duration (difference between arrival time and start time), or the traversal time (sum of arc lengths) of a path, or maximizing its start time (for a given latest possible arrival time).

In many situations, for instance when choosing a path in an airline or railway network, one might actually not only be interested in optimizing one of these objectives, but several at the same time, meaning that the considered shortest path problem in a temporal graph becomes multiobjective. The solutions one is typically interested in when considering optimization problems with several potentially conflicting objectives are called efficient solutions or Pareto optimal solutions [7]. An efficient solution is characterized by the property that it cannot be improved in any objective without simultaneously worsening at least one other objective. The vector of objective values (the image of an efficient solution in the objective space) is called a nondominated image or a nondominated point [7]. Each nondominated image corresponds to a different trade-off among the objectives, and the goal in a multiobjective optimization problem typically consists of computing all nondominated images together with one corresponding efficient solution for each of them.

These observations motivate a systematic study of the (single-source) multiobjective temporal shortest path problem. Given a temporal graph, a source node s, and p objectives, this problem consists of computing, for each destination node v, all nondominated images of temporal s-v-paths together with one corresponding efficient path for each image. For a very general class of objectives, including arrival time, duration, traversal time, start time, and many others, this problem has recently been studied in [1] under two assumptions on the objectives. The first assumption states that the value of a path in an objective cannot improve when the path is extended by another arc (referred to as monotonicity in the following). Monotonicity generalizes the nonnegativity assumption on arc lengths required for label setting algorithms in the classical additive shortest path problem. The second assumption, referred to as isotonicity in the following, states that if one path has an objective value at least as good as that of another path, then this relation is preserved when both paths are extended by the same arc. Using both assumptions, Bazgan et al. [1] present a general label setting algorithm for the multiobjective temporal shortest path problem with an arbitrary number of objectives. However, similarly to the classical static shortest path problem, where arc lengths are not necessarily nonnegative, the monotonicity and isotonicity assumptions imposed in [1] are not satisfied by all relevant objectives in temporal shortest path problems. For example, in airline networks it can often be observed that booking a flight from airport A via airport B to airport C is strictly cheaper than booking only the first leg from A to B. Thus, when minimizing travel cost, the objective violates monotonicity. This phenomenon can be systematically exploited via dedicated websites such as Skiplagged (https://skiplagged.com) using a technique known as hidden-city ticketing [15], or skiplagging, in which a passenger books a longer itinerary but intentionally skips one or more final flight legs.

In this paper, we therefore study the single-source multiobjective temporal shortest path problem with general objectives that are not required to satisfy monotonicity and/or isotonicity. As we demonstrate through explicit examples in Section 2, a key difficulty in the case of general objectives, even for static graphs, is that cycles may need to be traversed an arbitrary finite number of times in order to generate all nondominated images. We therefore consider a restricted problem variant in which a maximum admissible path length K is given as part of the input, and only paths containing at most K arcs are considered. For this setting, we develop general label correcting algorithms and prove their correctness both for isotonic objectives without monotonicity (Section 3) and for fully general objectives where neither property is assumed (Section 4). The key difference between these two settings is that isotonicity permits the removal of dominated labels during each iteration, whereas in the absence of isotonicity dominated labels can only be safely removed after the final iteration. In Section 5, we further establish several sufficient conditions under which no bound on the admissible path length is required. Under these conditions, our algorithms compute all nondominated images when executed for a suitably bounded number of iterations. These conditions include, in particular, rational-valued additive objectives, thereby generalizing the classical setting of additive cost objectives on static graphs.

1.1 Related work

The single-source multiobjective shortest path problem has been extensively studied in static graphs (see, e.g., [7, 13]). In the case of nonnegative additive cost objectives, the problem is known to be efficiently solvable using label setting approaches [12, 7]. For additive objectives that may take negative values, Corley and Moon [6] propose a multiobjective label correcting algorithm, which is also applicable in the more general setting where objectives are isotonic but not necessarily monotone [14]. Furthermore, Carraway et al. [5] present a dynamic programming approach for the one-to-one multiobjective shortest path problem in acyclic graphs without assuming monotonicity or isotonicity.

In temporal graphs, which constitute the focus of our work, the problem has received comparatively less attention. Bazgan et al. [1] study the single-source multiobjective temporal shortest path problem for objectives satisfying both monotonicity and isotonicity. Even though subpaths of efficient paths may not be efficient in the temporal setting, they show how a label setting approach can still be applied for any number of isotonic, monotone objectives. Non-monotone objectives have so far only been considered in the biobjective case, while non-isotonic objectives have, to the best of our knowledge, not been considered at all in temporal graphs. Brunelli et al. [4] consider a biobjective temporal shortest path problem where the first objective is the earliest arrival time, while the second objective is isotonic, but not necessarily monotone. Their approach strongly relies on the ordering of nondominated images in the biobjective case and can, therefore, not be extended to more than two objectives. Hamacher et al. [9] sketch how a label correcting approach can be applied to the biobjective temporal shortest path problem with two additive cost objectives, which are isotonic, but in general non-monotone.

2 Preliminaries

This section contains the definitions and terminology used throughout the paper.

Definition 1.

A directed (discrete-time) temporal graph is a pair G=(V,R), where V is a finite set of nodes and R is a finite set of quadruples, where each quadruple rR consists of a start node α(r)V, an end node ω(r)V, a start time τ(r)0, and a traversal time λ(r)0.111Nonnegative traversal times are required for our algorithms, whereas negative start times can be handled by adding the absolute value of the smallest negative start time to all start times. A quadruple rR is called a (temporal) arc.

Let n|V|,m|R|, and let δ+(v) and δ(v) denote the set of outgoing and ingoing arcs of vV, respectively. Moreover, let [k]{1,,k} for k1 and [0]. The arrival time of an arc rR at its end node ω(r) is τ(r)+λ(r). Therefore, a temporal path P=(v0,r1,v1,,rk,vk) is a nonempty, finite sequence of nodes and temporal arcs such that, for each i[k], it holds that α(ri)=vi1 and ω(ri)=vi, and for each i[k1], it holds that τ(ri)+λ(ri)τ(ri+1). We call a path P=(v0) with no arcs a zero-arcs path. The length of a path P=(v0,r1,v1,,rk,vk) is the number of arcs it is composed of, i.e. |P|=k. A temporal s-v-path is a temporal path P=(v0,r1,v1,,rk,vk) with v0=s and vk=v, and we call the nodes α(P)v0 and ω(P)vk the start node and the end node of P, respectively. A path P=(v0,r1,v1,,rk,vk) is called simple if the nodes v0,,vk1 are pairwise distinct, and it is called a (temporal) cycle if k1 and v0=vk. The concatenation of two paths P=(v0,r1,v1,,rk,vk) and P=(v0,r1,v1,,rk,vk) with vk=v0 and τ(rk)+λ(rk)τ(r1) is defined as the path (P,P)(v0,r1,v1,,rk,vk,r1,v1,,rk,vk). Given a path P=(v0,r1,v1,,rk,vk), any path (vi,ri+1,vi+1,rj,vj) with 0ijk is called a subpath of P.

We evaluate the quality of paths using several criteria or objectives. The following definition generalizes the definition from [1], where nonnegative, rational-valued objectives are considered, to values in any totally ordered set. Since our analysis depends only on the structural properties of the objectives and not on a particular encoding, we do not fix a concrete representation.

Definition 2.

An objective is a tuple (M,,f,,0¯,dir), where M is a nonempty set, is a total order on M, f:RM is a function with values in M, :M×MM is a binary operator, 0¯M is a left-neutral element for (i.e., 0¯b=b for all bM), and dir {min,max} is a direction of optimization. Given an objective (M,,f,,0¯,dir), we use < to denote the strict total order corresponding to .

For instance, maximizing the start time would be expressed by the latest start time objective (0{+},,τ,min,+,max), and minimizing the arrival time by the earliest arrival time objective (0,,λ+τ,max,0,min). Note that, as in [1], the binary operator is required to be associative, i.e., (ab)c=a(bc) for all a,b,cM, but not commutative, i.e., we can have abba. Next, we define two properties of objectives, which were jointly referred to as monotonicity in [1]. Here, we define them separately for ease of discussion.

Definition 3.

An objective (M,,f,,0¯,min) is monotone if aab for all a,bM, and an objective (M,,f,,0¯,max) is monotone if aab for all a,bM.

Definition 4.

An objective (M,,f,,0¯,dir) is isotonic if aa with a,aM implies that abab for all bM.

Note that the isotonicity condition can be formulated equivalently by asking that aa with a,aM implies that abab for all bM. We use both formulations in the following. The next definition defines objective values of paths in a temporal graph.

Definition 5.

Given an objective (M,,f,,0¯,dir), the objective value f(P) of a path P=(v0,r1,v1,,rk,vk) is defined inductively by setting f(P)0¯ for k=0, and f(P)f(P)f(rk) for k1, where P=(v0,r1,v1,,rk1,vk1) is the v0-vk1-subpath of P with the last arc removed.

Intuitively, monotonicity of an objective (M,,f,,0¯,dir) means that extending a path P by an additional arc r cannot improve its objective value f(P). Isotonicity means that, if two temporal paths P1 and P2 with objective value f(P1) at least as good as f(P2) are extended by the same arc r, then the objective value f(P1)f(r) of the extension of P1 will also be at least as good as the objective value f(P2)f(r) of the extension of P2.

The following definitions introduce required terminology from multiobjective optimization.

Definition 6.

Let (Mj,j,fj,j,0¯j,dirj),j[p], be p1 objectives, and let y=(y1,,yp)M1××Mp and y=(y1,,yp)M1××Mp be two vectors. The vector y is weakly dominated by the vector y if yjjyj, for all j[p] with dirj=min, and yjjyj for all j[p] with dirj=max. The vector y is dominated by y if it is weakly dominated by y and yy.

Definition 7.

Given p1 objectives (Mj,j,fj,j,0¯j,dirj),j[p], we call the vector (f1(P),,fp(P))M1××Mp the image of the temporal path P and say that P is (weakly) dominated by another temporal path P if its image is (weakly) dominated by the image of P. If an s-v-path P is not dominated by any other s-v-path, we call P efficient and its image nondominated.

In static shortest path problems, cycles that can be repeatedly traversed to improve an objective value are referred to as negative (cost) or improving cycles. In the temporal case, such cycles must necessarily be zero-duration cycles (i.e., all arcs in the cycle have traversal time zero and the same start time), and in our setting with general objectives, whether traversing a zero-duration cycle improves an objective might depend on the subpath traversed previously. This is made formal in the following definitions.

Definition 8.

The duration of a temporal path P=(v0,r1,v1,,rk,vk) is τ(rk)+λ(rk)τ(r1) if k1, and zero otherwise. A cycle with duration zero is called a zero-duration cycle. A zero-duration cycle C=(v0,r1,v1,,rc,v0) is said to be reachable (from s) if there exists a temporal s-v0-path P=(v0,r1,v1,,rk,vk) with vk=v0 and τ(rk)+λ(rk)τ(r1). Given a zero-duration cycle C and a temporal path P satisfying the above condition, we define the infinite sequence of paths (P,Ch)h0, where Ch(C,,C) denotes the temporal path obtained by traversing C exactly h times.

Definition 9.

Given a temporal graph G=(V,R), a node sV, and p1 objectives (Mj,j,fj,j,0¯j,dirj), j[p], a zero-duration cycle C=(v0,r1,v1,,rc,v0) is an improving cycle in objective j if there exists a temporal s-v0-path P such that (P,Ch)h0 is well-defined (see Definition 8) and, for every h0, there exists h>h with fj(P,Ch)<jfj(P,Ch) if dirj=min, or fj(P,Ch)>jfj(P,Ch) if dirj=max. We call C an improving cycle if it is improving in at least one objective j.

Thus, an improving cycle C in objective j is a zero-duration cycle reachable from s that can be traversed indefinitely, such that each traversal can eventually be followed by further traversals yielding strictly better values in objective j. In contrast to additive cost objectives on static graphs, an improving cycle in a temporal graph need not improve the objective at every repetition. Nevertheless, it may cause the set of nondominated images of s-v-paths to be infinite or empty for some nodes v.

2.1 Problem Definition and Structural Results

Definition 9 motivates the following definition of the single-source multiobjective temporal shortest path problem, which generalizes the definition from [1] to our more general definition of objectives and cases where improving cycles may exist:

Definition 10 (Single-source multiobjective temporal shortest path problem (SSMTSPP)).

Instance: A temporal graph G=(V,R), a start node sV, and p1 objectives (Mj,j,fj,j,0¯j,dir), j[p], the first of which is the earliest arrival time objective (0,,τ+λ,max,0,min).
Task: Either return the existence of an improving cycle, or compute the set of nondominated images of temporal s-v-paths for each vV together with a corresponding efficient path for each such image.

Note that, as in [1], we assume that the first objective is the earliest arrival time objective, whose value is required to determine further arcs by which a temporal path can be extended. If this objective is not of interest, it can be excluded in a postprocessing step that returns only those images that are nondominated with respect to the other p1 objectives.

In static graphs with additive cost objectives, the single-source shortest path problem is well known to be solvable using label correcting algorithms, both in the single- and multiobjective settings [2, 8, 6]. A key property underlying these algorithms is that, unless an improving cycle (negative cycle) is reachable from the start node, all nondominated images arise from simple paths of length at most n1. Consequently, it suffices to check each arc at most n times, and any change in a label set during the n-th iteration certifies the existence of an improving cycle. As we now demonstrate, no analogous bound on the number of iterations exists in our temporal setting with general objectives, even when all objectives are isotonic. First, positive-duration cycles may need to be traversed once in an efficient temporal path, while their positive duration prevents repeated traversal, implying that paths of length up to m must be considered in general. Moreover, the following example shows that, for general objectives, zero-duration cycles may need to be traversed an arbitrary finite–potentially exponential–number of times in order to obtain all nondominated images.

Example 11.

For k1, let G=(V,R) with V={s,v1,,vk}, R={r1,,rk+1} denote the temporal graph with |V|=k+1 nodes and |R|=k+1 arcs illustrated in Figure 2, where τ(r1)=0, λ(r1)=1, and τ(ri)=1, λ(ri)=0 for i{2,,k+1}. Let p=2. The first objective is the earliest arrival time objective (0,,τ+λ,max,0,min). The second objective is the isotonic but non-monotone objective (0,,f2,2,0,min) defined by f2:R0, f2(r1)=kk+1, f2(ri)=0 for i{2,,k}, and a2bmax{a1,b} for a,b0.

For each node vV, there exists exactly one nondominated image of an s-v-path. For v=s, this image is (0,0). For each v{v1,,vk}, the unique nondominated image is (1,0). To see this, observe that after traversing r1, the first objective attains the value 1 and remains unchanged when the cycle C=(v1,r2,v2,,rk+1,v1) is traversed, since all arcs in C have zero traversal time and start time 1. On the other hand, each traversal of C reduces the second objective value by exactly k, as long as it is positive. Starting from f2(r1)=kk+1, it therefore takes T=kk+1 traversals of C to reduce the second objective value at each node v{v1,,vk} to 0. Afterwards, further traversals of C do not change the value of either objective. Consequently, the unique nondominated image at each node v{v1,,vk} is obtained by a path that traverses C exactly T times. Such a path has length in Ω(kk+1)=Ω(|R||R|+1), which is exponential in the input size. By increasing the value of f2(r1), efficient paths of any finite length can be enforced.

Furthermore, the following example demonstrates that non-simple cycles arising from the traversal of several non-disjoint simple cycles must also be considered.

Example 12.

Let G=(V,R) with V={s,v} and R={r1,r2,r3} denote the temporal graph illustrated in Figure 2, where τ(ri)=λ(ri)=0 for each i{1,2,3}. The first objective is the earliest arrival time objective (0,,τ+λ,max,0,min). The second and third objectives are isotonic but non-monotone objectives of the form ({+},,fj,j,+,min) for j{2,3}, where the arc-value functions fj:R{+} are defined by f2(r1)=f3(r1)=f3(r2)=f2(r3)=0,f2(r2)=f3(r3)=1, and the binary operators satisfy ajbmin{a,b} for all a,b{+}, j{2,3}.

The only simple s-s-paths are the zero-arcs path P=(s) and the simple cycles C1=(s,r1,v,r2,s) and C2=(s,r1,v,r3,s), with images f(P)=(0,+,+), f(C1)=(0,1,0), and f(C2)=(0,0,1). Repeated traversals of either C1 or C2 do not yield any further improvement in any objective. However, the image f(C)=(0,1,1) of the non-simple cycle C=(s,r1,v,r2,s,r1,v,r3,s) is nondominated and cannot be obtained by repeated traversals of any single simple cycle.

Figure 1: Example graph with isotonic second objective in which nondominated images arise exclusively from paths of exponential length.
Figure 2: Example graph with isotonic second and third objectives in which a nondominated image arises exclusively from a non-simple cycle that is not a repeated traversal of a single simple cycle.

As demonstrated in Example 11, the length of efficient paths–and thus the number of iterations required by a label correcting algorithm to compute all nondominated images–cannot, in general, be bounded by any finite value known a priori. Moreover, Example 12 illustrates that non-simple cycles arising from the traversal of several non-disjoint simple cycles must be taken into account, which can, in general, be infinitely many. We therefore also consider a restricted problem variant in which a maximum admissible path length K is given as part of the input, and only paths containing at most K arcs are considered. The following definition extends the notion of efficiency to this setting.

Definition 13.

Given p1 objectives (Mj,j,fj,j,0¯j,dirj),j[p], and k, we say that an s-v-path P of length at most k is k-efficient and its image (f1(P),,fp(P)) is k-nondominated if P is not dominated by any other s-v-path of length at most k.

The problem variant with bounded path length is formally defined as follows:

Definition 14 (Single-source multiobjective temporal shortest path problem with maximum path length (SSMTSPP-MPL)).

Instance: A temporal graph G=(V,R), a start node sV, a maximum path length K, and p1 objectives (Mj,j,fj,j,0¯j,dir), j[p], the first of which is the earliest arrival time objective (0,,τ+λ,max,0,min).
Task: For each vV, compute the set of K-nondominated images of temporal s-v-paths together with a corresponding K-efficient path for each such image.

In the following sections, we present label correcting algorithms for the SSMTSPP-MPL with isotonic objectives (Section 3) and for fully general objectives (Section 4). In Section 5, we then establish sufficient conditions under which no bound on the admissible path length is required, so that our algorithms solve the general SSMTSPP. The following definition introduces labels as used by our algorithms and extends the notion of dominance to labels.

Definition 15.

Given a temporal graph G=(V,R) and p1 objectives (Mj,j,fj,j,0¯j,dirj), j[p], a label of a node vV is a (p+3)-tuple (w1,,wp,r,x,y), where wjMj, j[p], represent the values of the objectives, rδ(v) and x are the arc and the number of the label at the predecessor α(r) from which the label has been obtained, respectively, and y is the number of the label at the current node v.

Given a label l=(w1,,wp,r,x,y), the vector (w1,,wp) is called the image corresponding to l, and l is called a corresponding label for (w1,,wp). If l=(w1,,wp,r,x,y) and l=(w1,,wp,r,x,y) are two labels of the same node v, we say that l is (weakly) dominated by l if (w1,,wp) is (weakly) dominated by (w1,,wp).

3 Isotonic Objectives

In this section, we study the SSMTSPP-MPL with isotonic objectives that are not required to satisfy monotonicity in the sense of Definition 3; we refer to this variant as the isotonic SSMTSPP-MPL. This setting generalizes the classical additive case in which arc costs may be negative. In that case, isotonicity holds trivially, whereas monotonicity fails whenever negative arc values are permitted.

Our label correcting algorithm for isotonic objectives is given in Algorithm 1. Due to isotonicity, nondominated images can arise only from extensions of nondominated labels. Hence, dominated labels can be discarded in each iteration.

Algorithm 1: Multiobjective Temporal Label Correcting Algorithm for Isotonic Objectives.
INPUT: temporal graph G=(V,R), start node sV, maximum path
length K, p1 isotonic objectives (Mj,j,fj,j,0¯j,dirj), j[p],
where (M1,1,f1,1,0¯1,dir1) is the earliest arrival time objective
OUTPUT: for each vV, the set of labels corresponding to all
K-nondominated images of s-v-paths
1. initialize L(v,k)[] for each vV and each k{0,,K}
2. add label (0¯1,,0¯p,none,none,1) to L(s,0)
3. z1
4. for k=0,,K do
5. for vV do
6. L(v,k+1)=L(v,k)
7. for vV with L(v,k) do
8. for rδ+(v) do
9. uω(r)
10. for l=(w1,,wp,r,x,y)L(v,k) do
11. if τ(r)w1 then
12. zz+1
13. l(w11f1(r),,wppfp(r),r,y,z)
14. if l is not weakly dominated by any l~L(u,k+1) then
15. delete all labels in L(u,k+1) dominated by l
16. add l to L(u,k+1)
17. if L(v,k+1)=L(v,k) for all vV or k=K then
18. return L(v,k) for all vV

Observe that the earliest arrival time objective (0,,τ+λ,max,0,min) is isotonic. Hence, using it as the first objective is consistent with the assumptions of Algorithm 1.

We begin by establishing two propositions concerning the label sets L(v,k) generated by Algorithm 1. Their proofs adapt the main arguments used in the correctness proof of the label correcting algorithm for the static multiobjective shortest path problem (see, e.g., [6]) to the temporal setting with isotonic objectives.

Proposition 16.

Suppose that Algorithm 1 is executed without the first stopping criterion (i.e., L(v,k+1)=L(v,k) for all vV) in line 17. Then, for each vV and each kK, the label set L(v,k) generated by Algorithm 1 contains a corresponding label for each image of a k-efficient s-v-path.

Proof.

Note that, without the first stopping criterion, Algorithm 1 performs all iterations k=0,,K before returning the label sets L(v,K) for all vV in line 18. Moreover, for each vV and 0kK, each label in L(v,k) corresponds to an image of an s-v-path of length at most k.

We prove the statement by induction on k. For k=0, the statement holds since the zero-arcs path P=(s) is the only path of length 0 with start node s, and a corresponding label is added to L(s,0) in line 2.

Now suppose the statement holds for all label sets L(v,i) with vV and 0ik. Assume for contradiction that there exists a node vV and a (k+1)-efficient s-v-path P=(s,r1,v1,,r1,v1,r,v), k+1, such that no label corresponding to its image (f1(P),,fp(P)) is contained in L(v,k+1). If k, then P is k-efficient as well, so a label corresponding to its image is contained in L(v,k) by induction and, thus, added to L(v,k+1) in line 6 of iteration k. By (k+1)-efficiency of P, this label cannot be deleted from L(v,k+1) afterwards, which contradicts the choice of P. Thus, we may assume in the following that =k+1. Hence, the s-v1-path P(s,r1,v1,,r1,v1) has length 1=k0. If there exists a label in L(v1,k) that corresponds to the image of P, then, as rδ+(v1) and τ(r)τ(r1)+λ(r1), a label corresponding to the image of P would be created and, since P is (k+1)-efficient, this label would be added to and kept in L(v,k+1), which contradicts the choice of P. Thus, we can assume that L(v1,k) does not contain a label corresponding to the image of P. By induction hypothesis, this implies that P must be dominated by some k-efficient s-v1-path P′′, and a label l′′ corresponding to the image of P′′ must be contained in L(v1,k). Moreover, since the first objective is the earliest arrival time objective, the dominating path P′′ must arrive at v1 no later than P, which means that (P′′,r,v) is a temporal s-v-path for which a corresponding label l would have been created when extending the label l′′ using the arc r. But since P′′ dominates P, isotonicity of the objectives implies that (P′′,r,v) weakly dominates P=(P,r,v). Since (P′′,r,v) has length at most k+1 and P is (k+1)-efficient, this implies that (P′′,r,v) and P have the same image, for which l is a corresponding label. By (k+1)-efficiency of P, this label would have been added to and kept in the label set L(v,k+1), which contradicts the choice of P.

Proposition 17.

Suppose that Algorithm 1 is executed without the first stopping criterion (i.e., L(v,k+1)=L(v,k) for all vV) in line 17. Then, for each vV and each kK, each label in the set L(v,k) generated by Algorithm 1 corresponds to an image of a k-efficient s-v-path.

Proof.

For k=0, the claim holds since the only label added to any label set L(v,0) is the initial label (0¯1,,0¯p,none,none,1) added to L(s,0) in line 2, which corresponds to the image of the 0-efficient zero-arcs path P=(s) (the only path of length 0 starting at s). So now, let k[K] and let l=(w1,,wp,r,x,y)L(v,k) be a label for some vV. We inductively define rkr as the arc from which label l has been obtained, rk1 as the arc from which the x-th label in L(α(rk),k1) has been obtained, and so forth until the label (0¯1,,0¯p,none,none,1)L(s,0) is obtained, which must happen after at most k steps since the second parameter of the label set decreases by one in each step. By construction, the image of the resulting s-v-path P=(s,rkj,vkj,rk,v) corresponds to the label l. The path is temporal since, due to line 11 of the algorithm, labels are only extended using further arcs if the first component of the label corresponding to the arrival time at the current node is no larger than the start time of the arc.

It remains to show that P is not dominated by any other s-v-path of length at most k. Assume for a contradiction that P is dominated by such a path P. Then, by iteratively replacing P by a path of length at most k that dominates it until no such path exists anymore, we can assume that P is k-efficient. Thus, by Proposition 16, the set L(v,k) generated by the algorithm contains a label l corresponding to the image of P. Since the label l dominates the label l corresponding to P by construction, this means that l would either have not been added to L(v,k) if l was already in L(v,k) when l was created, or would have been deleted from L(v,k) when l was added. This yields the desired contradiction. The following theorem establishes the correctness of Algorithm 1.

Theorem 18.

For each node vV, the set L(v,k) returned by Algorithm 1 contains a corresponding label for each image of a K-efficient s-v-path, and each label in L(v,k) corresponds to an image of this type.

Proof.

If Algorithm 1 is executed without the first stopping criterion in line 17, the claim follows directly from Propositions 16 and 17. It therefore remains to justify the correctness of the first stopping criterion. Suppose that, in some iteration k<K, the condition L(v,k+1)=L(v,k) holds for all vV. Then no label set changes in iteration k. Since subsequent iterations depend only on the label sets produced in the previous iteration, it follows inductively that no further changes occur in any iteration k+1,,K. Hence, executing the algorithm without the first stopping criterion would yield L(v,k)=L(v,K) for all vV. Consequently, terminating the algorithm already in iteration k and returning the sets L(v,k) for all vV yields the correct output as well, which completes the proof.

After termination of Algorithm 1, the K-nondominated images corresponding to the labels in the returned sets L(v,k), vV, can be directly obtained as the vectors of the first p components of these labels and, for each such image, a corresponding path can be obtained by using the label entries providing the predecessor arcs and label numbers. Moreover, the proofs imply the following important corollary. It will form the basis for some of the sufficient conditions provided in Section 5 under which Algorithm 1 actually solves the general SSMTSPP.

Corollary 19.

Suppose that Algorithm 1 terminates in iteration k because the stopping criterion L(v,k+1)=L(v,k) holds for all vV in line 17. Then, for each vV, the returned set L(v,k) contains a corresponding label for each image of an efficient s-v-path, and each label in L(v,k) corresponds to an image of this type.

Furthermore, Proposition 17 directly yields the following result concerning the size of the label sets created during the algorithm:

Corollary 20.

In each iteration k of Algorithm 1, the size of each label set L(v,k) is bounded by the number of k-nondominated images of s-v-paths.

4 General Objectives

In this section, we present a label correcting algorithm (Algorithm 2) for the SSMTSPP-MPL in the general case where the objectives are neither required to be monotone nor isotonic. In the absence of isotonicity, labels corresponding to nondominated images may arise exclusively from extending dominated labels. Therefore, dominated labels cannot be discarded in earlier iterations, in contrast to Algorithm 1.

Algorithm 2: General Multiobjective Temporal Label Correcting Algorithm.
INPUT: temporal graph G=(V,R), start node sV, maximum path
length K, p1 objectives (Mj,j,fj,j,0¯j,dirj),j[p], where
(M1,1,f1,1,0¯1,dir1) is the earliest arrival time objective
OUTPUT: for each vV, the set of labels corresponding to all
K-nondominated images of s-v-paths
1. initialize L(v,k)[] for each vV and each k{0,,K}
2. add label (0¯1,,0¯p,none,none,1) to L(s,0)
3. z1
4. for k=0,,K do
5. for vV do
6. L(v,k+1)=L(v,k)
7. for vV with L(v,k) do
8. for rδ+(v) do
9. uω(r)
10. for l=(w1,,wp,r,x,y)L(v,k) do
11. if τ(r)w1 then
12. zz+1
13. l(w11f1(r),,wppfp(r),r,y,z)
14. if l~L(u,k+1) with the same image as l then
15. add l to L(u,k+1)
16. if L(v,k+1)=L(v,k) for all vV or k=K then
17. for vV do
18. delete all dominated labels in L(v,k)
19. return L(v,k) for all vV

The proof of correctness of Algorithm 2 is similar to the proofs of Proposition 16 and Theorem 18. The key difference is that dominated labels are removed only at the end of the final iteration kK, immediately before termination. Consequently, in all iterations k<k, each set L(v,k) generally contains not only labels corresponding to images of k-efficient paths, but one corresponding label for each possible image of an s-v-path of length at most k. As a result, the size of L(v,k) can no longer be bounded by the number of k-nondominated images of s-v-paths as in Corollary 20; in fact, it may be exponential in this number. Nevertheless, by arguments analogous to those for Algorithm 1, the following statement holds for Algorithm 2:

Corollary 21.

Suppose that Algorithm 2 terminates in iteration k because the stopping criterion L(v,k+1)=L(v,k) holds for all vV in line 16. Then, for each vV, the returned set L(v,k) contains a corresponding label for each image of an efficient s-v-path, and each label in L(v,k) corresponds to an image of this type.

Note that, for monotone but non-isotonic objectives, the same general algorithm is required since monotonicity alone does not justify discarding dominated labels in earlier iterations. Hence, all possible images must be retained until immediately before termination.

5 The SSMTSPP with Unrestricted Path Lengths

Example 11 in Section 2.1 shows that temporal paths of arbitrarily large finite length may need to be considered in the SSMTSPP, even when all objectives are isotonic. Consequently, Algorithms 1 and 2 can, in general, solve the problem only when a maximum admissible path length K is imposed. In Section 5.1, we establish several sufficient conditions under which no such bound is required. Under these conditions, Algorithm 1 correctly solves the SSMTSPP for isotonic objectives and Algorithm 2 does so for arbitrary objectives when executed for a sufficient, precomputable number of iterations. Section 5.2 then considers the specific isotonic setting of rational additive objectives, which generalizes the classical additive cost setting, and shows that executing Algorithm 1 for m=|R| iterations suffices to solve the SSMTSPP.

5.1 General Sufficient Conditions

A first sufficient condition under which Algorithms 1 and 2 find labels for all images of efficient paths of arbitrary length relates to the existence of reachable zero-duration cycles:

Theorem 22.

Suppose that the temporal graph G contains no zero-duration cycles reachable from s. Then, for isotonic objectives, executing Algorithm 1 for m iterations produces, for each vV, a label set L(v,k) such that

  1. 1.

    for every efficient s-v-path, there exists a label in L(v,k) corresponding to its image, and

  2. 2.

    every label in L(v,k) corresponds to the image of some efficient s-v-path.

Moreover, Algorithm 2 with Km achieves the same guarantee for arbitrary objectives.

Proof.

It suffices to show that no s-v-path of length greater than m exists for any node vV. Any such path would traverse some temporal arc rR more than once, implying the existence of a zero-duration cycle reachable from s, namely the α(r)α(r)-subpath between two consecutive traversals of r. This contradicts the assumption, and the claim follows.

Note that the condition that the temporal graph G contains no zero-duration cycles reachable from s can be verified in polynomial time.222First, compute the earliest arrival time for every node vV with the approach from [16]. Then, for each timestamp t for which an arc rR with τ(r)=t and λ(r)=0 exists, construct the subgraph induced by all nodes whose earliest arrival time is at most t and by all zero traversal time arcs with start time t. There are at most m such subgraphs, each computable in polynomial time. Finally, perform a depth-first search in each subgraph to check whether it contains a cycle.

Another case where the argumentation from the above proof can be used is when a positive minimum waiting time Δ(v)>0 is imposed at each node vV, a constraint that is common in temporal network settings (see, e.g., [3]). In this case, the condition that τ(ri)+λ(ri)τ(ri+1) for each i[k1] must hold for a temporal path P=(v0,r1,v1,,rk,vk) is replaced by τ(ri)+λ(ri)τ(ri+1)Δ(vi) for each i[k1] to enforce the minimum waiting time at each intermediate node of the path. This condition can be incorporated directly into Algorithms 1 and 2 by replacing line 11 by the following to ensure that labels are only extended if the required minimum waiting time is achieved at the current node v:

11. if τ(r)w1+Δ(v) then

It is easy to see that the proofs of correctness for both algorithms generalize directly to the modified versions. Moreover, no arc can ever be traversed twice in the presence of a positive minimum waiting time at each node, so we obtain the following corollary:

Corollary 23.

Suppose that a positive minimum waiting time Δ(v)>0 is imposed at each node vV. Then, for isotonic objectives, executing Algorithm 1 for m iterations produces, for each vV, a label set L(v,k) such that

  1. 1.

    for every efficient s-v-path, there exists a label in L(v,k) corresponding to its image, and

  2. 2.

    every label in L(v,k) corresponds to the image of some efficient s-v-path.

Moreover, Algorithm 2 with Km achieves the same guarantee for arbitrary objectives.

Note that, in the situations described in Theorem 22 and Corollary 23, a nondominated image may arise exclusively from paths of length greater than n, as a positive-duration temporal cycle might need to be traversed once to obtain it. Consequently, in contrast to the static case with additive cost objectives, m rather than n must be used as the maximum number of iterations in the algorithms.

While the previous results use the temporal graph structure to bound the required number of iterations of the algorithms, the following proposition instead relies on the number of values that the objectives can take.

Proposition 24.

Suppose that, for each node vV, at most κ distinct images of s-v-paths exist. Then, for isotonic objectives, the stopping criterion L(v,k+1)=L(v,k) for all vV in line 17 of Algorithm 1 is satisfied after at most mκ iterations and the algorithm produces, for each vV, a label set L(v,k) such that

  1. 1.

    for every efficient s-v-path, there exists a label in L(v,k) corresponding to its image, and

  2. 2.

    every label in L(v,k) corresponds to the image of some efficient s-v-path.

Moreover, Algorithm 2 satisfies the stopping criterion L(v,k+1)=L(v,k) for all vV in line 16 after at most mκ iterations and achieves the same guarantee for arbitrary objectives.

Proof.

By Corollaries 19 and 21, it suffices to show that the stopping criterion is satisfied after at most mκ iterations. We first establish this claim for Algorithm 1 and then explain how the argument extends to Algorithm 2.

Assume for a contradiction that the stopping criterion L(v,k+1)=L(v,k) for all vV is not satisfied in Algorithm 1 after at most mκ iterations. Then L(v,mκ+1)L(v,mκ) must hold for some node vV in iteration mκ. Thus, there is either a label lL(v,mκ+1) that is not in L(v,mκ), or there is a label lL(v,mκ) that is not in L(v,mκ+1). The latter implies that l was removed in iteration mκ because a new label dominating it was created. Therefore, in both cases, a new label l is added to L(v,mκ+1) in iteration mκ. By Proposition 17, this can only be the case if no label weakly dominating l arises from any s-v-path of length at most mκ. Hence, the s-v-path P obtained from l using the predecessor arcs and label numbers as in the proof of Proposition 17 has length |P|>mκ. Since |P|>mκ, there must be at least one arc rR that was used κ(r)κ+1 times in P. We let P=(P1,,Pκ(r),P) denote the partition of P into subpaths such that the subpath Pi, i[κ(r)], ends at node ω(r) right after the ith traversal of arc r. Then all the κ(r)κ+1 many s-ω(r)-paths (P1,,Pi), i[κ(r)], must have pairwise distinct images since, otherwise, omitting at least one of the nonempty subpaths Pi in P=(P1,,Pκ(r),P) would have resulted in a path of length at most mκ with the same image as P. This contradicts the assumption that there exist at most κ different images of s-v-paths.

The argument for Algorithm 2 is analogous. Suppose that L(v,mκ+1)L(v,mκ) for some node vV. Then at least one new label lL(v,mκ) must have been created for v in iteration mκ, and l does not arise from any s-v-path of length at most mκ. The remainder of the proof is identical to the argument given above for Algorithm 1.

A bound κ on the number of distinct images at each node, as required in Proposition 24, can in particular be obtained if, for each objective j[p], an upper bound κ(j)1 on the number of values that objective j can attain at a node is known, which yields:

Corollary 25.

Suppose that, for each objective j[p] and each node vV, the number of values that objective j can attain over all temporal s-v-paths is bounded by κ(j)1. Then, with κj=1pκ(j), the stopping criterion L(v,k+1)=L(v,k) for all vV is satisfied after at most mκ iterations in line 17 of Algorithm 1 and in line 16 of Algorithm 2. Consequently, both algorithms achieve the guarantee stated in Proposition 24.

Corollary 25 applies immediately if the set Mj is finite for each objective (Mj,j,fj,j,0¯j,dirj). For example, this holds for the objective ({1,0,1},,f,,1,min), which is neither isotonic nor monotone. More generally, it suffices that the closure cl(fj(R))Mj of the arc values under j is finite. As an illustration, consider the non-isotonic objective (,,f,,0,max) defined by abb if a=0 or a=b, and ab0 otherwise, for a,b. Interpreting each value as a category, maximizing the objective corresponds to finding a path whose arcs share the same, largest possible category. In this case, |cl(fj(R))|m+1.

A related application of Corollary 25 is based on the observation that, for each objective j[p] and node vV, the number of attainable values is bounded by (|δ(v)|+1)m+1 times the maximum number attainable by s-v-paths sharing the same last arc, where the additional +1 accounts for the zero-arcs path when s=v. An analogous bound using (|δ+(s)|+1)m+1 holds for paths sharing the same first arc. Since the arrival time of a path depends only on its last arc and the start time only on its first arc, it follows that for both the earliest arrival time objective (0,,τ+λ,max,0,min) and the latest start time objective (0{+},,τ,min,+,max), the number of attainable values at any node v is bounded by m+1. Similar reasoning applies to many objectives that are neither isotonic, monotone, nor commutative. For instance, consider the objective ({},,f,,,min) defined by abb if ab, and ab0 otherwise. Every path ending with an arc rR can then attain only the two values 0 and f(r), implying that the number of attainable values at any node v is bounded by 2m+1.

5.2 Rational Additive Objectives

In this subsection, we consider objectives that are additive over the rational numbers.

Definition 26.

An objective (,,f,+,0,dir), where + denotes addition on , the standard order, and dir{min,max}, is called rational additive.

We refer to the variant of the SSMTSPP in which the first objective is the earliest arrival time objective and the remaining p1 objectives are rational additive as the additive SSMTSPP. Rational additive objectives are clearly isotonic.

Based on this structure, we consider a modified version of Algorithm 1. The algorithm is executed with Km and differs only in its termination rule, which is replaced as follows in order to detect improving cycles.

Algorithm 3: Multiobjective Temporal Label Correcting Algorithm for Additive Objectives.
17. if L(v,k+1)=L(v,k) for all vV then
18. return L(v,k) for all vV
19. if k=m then
20. return ‘‘an improving cycle exists’’

The same arguments as for Algorithm 1 show that Propositions 16 and 17 remain valid for Algorithm 3 with Km. Moreover, Corollary 19 applies as well. Hence, if Algorithm 3 terminates in line 18, then, for each vV, the returned label set L(v,k) contains a corresponding label for each image of an efficient s-v-path and only such labels. Based on these observations, the following two propositions show that Algorithm 3 either computes all nondominated images of paths of arbitrary length or correctly detects an improving cycle.

Proposition 27.

If the temporal graph G contains an improving cycle, then Algorithm 3 terminates in line 20 and correctly reports its existence.

Proposition 28.

If the temporal graph G contains no improving cycle, then Algorithm 3 terminates in line 18 and, for each vV, the returned label set L(v,k) contains a corresponding label for each image of an efficient s-v-path and only such labels.

Propositions 27 and 28 immediately yield the main theorem of this subsection.

Theorem 29.

If the temporal graph G contains an improving cycle, then Algorithm 3 correctly reports its existence. Otherwise, for each node vV, the set L(v,k) returned by Algorithm 3 contains a corresponding label for each image of an efficient s-v-path and only such labels.

6 Conclusion

In this paper, we present the first algorithms for the single-source multiobjective temporal shortest path problem that do not rely on monotonicity or isotonicity assumptions on the objectives. Our results show that removing these structural assumptions fundamentally changes the behavior of the problem. This already holds for static graphs, where our algorithms can also be applied. Even for isotonic but non-monotone objectives, phenomena arise that have no analogue in static shortest path problems with additive objectives. In particular, arbitrarily long paths may need to be considered to generate all nondominated images, even in the absence of improving cycles. As a consequence, it remains open whether a label correcting algorithm can guarantee termination within a predefined number of iterations in general while still identifying all nondominated images or detecting improving cycles.

An interesting question for future research therefore concerns the computational complexity of deciding whether a given temporal graph with general objectives contains an improving cycle. Another natural direction is to identify additional sufficient conditions under which no bound on the maximum admissible path length is required. Finally, while our label correcting algorithms extend naturally to the all-pairs variant of the multiobjective temporal shortest path problem, designing more efficient algorithms for this setting remains an interesting topic for future work.

References

  • [1] C. Bazgan, J. Kager, C. Thielen, and D. Vanderpooten. A general label setting algorithm and tractability analysis for the multiobjective temporal shortest path problem. Networks, 85(1):76–90, 2025. doi:10.1002/NET.22253.
  • [2] R. Bellman. On a routing problem. Quarterly of Applied Mathematics, 16(1):87–90, 1958. doi:10.1090/qam/102435.
  • [3] M. Bentert, A.-S. Himmel, A. Nichterlein, and R. Niedermeier. Efficient computation of optimal temporal walks under waiting-time constraints. Applied Network Science, 5(1):73, 2020. doi:10.1007/s41109-020-00311-0.
  • [4] F. Brunelli, P. Crescenzi, and L. Viennot. On computing pareto optimal paths in weighted time-dependent networks. Information Processing Letters, 168(106086):1–7, 2021. doi:10.1016/j.ipl.2020.106086.
  • [5] R. L. Carraway, T. L. Morin, and H. Moskowitz. Generalized dynamic programming for multicriteria optimization. European Journal of Operational Research, 44(1):95–104, 1990. doi:10.1016/0377-2217(90)90318-6.
  • [6] H. W. Corley and I. D. Moon. Shortest paths in networks with vector weights. Journal of Optimization Theory and Applications, 46(1):79–86, 1985. doi:10.1007/BF00938761.
  • [7] M. Ehrgott. Multicriteria Optimization. Springer, 2005. doi:10.1007/3-540-27659-9.
  • [8] L. R. Ford Jr. Network flow theory. Technical Report P-923, RAND Corporation, 1956.
  • [9] H. W. Hamacher, S. Ruzika, and S. A. Tjandra. Algorithms for time-dependent bicriteria shortest path problems. Discrete Optimization, 3(3):238–254, 2006. doi:10.1016/j.disopt.2006.05.006.
  • [10] P. Holme and J. Saramäki. Temporal networks. Physics Reports, 519(3):97–125, 2012. doi:10.1016/j.physrep.2012.03.001.
  • [11] P. Holme and J. Saramäki. Temporal Network Theory. Springer, 2019. doi:10.1007/978-3-030-23495-9.
  • [12] E. Q. V. Martins. On a multicriteria shortest path problem. European Journal of Operational Research, 16(2):236–245, 1984. doi:10.1016/0377-2217(84)90077-8.
  • [13] J. Paixão and J. Santos. Labeling methods for the general case of the multi-objective shortest path problem – a computational study. In A. Madureira, C. Reis, and V. Marques, editors, Computational Intelligence and Decision Making - Trends and Applications, volume 61, pages 489–502. Springer, 2013. doi:10.1007/978-94-007-4722-7_46.
  • [14] L. B. Reinhardt and D. Pisinger. Multi-objective and multi-constrained non-additive shortest path problems. Computers and Operations Research, 38(3):605–616, 2011. doi:10.1016/j.cor.2010.08.003.
  • [15] Z. Wang and Y. Ye. Hidden-city ticketing: The cause and impact. Transportation Science, 50(1):288–305, 2015. doi:10.1287/trsc.2015.0587.
  • [16] H. Wu, J. Cheng, Y. Ke, S. Huang, Y. Huang, and H. Wu. Efficient algorithms for temporal path computation. IEEE Transactions on Knowledge and Data Engineering, 28(11):2927–2942, 2016. doi:10.1109/TKDE.2016.2594065.