Abstract 1 Introduction 2 Preliminaries 3 The sufficient conditions for short journeys 4 Lower bounds for the sufficient conditions 5 Applications 6 Conclusion References

On Sufficient Conditions for Short Journeys in Temporal Graphs

David Ilcinkas ORCID Univ. Bordeaux, CNRS, Bordeaux INP, LaBRI, UMR 5800, F-33400 Talence, France    Nils Morawietz ORCID Univ. Bordeaux, CNRS, Bordeaux INP, LaBRI, UMR 5800, F-33400 Talence, France
Institute of Computer Science, Friedrich Schiller University Jena, Germany
   Antoine Toullalan ORCID Université Le Havre Normandie, Univ Rouen Normandie, INSA Rouen Normandie, Normandie Univ, LITIS UR 4108, F-76600 Le Havre, France
Abstract

A temporal graph is defined as a sequence (G1,G2,,GL) of static graphs on a common set of n vertices. A strict journey in a temporal graph is the temporal analogue of a path in a static graph, in which at most one edge may be traversed at each time step.

There exists a notable connection between the existence of paths in static graphs and the existence of strict journeys in specific temporal graphs. A well-known folklore result, commonly referred to as the Reachability Lemma, states that for two vertices u and v, if there are at least n1 time steps during which a path connects u and v, then a strict journey from u to v exists.

Our main theorem extends this lemma. Under the same assumptions as those of the Reachability Lemma, we prove that a strict journey from u to v exists and the number of edges traversed by such a journey admits a non-trivial upper bound. Furthermore, this bound converges toward the average length of the paths connecting u and v as the number of such paths increases. A corresponding lower bound is also established.

In the second part of this work, we investigate the setting in which every path connecting vertices u and v has length at most a given integer k. For an integer bk, we characterize the sufficient number of time steps containing such a path that guarantees the existence of a journey from u to v traversing at most b edges. We derive an upper bound of nk1bk+1(b1)+k, and a lower bound of nk1bk+1(b1)+r+k1, where r=(nk1mod(bk+1)). Finally, we present several applications of the first theorem, with particular emphasis on always connected temporal graphs, that is, temporal graphs where at each time step the graph is connected.

Keywords and phrases:
Graph Theory, Temporal Graph, Temporal Graph Exploration
Copyright and License:
[Uncaptioned image] © David Ilcinkas, Nils Morawietz, and Antoine Toullalan; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Graph theory
Funding:
This work was supported by the French ANR, project ANR-22-CE48-0001 (TEMPOGRAL).
Editors:
George B. Mertzios and Andréa W. Richa

1 Introduction

An important tool for modeling networks is graph theory. However, many real-world networks evolve over time, as connections may appear or disappear – for instance, in railway systems or social networks – and therefore cannot be adequately represented by classical static graphs. To capture such dynamics, temporal graphs have been introduced. In these models, each edge is associated with the time steps at which it is present. In recent years, temporal graphs have attracted significant attention in the study of complexity-theoretic problems [3, 8, 18], combinatorial problems [24], and reachability problems [2, 4, 19]. We refer the reader to the surveys [10, 25] for an overview of the area.

More formally, a temporal graph 𝒢 with lifetime L is typically defined as a sequence of undirected graphs (G1,G2,,GL), called snapshots, that share a common vertex set of size n. A temporal edge is an edge that appears at a given time step. Since the edge set may vary over time, the classical notion of a path must be adapted to prevent the traversal of edges at time steps when they are absent.

In a temporal graph, the analogue of a path connecting two vertices u and v is a journey (also referred to as a temporal walk), defined as a sequence of temporal edges from u to v whose time labels are non-decreasing. A journey is said to be strict if it traverses at most one edge per time step; otherwise, it is non-strict.

While a journey generalizes the concept of a path in static graphs, there is no unique analogue to the notion of a shortest path in temporal graphs, as several optimization criteria may be considered. In particular, one may minimize the number of edges traversed (shortest journeys), the arrival time (foremost journeys), or the duration between departure and arrival (fastest journeys). These criteria are examined in greater detail in the work of Bui Xuan et al. [30]. Numerous reachability problems have been investigated in temporal graphs [15, 22, 29, 27] where the objective is to compute a journey satisfying specified properties. Also, Casteigts et al. [9] proposed a hierarchy of temporal graphs based on their expressivity, they prove that these families are associated to different reachability properties.

One of the most widely studied problems in this area is the Temporal Exploration Problem (TEXP) [1, 6, 13, 15, 16, 17, 21, 20, 26, 5], which was formally introduced and named by Michail et al. [26]. The objective of TEXP is to determine a journey that visits all vertices of a temporal graph. Deciding whether such a temporal exploration exists is NP-hard in the general case [26].

This hardness result has motivated the study of TEXP on always connected temporal graphs, namely temporal graphs that are connected at every time step [1, 6, 15, 16, 17, 20, 21]. These graphs have received particular attention because any always connected temporal graph can be explored within (n1)2 time steps [26]. This bound is a corollary of the folklore result known as the Reachability Lemma, first introduced by Kuhn et al. [23] in the context of dynamic networks and later formalized by Erlebach et al. [15]. The lemma states that if two vertices u and v are connected by a path during at least n1 distinct time steps, then there exists a strict journey from u to v over these time steps.

For always connected temporal graphs, a substantial body of work has focused on variants of TEXP that minimize the arrival time, referred to as foremost temporal exploration [15, 20, 1, 21, 17, 16, 7]. More recently, attention has also been given to variants of TEXP that minimize the number of edges traversed, known as shortest temporal exploration [6].

Another extensively studied class of reachability problems in temporal graphs concerns the computation of journeys that optimize at least one of the three criteria introduced above. Wu et al. [28] proposed pseudo-polynomial algorithms for computing shortest, foremost, and fastest strict journeys in general temporal graphs. The case where the temporal graph is directed at every time step was investigated by Cheng [11], who presented a pseudo-polynomial algorithm for computing shortest journeys. Enright et al. [14] present complexity results on the problem of counting the number of foremost and fastest journeys between two vertices. Danda et al. [12] studied a bicriteria optimization problem that consists of finding, among all fastest journeys, one that is shortest. We note that the notion of a shortest journey adopted by Danda et al. [12] differs from the definition used in this article: in their model, each temporal edge is associated with a traversal time that may exceed one time step, so a shortest journey is defined as one that minimizes the total sum of traversal times.

While significant research efforts have focused on the complexity analysis of these problems and on the development of efficient algorithms, comparatively little work has addressed the combinatorial bounds associated with shortest, foremost, and fastest journeys. Notable contributions adopting such a combinatorial viewpoint include the work of Erlebach et al. [15], which formalized the Reachability Lemma, and the work of Balev et al. [6], which establishes that if there exist kn time steps during which two vertices u and v are connected by a path of length at most k, then there exists a strict journey from u to v whose length is at most k. Bastide et al. [7] refine the Reachability Lemma by studying the connectivity within sets of vertices in always-connected temporal graphs. In this paper, we extend these results by characterizing the length (that is, the number of edges traversed) of the shortest strict journey between two vertices that are connected by paths during τ time steps, where τn1. In this regime, the existence of a strict journey is guaranteed by the Reachability Lemma.

Our results.

In Section 3, we present our main result, namely Theorem 3.4, which extends the well-known “Reachability Lemma”. This theorem states that, in a temporal graph, if there exists a set T of time steps with |T|n1 such that, for every tT, the vertices u and v are connected by a path, and if the average length of these paths is k, then there exists a strict journey from u to v that traverses at most |T||T|n+2(k2)+2 edges. In particular, this bound converges rapidly to the average path length k as the number of time steps in T increases.

We then consider a restricted case in which every path connecting u and v has length at most a fixed integer k. We prove that, given the integers k and b such that 1<kb<n, the number of time steps containing a path of length k between u and v that is sufficient to guarantee the existence of a strict journey of length at most b is at most nk1bk+1(b1)+k.

In Section 4, we establish lower bounds to the sufficient conditions derived in Section 3. For the restricted case, for given integers n, k, and b, we construct a family of temporal graphs on n vertices such that the shortest journey from u to v has length strictly larger than b although u and v are connected by a path of length exactly k in many time steps. The obtained lower bound on the sufficient number of paths of length at most k to guarantee a journey of length at most b is nk1bk+1(b1)+r+k1, where r=(nk1mod(bk+1)). In this restricted case, the upper and lower bounds are tight whenever nk1 is a multiple of bk+1.

We derive a non-trivial lower bound corresponding to the main theorem. More precisely, for parameters n>0 and k<n/2, we construct a temporal graph on n vertices and a set T of time steps with |T|>4(n2) such that, for every tT, the vertices u and v are connected by a path and the average length of these paths is k. In this construction, the shortest journey from u to v has length |T||T|n+2(k2)+1.

Finally, in Section 5, we present several applications of the main theorem. We focus on always connected temporal graphs and establish an upper bound on the temporal diameter, defined as the maximum length of a shortest journey, in the case where each snapshot has diameter at most k. We then derive analogous results for the case where each snapshot has bounded average shortest-path length, as well as for the case where there exists a vertex u whose closeness centrality is bounded in every snapshot.

2 Preliminaries

Firstly, we give a formal definition of temporal graphs.

Definition 2.1 (Temporal graph).

A temporal graph 𝒢 with a vertex set V and a lifetime L is a sequence of static graphs (G1,G2,,GL) where Gi=(V,Ei) is called the snapshot at the time step i[1,L]. The underlying graph of 𝒢 is G=(V,E) with V the vertex set of 𝒢 and E the union of the edge sets of all the snapshots of 𝒢.

Note that the initial time step is time step 1.

We now introduce the classical notion of a path in a snapshot.

Definition 2.2 (Path).

Let 𝒢 be a temporal graph. A path between the vertices uV and vV at the time step t is a sequence of vertices (w0,w1,,wl) such that i[0,l1],wiwi+1Et, w0=u and wl=v. The length of the path is the number l of edges.

Next, we present the definition of a strict journey in a temporal graph, which is the temporal equivalent of a path.

Definition 2.3 (Strict Journey).

Let 𝒢 be a temporal graph. A strict journey from a vertex uV to a vertex vV is a sequence ((v0v1,t1),(v1v2,t2),,(vl1vl,tl)) such that:

  • t1<t2<<tl (strictly increasing time steps),

  • vivi+1Eti for every i[0,l1],

  • v0=u and vl=v.

In other words, an agent can move from u to v by traversing the edges in the given order at the specified time steps. The length of the journey is l, i.e., the number of edges traversed.

In this paper, we focus on strict journeys of minimum length, that is, journeys minimizing the number of traversed edges. Since only strict journeys are considered, the term journey will henceforth refer to a strict journey.

We now recall the “Reachability Lemma”.

Lemma 2.4 (Reachability Lemma [15]).

Let 𝒢 be a temporal graph with vertex set V, and let u,vV be two distinct vertices. If there exist n1 time steps at which u and v are connected by a path, then there exists a strict journey from u to v.

The intuition behind the proof is the following. Consider a time step t at which u and v are connected by a path in Gt. If v is not reachable from u at time t, then there must exist a vertex w on this path that is not yet reachable from u at time t, but that is adjacent to a vertex w which is reachable from u at time t (that is, there exists a journey from u to w with arrival time at most t). Consequently, vertex w becomes reachable from u at time t+1. So after n1 such time steps, there is a strict journey from u to v. A more formal proof is the proof of Lemma 2.1 in this article by Erlebach et al. [15].

In the final section, applications of Theorem 3.4 are presented, establishing bounds on various topological and centrality measures in always connected temporal graphs. In particular, closeness centrality in this class of temporal graphs is studied. For this purpose, we recall the following definition of closeness centrality in static graphs.

Definition 2.5 (Closeness centrality (in static graphs)).

Let G=(V,E) be a connected static graph with n vertices. The closeness centrality of the vertex u is C(u)=n1vVd(u,v) with d(u,v) the length of a shortest path connecting u and v.

Throughout this paper, we adopt the following notations. Let u and v be two vertices and let t be a time step. A path in a snapshot between u and v is denoted by uv. If this path appears in the snapshot at time step t and has a length at most k, we write u(k,t)v, or simply ukv when no ambiguity arises. Similarly, a journey J from u to v consisting of at most b edges is denoted by ubv, and its length (i.e., its number of edges traversed) is denoted by |J|. If, in addition, the arrival time of such a journey is at most t, we write u(b,t)v. Furthermore, given a temporal graph with vertex set V, a parameter b, and a pair of vertices (u,v), we use the following notation. Let n=|V|. For every vertex wV and every time step t, we define the local potential t(w).

t(w)={b+1if there is no journey u(b,t)wminJ:u(b,t)w|J|otherwise 

Moreover, we associate with each time step t the potential function Φt=wVt(w) and the set At={wV{v}t(w)=b+1}. That is, At contains those vertices w (excluding v) for which there is no journey u(b,t)w. By definition, for any w and t<L, we have t+1(w)t(w), Φt+1Φt, and At+1At.

3 The sufficient conditions for short journeys

In this section, we establish sufficient conditions on the number and lengths of paths connecting two distinct vertices u and v to guarantee the existence of a journey from u to v that traverses at most b edges. We first present general technical tools. They are used to obtain upper bounds on the length of the obtained journeys, and then on the number of paths of a given length that is sufficient to obtain a journey of a prescribed maximum length.

3.1 Technical Tools

We prove in this subsection that the potential must decrease between the steps t and t+1 when there exists a path u(b,t)v and there is no journey u(b,t)v. Without loss of generality, all the paths considered in this paper are elementary.

We start by describing the situation in the first time steps, in which the loss of potential is necessarily large. For example, at the very beginning, 1(w)=b+1 for any vertex wu (recall that the initial time step is time step 1). After one time step with a path from u to v, any neighbor w of u in that time step has local potential 1, and thus the potential loss is at least b. The following lemma extends this observation to the first few such time steps.

Lemma 3.1.

Let 𝒢 be a temporal graph on n vertices, let i and b be integers that satisfy 1<ib+1n, and let (u,v) be a pair of distinct vertices such that there is a path uv at each time step. If i1(v)=b+1, then Φi(ni)b+(i2)+|Ai|+1.

Proof.

We prove that the following proposition 𝒫(i) is true for i[1,i] (it is the conjunction of two propositions).

𝒫(i):{wV,i(w)<i or i(w)=b+1 0j<i,|{wi(w)j}|j+1

Proposition 𝒫(i) describes the possible values of the local potentials at time step i: any local potential smaller than b+1 must in fact be smaller than i, and there are at least j+1 vertices with local potentials at most j, for any j<i.

We assume that i1(v)=b+1 and we prove by induction that for any 1ii, 𝒫(i) holds. First 𝒫(1) holds because at t=1, 1(u)=0 and wV{u},1(w)=b+1, so |{w1(w)0}|1.

Let us assume now that 𝒫(i) holds, for some 1ii1, and show that 𝒫(i+1) holds. Let a and c be vertices in the path uv at time step i such that c{wi(w)i1}, c is adjacent to a at time step i, and a{wi(w)i1}. The vertices a and c exist on this path because i(u)=0 so u{wi(w)i1} and i(v)=b+1 so v{wi(w)i1}. So at the time step i+1, we have i+1(c)i(a)+1i, and |{wi+1(w)i}||{wi(w)i1}|+1i+1 because c{wi(w)i1} and c{wi+1(w)i}, and by the induction hypothesis |{wi(w)i1}|i.

Furthermore, by the induction hypothesis, any vertex w satisfies i(w)[1,i1]{b+1}. Therefore, any vertex w satisfies i+1(w)[1,i]{b+1}. Since

 0j<i,|{wi+1(w)j}||{wi(w)j}|j+1

by the induction hypothesis, we finally have that 𝒫(i+1) holds. So we have proven that 𝒫(i) holds for 1ii.

By proposition 𝒫(i), at the time step i there is a set S of i vertices such that

wSi(w)0+1+2++i1=(i2)

and

wV(SAi{v}),i(w)i1

so Φi(|Ai|+1)(b+1)+(i2)+(n(|Ai|+1)i)(i1). Since i1b, we obtain the desired inequality.

The next lemma shows that the potential function Φ decreases at each time step t during which there exists a path connecting u and v of length dt by at least some amount depending on dt, provided that no journey of length at most b from u to v exists so far.

Lemma 3.2.

Let 𝒢 be a temporal graph, and let b be an integer such that 0<b<n. Suppose there exists a pair of distinct vertices (u,v) and a time step t>0 such that there is a path uv of length dt at time t. If t(v)=b+1, then ΦtΦt+1bdt+1+|At||At+1|.

Proof.

By assumption, there is a path (w0,w1,,wdt) in Gt with w0=u and wdt=v. Let f be minimum such that t(wf)=b+1 (it exists because t(wdt)=b+1), and let I={i[1,f]t(wi1)<t(wi)}.

Given that t(u)=0 and t(wf)=b+1, we have that iI(t(wi)t(wi1))b+1 (see Figure 1). By definition of the local potential, we have t+1(wi)t(wi1)+1 for each iI. So we obtain

iIt(wi)iI(t+1(wi)1)b+1,

and we deduce that

iIt(wi)iIt+1(wi)b+1|I|.

Note that |I|fdt|At{wf,,wdt1}| (see Figure 1). Also, for any wAt(At+1{wf,,wdt1}), we have t(w)t+1(w)1. Overall, since At+1At and vAt, we have (At{wf,,wdt1})(At(At+1{wf,,wdt1}))AtAt+1. Note that the latter is a disjoint union. Based on this, we conclude

ΦtΦt+1 iIt(wi)iIt+1(wi)+w{wiiI}(t(w)t+1(w))
b+1|I|+|At(At+1{wf,,wdt1})|
b+1dt+|At{wf,,wdt1}|+|At(At+1{wf,,wdt1})|
bdt+1+|At||At+1|.

This completes the proof.

Figure 1: An example of a path u(dt,t)v with dt>5. All the directed edges wi1wi with iI and the vertices in the set At{wf,,wdt1} are represented in red.

Finally, we study what happens in the last time steps before there exists a journey ubv. Intuitively, either the potential is still a bit large at the end, or more than the usual amount of potential was lost in the last steps. In order to express that more formally, we show that the potential cannot be too small a few time steps before a time step t such that t(v)=b+1. For example, at time t1, there must exist a vertex wv which has local potential at least b and which prevented v to lose potential between time t1 and t.

Lemma 3.3.

Let 𝒢 be a temporal graph on n vertices, let i and b be integers that satisfy 1<ib+1n, and let (u,v) be a pair of distinct vertices such that there is a path uv at each time step. Given a time step t, if ti and t(v)=b+1, then Φti+1(bi)i+(i+12)+|Ati+1|+n1.

Proof.

Let ti with t(v)=b+1.

In the first part, we prove by induction on i that the following proposition 𝒬(i) is true for each i[1,i]. This proposition states that, for any 0j<i, at least j+1 vertices have local potential at least b+1j at time t+1i.

𝒬(i): 0j<i,|{wt+1i(w)b+1j}|j+1

Firstly, 𝒬(1) holds because at time t, t(v)=b+1, so |{wt(w)b+1}|1.

Secondly, we assume that 𝒬(i) holds for 1ii1 and we show that 𝒬(i+1) holds. By definition of t, we have t+1(i+1)=ti1 and ti(v)=b+1. Let a and c be vertices on the path uv at time step ti such that a{wt+1i(w)bi+2}, a is adjacent to c at that time, and c{wt+1i(w)bi+2}.
The vertices a and c exist on this path because t+1i(u)=0 so u{wt+1i(w)bi+2} and t+1i(v)=b+1 so v{wt+1i(w)bi+2}. This implies that t+1i(a)ti(c)+1 and we know that t+1i(a)bi+2. Hence, ti(c)bi+1.

So

|{wti(w)bi+1}||{wt+1i(w)bi+2}|+1i+1

since c{wt+1i(w)bi+2} and c{wti(w)bi+1} and by the induction hypothesis, |{wt+1i(w)bi+2}|i. Moreover, by the induction hypothesis,

1j<i,|{wti(w)bj+1}||{wt+1i(w)bj+1}|j+1

so 𝒬(i+1) holds.

We have proven that 𝒬(i) holds, which means there is a set S={v,w1,,wi1} of i vertices such that ti+1(v)=b+1 and, for any 1j<i, we have ti+1(wj)b+1j. Also, for any vertex wS{u}, we have ti+1(w)1. Finally, note that ti+1(w)=b+1 for any vertex wAti+1, and b+1 is larger than 1 and b+1j for any 1j<i. Overall we obtain:

Φti+1wS{u}ti+1(w)+wAti+1S{u}ti+1(w)+wVAti+1S{u}ti+1(w)
(0j<i(b+1j)+|Ati+1S|)
+2(|Ati+1||Ati+1S|)+(ni1|Ati+1|+|Ati+1S|)
((bi)i+(i+12)+i)+|Ati+1|+ni1
(bi)i+(i+12)+n1+|Ati+1|

This completes the proof.

3.2 The General Case

Next, we provide the following theorem that extends the “Reachability Lemma”.

Theorem 3.4.

Let 𝒢 be a temporal graph of lifetime L, and (u,v) be a pair of distinct vertices. If there is a set T[1,L1] of time steps with |T|n1, such that for every time step tT, u and v are connected by a path, and the average length of these paths is k, then there is a journey ubv in 𝒢 with b=|T||T|n+2(k2)+2.

Proof.

In this proof, we denote dt the length of the path connecting u and v at the time step tT. For the purpose of contradiction, assume that there is no journey ubv in 𝒢. In particular, this implies that L(v)=b+1. So ΦLn1+(|AL|+1)b and Φ1=(b+1)(n1), which means that Φ1ΦL(n2|AL|)b.

By Lemma 3.1,

tT,ΦtΦt+1bdt+1+|At||At+1|.

Also,

tT{L},ΦtΦt+1|At||At+1|.

We deduce from these inequalities that

tT(bdt+1+|At||At+1)tT(ΦtΦt+1)
=Φ1ΦLtT{L}(ΦtΦt+1)(n2|AL|)btT{L}(|At||At+1|).

We deduce that

|T|(b1)tT(dt2)+t[1,L1](|At||At+1|)(n2|AL|)b.

Since

t[1,L1](|At||At+1|)=|A1||AL|=n2|AL|

, we have |T|(b1)tT(dt2)+(n2|AL|)(b1).
Using |AL|0, we obtain (|T|n+2)(b1)tT(dt2) and thus btT(dt2)|T|n+2+1=|T||T|n+2(k2)+1, a contradiction.

3.3 The case of paths of bounded length

In this section, we derive an upper bound on the number of paths ukv required to guarantee the existence of a journey ubv in a temporal graph, where bk.

The following theorem gives back exactly the Reachability Lemma by setting b=k=n1. Moreover, it improves the bound presented by Balev et al. [6] in Lemma 7 because it states that (k1)(nk)+1 time steps with a path ukv ensures the existence of a journey ukv.

Theorem 3.5.

Let 𝒢 be a temporal graph on n vertices, let k and b be integers that satisfy 1<kb<n, and let (u,v) be a pair of distinct vertices. If there are at least (nk1)(b1)bk+1+k snapshots with a path ukv, then there is a journey ubv.

Proof.

It is sufficient to show the existence of the journey in the temporal graph obtained by removing the time steps with no paths ukv. So, for clarity and without loss of generality, we assume that there exists a path ukv at each time step. Also, for the purpose of contradiction, assume that there is an integer t such that t(v)=b+1 and t>(nk1)(b1)bk+1+k. Note that k2 implies that t>n1. When b=n1, this is in contradiction with the Reachability Lemma which ensures the existence of a journey u(n1,n)v.

Therefore, we assume from now on that bn2. It follows that

(nk1)(b1)bk+1(nk1)(b1)n2k+1=b1k1,

which implies t2k2. In particular, it means that tk and ktk+2. By Lemma 3.2, for every time step kttk+1, we have ΦtΦt+1bk+1+|At||At+1|. Therefore,

ΦkΦtk+2=(ΦkΦk+1)++(Φtk+1Φtk+2)(t2k+2)(bk+1)+|Ak||Atk+2|.

Moreover, due to Lemma 3.1 for i=k, we get Φk(nk)b+(k2)+|Ak|+1 since tk and thus lk(v)=b+1. Furthermore, by Lemma 3.3 for i=k1, we have

Φtk+2(bk+1)(k1)+(k2)+|Atk+2|+n1

because tk and t(v)=b+1. We deduce that

Φk Φtk+2
(nk)b+(k2)+|Ak|+1((bk+1)(k1)+(k2)+|Atk+2|+n1)
=(nk1)(b1)+|Ak||Atk+2|(bk+1)(k2)

Therefore, we have

(nk1)(b1)+|Ak||Atk+2| (bk+1)(k2)ΦkΦtk+2
(t2k+2)(bk+1)+|Ak||Atk+2|,

and we deduce that t(nk1)(b1)bk+1+k, a contradiction.

 Remark 3.6.

Note that both the upper bounds in the general case and in the restricted case are valid if the constraint that every edge is directed is added. Indeed, all the proofs in Section 3 are still valid if the paths connecting u and v have their edges directed from u to v.

4 Lower bounds for the sufficient conditions

In this section, we establish that the previously derived sufficient conditions for the existence of bounded-length journeys are essentially tight in the restricted case where all temporal paths have bounded length.

Let k and b be integers with bk. We construct a family of temporal graphs such that, at every time step, the vertices u and v are connected by a path of length exactly k. We then characterize the maximum number of such time-distinct paths, denoted by tf, such that there is no journey ubv.

We prove that, in this family of temporal graphs, the value of tf is asymptotically equal to the sufficient number of paths of length k given in Theorem 3.5. Moreover, our bounds are tight whenever nk1 is a multiple of bk+1.

From this result, we derive a lower bound for the more general setting.

Theorem 4.1.

Let k,b,n be integers satisfying 1<kb<n. There exists a temporal graph 𝒢 on n vertices such that there is no journey ubv but there are nk1bk+1(b1)+r+k1 time steps with a path ukv, where r=(nk1mod(bk+1)).

Proof.

Let q=nk1bk+1 and tf=(b1)q+r+k1. We construct the temporal graph 𝒢 such that, at every time step in [1,tf], the snapshot is a path of length n1 as presented on Figure 2, and after this time step, the snapshots have no edges. For each time step ttf, we denote by st(w) the position of a vertex w along this path, where position 0 corresponds to the extremity of the path that is closer to u than to v, and n1 corresponds to the other extremity.

For every vertex w and every time step t such that st(w)<n1, we denote by wt the vertex satisfying st(wt)=st(w)+1 (i.e. wt is the neighbor of w toward v on the path at time step t).

Finally, for any time step t>1, we say that a shift occurs at time t if the following conditions hold:

st(u)=st1(ut1),
st(ut1)=st1(u),
st(v)=st1(vt1),
st(vt1)=st1(v),

and for all wV{u,v,ut1,vt1}, st(w)=st1(w). A shift is illustrated in Figure 2 at time steps k and 2k1.

We now fully describe the temporal graph 𝒢. Initially, G1 is the path (u,u1,u2,,uk1,v, v1,v2,,vnk1). Until time tf, a snapshot is identical to the previous one, except at times t+2 where tmod(b1){k2,k1,,b2}. At these times, a shift occurs. From time tf+1 on, the snapshots contain no edges. Note that u and v are at distance exactly k at time t for each 1ttf.

The special case b=k is depicted in Figure 2.

Figure 2: A representation of the first 3(k1) time steps in the constructed temporal graph for the case b=k (bk+1=1 so there is one shift every k1 time steps). Note that there is no journey of length b from u to v during these time steps.

In the remainder of the proof, we show that no journey ubv exists by showing that t(v)=b+1 for all t1.

It is tedious but straightforward to check that the local potentials evolve as follows.

Let 1i,tk1. We have t(ui)=i if i<t, and t(ui)=b+1 otherwise. Also, t(v)=b+1 and t(vj)=b+1 for each 1jnk1.

Let us now consider t>k1, and let q and r be the non-negative integers such that t=k+(b1)q+r and r<b1. First, t(w)=1 for any w such that st(w)<st(u). Similarly, t(w)=b+1 for any w such that st(w)st(v). Now, let w1,,wk1 be the vertices inside the path from u to v at time t. The sequence t(w1),,t(wk1) is as follows:

{r+2,,r+k1,b+1 when rbk1,,rb+k,r+2,,b when bk<r<b1

We now provide an informal description of how these values are obtained.

First, consider the case where t=k+(b1)q+r with rbk. The values of the labels in this case can be shown to be as stated via induction on the time step. At time step t, a shift occurs: the vertex w0, which was connected to u in the path at time t1, satisfies t1(w0)=r+1 and is no longer part of the path at time t. Consequently, the only vertex in the path whose label changes at time t is wk2. Indeed, we have t1(wk2)=b+1, while

t(wk2)=t1(wk3)+1=r+k1.

Next, consider the case where t=k+(b1)q+r with r[bk+1,b2]. In this case, the path remains unchanged and the label values are updated in a way that propagates from the vertex u, affecting one vertex per time step.

Therefore, at any time larger than tf, the local potential of v is equal to b+1, and thus there is no journey ubv in 𝒢.

In the following corollary of Theorem 4.1, we show that for any number n of vertices, any integer k[1,n/2], and any set of time steps T with |T|>4(n2), there exists a temporal graph with the following properties. There exists a pair of vertices u and v connected by a path at every time step in T; each such path has length exactly k, and hence the average path length over T is k. Still, every shortest journey from u to v traverses at least |T||T|n+2(k2)+1 edges.

This construction yields a lower bound for Theorem 3.4 in the case where the average path length satisfies kn/2 and the number of paths is greater than 4(n2).

Corollary 4.2.

Let T be a set of time steps with |T|>4(n2) and n>2, and let k be an integer such that kn/2. Then there exists a temporal graph 𝒢 on n vertices with the following properties. For every time step tT, vertices u and v are connected by a path of length k. Moreover, the shortest journey from u to v traverses at least |T||T|n+2(k2)+1 edges.

Note that this statement also implies that the average path length is k, too. Thus, this complements Theorem 3.4 for small values of k.

Proof.

We construct a temporal graph 𝒢 such that for every time step t[1,|T|] the snapshot Gt contains a path uv of length exactly k, and hence the average path length is k. Let b=|T|(k1)|T|n+21. The proof has two steps. First, we show that |T|<nk1bk+1(b1)+k. Second, we deduce that there exists a temporal graph in which u and v are connected by a path of length k at every time step of T, while every journey from u to v has length strictly greater than b. Consequently, the shortest journey from u to v traverses at least b+1|T||T|n+2(k2)+1 edges.

We first prove that b(k1)+2n2|T|n+2<1. Using the definition of b,

b(k1)+2n2|T|n+2<|T||T|n+2(k1)2|T|n+2+2n2|T|n+2.

Since k1(n2)/2 and |T|>4(n2), we have |T|n+23(n2) and thus (k1)2|T|n+216.

Hence, b(k1)+2n2|T|n+2<|T|6(|T|n+2)+2n2|T|n+2<1.

We next show that (bk+1)2<n. From |T|>4(n2) we obtain b<|T||T|n+2(k1)<43(k1), and therefore (bk+1)2<(k13)2<n36<n, since k1<n/2.

Finally, we compute b=|T|(k1)|T|n+21<|T|(k1)|T|n+2b(k1)+2n2|T|n+2:

b<(|T|b)(k1)2n+2|T|n+2
(|T|n+2)b<(|T|b)(k1)2n+2
(|T|b)b+(bn+2)b<(|T|b)(k1)2n+2
(|T|b)(bk+1)<(nb3)(b1)n
(|T|k)(bk+1)(bk+1)2<(nb3)(b1)n
(|T|k)(bk+1)<(nb3)(b1)
|T|(nb3)bk+1(b1)+k
|T|(nk2)(bk+1)bk+1(b1)+k
|T|<nk1bk+1(b1)+k

By Theorem 4.1, for any integers k, b, and set of time steps T satisfying |T|nk1bk+1(b1)+k1, there exists a temporal graph on n vertices such that vertices u and v are connected by a path of length exactly k at every time step of T, while the shortest journey from u to v has length strictly greater than b. Indeed, by construction there is no journey of length at most b from u to v, yet by the Reachability Lemma a journey must exist since u and v are connected by a path at least n1 times.

Consequently, for |T|>4(n2) and k<n/2, there exists a temporal graph on n vertices in which u and v are connected by a path of length k at every time step of T, while the shortest journey from u to v traverses at least b+1=|T||T|n+2(k1)|T||T|n+2(k2)+1 edges.

5 Applications

We focus on always connected temporal graphs, that is, temporal graphs where each snapshot is connected. This assumption allows us to transfer bounds on classical graph measures for every snapshot to corresponding temporal bounds in the temporal graph.

We consider temporal analogues of three standard static measures: the diameter, the average shortest-path length, and the closeness centrality. Each temporal measure is obtained by replacing, in the classical definition, the length of a shortest path with the length of a shortest journey in the temporal graph. We show that if a given measure is bounded by k in every snapshot, then its temporal analogue approaches k as the lifetime increases.

Throughout the section, we denote by dj(u,v) the length of a shortest journey from u to v in the temporal graph, and by dp(u,v,t) the length of a shortest path uv in the snapshot at time t. Since each snapshot is connected, we have for all t>0 and all (u,v)V×V, dp(u,v,t)n1.

5.1 The temporal diameter

The definition of the temporal equivalent of the diameter in this section is

max{(u,v)V×V}dj(u,v)

Note that there exist multiple possible temporal equivalent to the definition of the diameter. For example, one of the definitions used in the literature defines the “temporal diameter” in a temporal graph as the maximum number of time steps for a journey between two vertices [26].

Lemma 5.1.

Let 𝒢 be an always connected temporal graph of lifetime L. If every snapshot has diameter at most k and L=(1+c)(n1) with c>0, then the temporal diameter of 𝒢 is at most (1+1c)k.

Proof.

By assumption, for every pair of vertices (u,v) and every time step t, the distance in snapshot Gt satisfies dp(u,v,t)k.

Since the graph is always connected, for every (u,v) and every t, there exists a path between u and v. We apply Theorem 3.4 with T=[1,L1], which yields dj(u,v)LLn+11Lt=1L1dp(u,v,t)..

Using dp(u,v,t)k for all t, we obtain dj(u,v)LLn+1(L1)kLLLn+1k.

Since L=(1+c)(n1), we have Ln+1=c(n1), and therefore LLn+1=(1+c)(n1)c(n1)=1+cc. Hence, dj(u,v)1+cck. As this bound holds for every pair of vertices, the temporal diameter of 𝒢 is at most 1+cck.

 Remark.

As a direct consequence of Lemma 5.1, if a temporal graph is always connected, each snapshot has diameter at most k, and the lifetime satisfies L=(1+c)(n1)2 with c>0, then the temporal graph admits an exploration, that is, a journey visiting all vertices, that traverses at most (1+1c)k(n1) edges.

5.2 The average shortest journey length

The definition of the temporal equivalent of the average shortest path length used in this section is

(u,v)V×V,uvdj(u,v)n(n1)

We name it the average shortest journey length.

Lemma 5.2.

Let 𝒢 be an always connected temporal graph of lifetime L. If every snapshot has average shortest path length at most k and L=(1+c)(n1) with c>0, then the average shortest journey length of 𝒢 is at most (1+1c)k.

Proof.

For any pair of distinct vertices (u,v), applying Theorem 3.4 with T=[1,L1] yields

dj(u,v)t=1L1dp(u,v,t)Ln+1.

Let a denote the average shortest journey length: a=1n(n1)u,vVuvdj(u,v). Using the above bound, we obtain

a1n(n1)u,vVuvt=1L1dp(u,v,t)Ln+1=t=1L11Ln+11n(n1)u,vVuvdp(u,v,t).

By assumption, for every time step t, 1n(n1)u,vV,uvdp(u,v,t)k.

Hence, aL1Ln+1k. Since L=(1+c)(n1), we have Ln+1=c(n1) a1+cck.

 Remark.

Observe that Lemma 5.2 generalizes Lemma 5.1 since, in any static graph, if the diameter is bounded by k, then the average shortest-path length is also bounded by k.

5.3 The temporal closeness centrality

In a static graph, the closeness centrality of a vertex quantifies how close, in terms of graph distance, the vertex is to all other vertices. It is defined as the inverse of the average shortest-path length from the vertex to all others (a formal definition is given in Section 2).

We define the temporal analogue of closeness centrality in a temporal graph 𝒢 as follows. For a vertex uV, its temporal closeness centrality is

C𝒢(u)=n1vVmax{dj(u,v),dj(v,u)},

where the maximum accounts for the fact that journeys in temporal graphs are directed.

Finally, we denote by Ct(u) the closeness centrality of vertex u in the snapshot at time step t.

Lemma 5.3.

Let 𝒢 be an always connected temporal graph of lifetime L, and let u be a vertex. If at every time step t the closeness centrality of u satisfies Ct(u)k and L=(1+c)(n1) with c>0, then the temporal closeness centrality of u satisfies C𝒢(u)(111+c)k.

Proof.

By Theorem 3.4, applied with T=[1,L1], for every vertex v we have, dj(u,v)LLn+1t[1,L1]dp(u,v,t)L=t[1,L1]dp(u,v,t)Ln+1 so

max{dj(u,v),dj(v,u)}t[1,L1]dp(u,v,t)Ln+1.

We deduce that

C𝒢(u)n1vV(t[1,L1]dp(u,v,t)Ln+1)=(n1)(Ln+1)t[1,L1](vVdp(u,v,t))

And by assumption, for every time step t, vVdp(u,v,t)n1k, hence

C𝒢(u)(n1)(Ln+1)t[1,L1]n1k=(n1)(Ln+1)(L1)n1k>Ln+1Lk=c1+ck.

6 Conclusion

The main theorem of this paper extends the well-known Reachability Lemma by establishing an upper bound on the number of edges traversed by a journey whose existence is guaranteed by that lemma. More precisely, it shows that, given two vertices connected by paths at distinct time steps, there exists a journey connecting these vertices whose length converges to the average length of the corresponding paths as the number of such paths increases.

This result admits of several applications. In particular, it applies to temporal graphs that are always connected, for which temporal analogues of classical topological and reachability measures are introduced.

A more restricted setting is also investigated, namely temporal graphs in which a pair of vertices is connected by paths at different time steps, each of length bounded by a fixed integer k>0. Given an integer bk, nearly tight lower and upper bounds are established on the minimum number of such paths required to guarantee the existence of a journey of length b connecting the two vertices. From the lower bound obtained in this restricted case, a corresponding lower bound for the main theorem is derived.

References

  • [1] Duncan Adamson, Vladimir V. Gusev, Dmitriy Malyshev, and Viktor Zamaraev. Faster Exploration of Some Temporal Graphs. In 1st Symposium on Algorithmic Foundations of Dynamic Networks (SAND 2022), volume 221 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1–5:10, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SAND.2022.5.
  • [2] Eleni C Akrida, George B Mertzios, Paul G Spirakis, and Christoforos Raptopoulos. The temporal explorer who returns to the base. Journal of Computer and System Sciences, 120:179–193, 2021. doi:10.1016/J.JCSS.2021.04.001.
  • [3] Emmanuel Arrighi, Fedor V. Fomin, Petr A. Golovach, and Petra Wolf. Kernelizing Temporal Exploration Problems. In 18th International Symposium on Parameterized and Exact Computation (IPEC 2023), volume 285 of Leibniz International Proceedings in Informatics (LIPIcs), pages 1:1–1:18, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.IPEC.2023.1.
  • [4] Kyriakos Axiotis and Dimitris Fotakis. On the size and the approximability of minimum temporally connected subgraphs. In 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, Rome, Italy, July 11-15, 2016, LIPIcs, pages 149:1–149:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ICALP.2016.149.
  • [5] Samuel Baguley, Andreas Göbel, Nicolas Klodt, George Skretas, John Sylvester, and Viktor Zamaraev. Temporal exploration of random spanning tree models. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 2876–2887. SIAM, 2026. doi:10.1137/1.9781611978971.106.
  • [6] Stefan Balev, Éric Sanlaville, and Antoine Toullalan. Brief Announcement: The Shortest Temporal Exploration Problem. In 4th Symposium on Algorithmic Foundations of Dynamic Networks (SAND 2025), volume 330 of Leibniz International Proceedings in Informatics (LIPIcs), pages 18:1–18:5, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SAND.2025.18.
  • [7] Paul Bastide, Carla Groenland, Lukas Michel, and Clément Rambaud. Improved exploration of temporal graphs. CoRR, abs/2511.22604, 2025. doi:10.48550/arXiv.2511.22604.
  • [8] Benjamin Merlin Bumpus and Kitty Meeks. Edge exploration of temporal graphs. Algorithmica, 85(3):688–716, 2023. doi:10.1007/S00453-022-01018-7.
  • [9] Arnaud Casteigts, Timothée Corsini, and Writika Sarkar. Simple, strict, proper, happy: A study of reachability in temporal graphs. Theor. Comput. Sci., 991:114434, 2024. doi:10.1016/J.TCS.2024.114434.
  • [10] Arnaud Casteigts, Paola Flocchini, Walter Quattrociocchi, and Nicola Santoro. Time-varying graphs and dynamic networks. International Journal of Parallel, Emergent and Distributed Systems, 27(5):387–408, 2012. doi:10.1080/17445760.2012.668546.
  • [11] Siu-Wing Cheng. Shortest journeys in directed temporal graphs. International Journal of Foundations of Computer Science, 34(07):761–771, 2023. doi:10.1142/S0129054123420030.
  • [12] Umesh Sandeep Danda, G Ramakrishna, Jens M Schmidt, and Mithinti Srikanth. On short fastest paths in temporal graphs. In International Workshop on Algorithms and Computation, pages 40–51. Springer, 2021. doi:10.1007/978-3-030-68211-8_4.
  • [13] Konstantinos Dogeas, Thomas Erlebach, Frank Kammer, Johannes Meintrup, and William K. Moses Jr. Exploiting Automorphisms of Temporal Graphs for Fast Exploration and Rendezvous. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of Leibniz International Proceedings in Informatics (LIPIcs), pages 55:1–55:18, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2024.55.
  • [14] Jessica A. Enright, Kitty Meeks, and Hendrik Molter. Counting temporal paths. Algorithmica, 87(5):736–782, 2025. doi:10.1007/S00453-025-01301-3.
  • [15] Thomas Erlebach, Michael Hoffmann, and Frank Kammer. On temporal graph exploration. Journal of Computer and System Sciences, 119:1–18, 2021. doi:10.1016/J.JCSS.2021.01.005.
  • [16] Thomas Erlebach, Frank Kammer, Kelin Luo, Andrej Sajenko, and {Jakob T.} Spooner. Two moves per time step make a difference. In 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, Leibniz International Proceedings in Informatics, LIPIcs. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, July 2019. doi:10.4230/LIPIcs.ICALP.2019.141.
  • [17] Thomas Erlebach and Jakob T Spooner. Exploration of k-edge-deficient temporal graphs. Acta Informatica, 59(4):387–407, 2022. doi:10.1007/S00236-022-00421-5.
  • [18] Thomas Erlebach and Jakob T Spooner. Parameterised temporal exploration problems. Journal of Computer and System Sciences, 135:73–88, 2023. doi:10.1016/J.JCSS.2023.01.003.
  • [19] Paola Flocchini, Bernard Mans, and Nicola Santoro. Exploration of periodically varying graphs. In International Symposium on Algorithms and Computation, pages 534–543. Springer, 2009. doi:10.1007/978-3-642-10631-6_55.
  • [20] David Ilcinkas and Ahmed M Wade. Exploration of the t-interval-connected dynamic graphs: the case of the ring. Theory of Computing Systems, 62(5):1144–1160, 2018. doi:10.1007/S00224-017-9796-3.
  • [21] David Ilcinkas and Ahmed M Wade. Exploration of dynamic cactuses with sub-logarithmic overhead. Theory of Computing Systems, 65(2):257–273, 2021. doi:10.1007/S00224-020-10001-0.
  • [22] David Kempe, Jon Kleinberg, and Amit Kumar. Connectivity and inference problems for temporal networks. In Proceedings of the thirty-second annual ACM symposium on Theory of computing, pages 504–513, 2000. doi:10.1145/335305.335364.
  • [23] Fabian Kuhn, Nancy Lynch, and Rotem Oshman. Distributed computation in dynamic networks. In Proceedings of the forty-second ACM symposium on Theory of computing, pages 513–522, 2010. doi:10.1145/1806689.1806760.
  • [24] Kazuhiro Kurita, Andrea Marino, Jason Schoeters, and Takeaki Uno. Spanner enumeration for temporal graphs. In 4th Symposium on Algorithmic Foundations of Dynamic Networks (SAND 2025), pages 9–1. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.SAND.2025.9.
  • [25] Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Mathematics, 12(4):239–280, 2016. doi:10.1080/15427951.2016.1177801.
  • [26] Othon Michail and Paul G Spirakis. Traveling salesman problems in temporal graphs. Theoretical Computer Science, 634:1–23, 2016. doi:10.1016/J.TCS.2016.04.006.
  • [27] Lutz Oettershagen and Petra Mutzel. Computing top-k temporal closeness in temporal networks. Knowl. Inf. Syst., 64(2):507–535, 2022. doi:10.1007/S10115-021-01639-4.
  • [28] Huanhuan Wu, James Cheng, Silu Huang, Yiping Ke, Yi Lu, and Yanyan Xu. Path problems in temporal graphs. Proceedings of the VLDB Endowment, 7(9):721–732, 2014. doi:10.14778/2732939.2732945.
  • [29] Huanhuan Wu, James Cheng, Yiping Ke, Silu Huang, Yuzhen Huang, and Hejun 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.
  • [30] B Bui Xuan, Afonso Ferreira, and Aubin Jarry. Computing shortest, fastest, and foremost journeys in dynamic networks. International Journal of Foundations of Computer Science, 14(02):267–285, 2003. doi:10.1142/S0129054103001728.