Abstract 1 Introduction 2 Preliminaries 3 Exploring Always 𝑺-Connected Graphs References

Brief Announcement: Exploration of Always S-Connected Temporal Graphs

Duncan Adamson ORCID Department of Computer Science, University of St Andrews, UK    Paul G Spirakis ORCID School of Computer Science and Informatics, University of Liverpool, UK
Abstract

Temporal graphs are a generalisation of (static) graphs, defined by a sequence of snapshots, each a static graph defined over a common set of vertices. Exploration problems are one of the most fundamental and most heavily studied problems on temporal graphs, asking if a set of m agents can visit every vertex in the graph, with each agent only allowed to traverse a single edge per snapshot. In this paper, we introduce and study always S-connected temporal graphs, a generalisation of always-connected temporal graphs where, rather than forming a single connected component in each snapshot, we have at most |S| components, each defined by the connection to at least one vertex in the set S. We use the model of always S-connected temporal graphs to study subgraphs of always-connected temporal graphs, with motivation coming from networks with a small number of β€œchoke-points”, such as rail networks, where all external traffic into a subnetwork comes from a limited number of external connections. We show that an always S-connected temporal graph with m=|S| and an average degree of Ξ” can be explored by m agents in O⁒(n3/2⁒m3⁒Δ3/2⁒log3/2⁑(n)) snapshots, and, using this result as a subroutine, we show that any always-connected temporal graph with treewidth at most k can be explored by a single agent in O⁒(n4/3⁒k11/2⁒log5/2⁑(n)) snapshots.

Keywords and phrases:
Temporal Graphs, Graph Exploration, Treewidth
Copyright and License:
[Uncaptioned image] © Duncan Adamson and Paul G Spirakis; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing β†’ Paths and connectivity problems
Related Version:
Full Version: https://arxiv.org/abs/2602.19657 [2]
Editors:
George B. Mertzios and AndrΓ©a W. Richa

1 Introduction

In many real-world settings, networks are not static objects but instead have unstable connections that vary over time. Such examples include public transport networks [15] and infection control [18]. Temporal graphs provide a model for such time-varying networks. Formally, a temporal graph 𝒒 is a generalisation of (static) graphs containing a common vertex set V and ordered sequence of T snapshots G1,G2,…,GT, with the lifetime of the graph defined by the number of snapshots, by convention denoted T. Unlike some models of dynamic graphs, we assume that we have full knowledge of the graph, i.e. that we are given every snapshot as part of the input.

Much work on temporal graphs has focused on the problem of exploration of temporal graphs. In the temporal exploration problem, denoted TEXP, every vertex must be visited at least once by one of a set of agents. The movement of the agents is restricted by allowing only a single move per snapshot. Thus, as the graph changes, the agents’ movement may become restricted. We assume our objective is to find a set of temporal walks, a generalisation of walks accounting for the movement restrictions imposed by only traversing a single edge per snapshot, covering the vertex set, with exactly one walk per agent. We call such a set of walks an exploration schedule.

Work on TEXPwas motivated by extending the well-known Travelling Salesman to temporal graphs by Michail and Spirakis [17]. Since then, there has been a broad span of work covering reachability [8, 10, 16] and exploration [1, 4, 5, 9, 11, 12, 13, 14, 15, 17]. The decision version of TEXP in which one has to decide if at least one exploration schedule exists in a given temporal graph from a given starting vertex is an NP-complete problem [17]. Indeed, this problem remains NP-complete even if the underlying graph has pathwidth 2 and every snapshot is a tree [7], or if the underlying graph is a star and the exploration has to start and end at the centre of the star [3]. In the optimisation version of this problem, we ask for the quickest exploration of a given temporal graph, that being the schedule ending at the earliest snapshot, formally defined in Section 2.

On the positive side, we mention the landmark paper by Erlebach et al. [11], who show that any always-connected temporal graph (temporal graphs where each snapshot is connected) can be explored in O⁒(n2) snapshots, where n is the number of vertices. This has recently been improved by Bastide et al. [6], who have shown that the always-connected temporal graphs with average degree Ξ” can be explored in O⁒(n3/2⁒Δ⁒log⁑n) snapshots, simplifying to O⁒(n3/2⁒log⁑n) for graphs of constant average degree, such as planar graphs, and to O⁒(n3/2⁒k⁒log⁑n) for graphs of treewidth k. At the same time, Baguley et al. [5] have shown that if each snapshot is a random spanning tree of the graph, then, regardless of the degree, the graph can, with high probability, be explored in the lower of O⁒(n3/2) or O⁒(m) snapshots, where n is the number of vertices and m the number of edges.

1.1 Our Results

The primary result of this paper is a generalisation of the work by Bastide et al. [6] for always-connected temporal graphs to S-connected temporal graphs, temporal graphs such that there exists a set S where every vertex is connected to at least one vertex in S in each snapshot. In doing so, we use our generalisation as a tool to obtain faster exploration schedules for graphs of bounded treewidth, even when restricted to a single agent. Our primary result is the following theorem:

Theorem 1.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with lifetime T=Ω⁒(n⁒m2⁒Δ3/2⁒|X|⁒log⁑(m⁒|X|)⁒log⁑(|X|)+n⁒m3) where m=|S| and Ξ” is the average degree of the underlying graph. Then any subset XβŠ†V of vertices can be explored by m agents.

Theorem 2.

Any always-connected temporal graph whose underlying graph has treewidth k can be explored in O⁒(n4/3⁒k9/2⁒log5/2⁑(n)) snapshots.

2 Preliminaries

We first define the notation used in this paper. Let [i,j]=i,i+1,…,j denote the (ordered) set of integers between some pair i,jβˆˆβ„•, where β„• is the set of natural numbers. Note that if i=j, then [i,j]={i}, and if i>j, [i,j]=βˆ…. For notational conciseness, we us [i] as shorthand for [1,i].

We define a graph G=(V,E) by a set of vertices, by convention V={v1,v2,…,vn}, and a set of edges, by convention EβŠ†VΓ—V, each a tuple of vertices. Note that we may write the edge e between the vertices vi and vj as either e=(vi,vj) or e=(vj,vi). When an edge is given explicitly as (vi,vj), we call vi the start point and vj the end point. A walk in a graph is an ordered sequence of edges W=(vi1,vi2),(vi2,vi3),…,(vimβˆ’1,vim), where the end point of the jt⁒h edge is the start point of the (j+1)t⁒h edge. The start point of the first edge in a given walk is the start point of the walk and, analogously, the end point of the walk is the end point of the last edge in the walk. The length of a walk W, denoted |W| is the number of edges in the walk. A graph G=(V,E) is connected if there exists, for every pair of vertices v,u∈V, a walk starting at v and ending at u. Note that a single walk W may contain multiple copies of the same edge without contradiction. On the other hand, a path is a walk where no vertex is in more than two edges, and both the start and end vertices belong to a single edge, the first and last respectively.

A temporal graph is a generalisation of a graph, herein called a static graph whenever confusion may otherwise arise, where, rather than having a single edge set, the graph contains an ordered sequence of snapshots, by convention G1,G2,…,GT, each of which is a static graph over a shared set of vertices. We assume that Gt=(V,Et), for every t∈[1,T]. An edge e is active at snapshot t if e∈Et. In our definition, an edge e may be active in any number of snapshots.

The underlying graph of a temporal graph 𝒒=G1,G2,…,GT, denoted U⁒(𝒒), is the static graph U⁒(𝒒)=(V,⋃t∈[1,T]Et), i.e. the static graph formed with the edge set corresponding to the union of all snapshots in the graph. For simplicity, given a vertex v in a temporal graph 𝒒 we use Δ⁒(v) to denote the neighbourhood of v in the underlying graph U⁒(𝒒). A temporal graph 𝒒=G1,G2,…,GT is an always-connected temporal graph if the static graph Gt is connected, for every t∈[T].

Definition 3 (Always S-connected temporal graphs).

A temporal graph 𝒒=G1,G2,…,GT is Always S-Connected, for a given subset of vertices SβŠ†V, if, for every vertex v∈V and snapshot Gt, there exists at least one vertex u∈S such that there is a walk from u to v in Gt.

Temporal Walks and Exploration.

A temporal walk is a set of edge-snapshot index tuples, 𝒲=((vi1,vi2),t1), ((vi2,vi3),t2), …, ((vimβˆ’1,vim),tmβˆ’1) such that:

  • β– 

    (vi1,i2),(vi2,vi3),…,(vimβˆ’1,vim) form a walk in the underlying graph U⁒(𝒒),

  • β– 

    the edge (vij,vij+1) is active in snapshot tj, and,

  • β– 

    1≀t1<t2<β‹―<tmβˆ’1≀T.

The length of a temporal walk 𝒲, denoted |𝒲| is the snapshot tmβˆ’1 associated with the final edge. We refer to the it⁒h tuple of a temporal walk as the it⁒h step in the walk. A walk explores a static graph G if, for every vertex v∈V, there exists an edge containing v in at least one edge of the walk. Analogously, a set of temporal walks explores a temporal graph 𝒒 if, for every vertex v∈V, there exists an edge containing v in at least one edge of one of the walks. An exploration schedule is a set of temporal walks that explores a temporal graph.

Problem 1 (Temporal graph exploration problem).

Given a temporal graph, 𝒒 = G1, G2, …, GT, and a k-tuple of start vertices from V, Vβ€²=(v1,v2,…,vk), does there exist a set of k temporal walks 𝒲={W1,W2,…,Wk} that explores 𝒒 such that Wi starts at vi?

Note that under the above definition, there is no requirement that the vertices in Vβ€² are unique, i.e., there may exist some pair i,j∈[k] where iβ‰ j and vi=vj. In general, we assume that an exploration is undertaken by a set of k-agents, each starting at some vertex in Vβ€², and matched uniquely to some temporal walk. When the temporal graph is always S-connected, we assume that we have (at least) one agent starting on each vertex in S. We do so to ensure that the graph can be explored, as otherwise there exist trivial examples of temporal graphs which can not be explored, e.g. when some vertex in S is never connected to any other, thus being trivially unreachable.

2.1 Tools

In this section, we briefly note some of the key tools used in this paper in deriving our main results. We note that we have slightly adapted the language of some of these lemmas to bring them inline with the terminology used within the remainder of this paper, without altering the meaning.

Lemma 4 (Reachability, Lemma 2.1 in [11]).

Let 𝒒 be a temporal graph with a vertex set V. Given a pair of vertices v,u∈V such that there exists a sequence of |V| snapshots Gi1,Gi2,…,Gi|V| where v and u are connected in each snapshot, and i1<i2<β‹―<i|V|, then there exists a temporal walk from v to u in the temporal graph Gi1,Gi2,…,Gi|V|.

Lemma 5 (Multi to single agent exploration, Lemma 2.2 in [11]).

Given a class of always-connected temporal graphs that can be explored by k agents in O⁒(T) snapshots, the same class can be explored by a single agent in O⁒((T+n)⁒k⁒log⁑n) snapshots.

3 Exploring Always 𝑺-Connected Graphs

In this section, we provide our primary result, namely that any always S-connected graph can be explored by m=|S| agents in at most O⁒(n3/2⁒m3⁒Δ3/2⁒log3/2⁑n) snapshots, where Ξ” is the average degree of any vertex in the underlying graph, i.e. Ξ”=βˆ‘v∈VΔ⁒(v)/|V|. We note this directly generalises the results from [6], with the key difference being the generalisation from always-connected temporal graphs to always S-connected temporal graphs.

We assume, for the remainder of this section, that S contains m vertices, that the temporal graph contains n vertices, and that the average degree of the underlying graph is Ξ”. We will restate this notation within the key theorems of this section. We begin with a small Lemma that provides an immediate tool for exploring such graphs in O⁒(n2⁒m) snapshots.

Lemma 6.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph. Then, given a set of m agents positioned on the vertices of S and vertex v∈V, there is at least one agent that can reach v and return to its starting location in O⁒(n⁒m) snapshots.

Note that Lemma 6 allows for an exploration of any always S-connected temporal graph in O⁒(n2⁒m) snapshots by exploring each vertex, one after another, each requiring O⁒(n⁒m) snapshots, with the key property that, after exploring a given vertex, the agent returns to its starting vertex in S, allowing the repeated application of the lemma. We now provide our key combinatorial tools for lowering the upper bound on the number of snapshots needed to explore the graph, based on those provided in [6], for exploring always S-connected temporal graphs with a fixed number of components defined by a subset of vertices.

Lemma 7.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with average degree Ξ” and Tβ‰₯2⁒Δ⁒n/(|X|βˆ’(mβˆ’1))+1. Then, given any subset of vertices XβŠ†V where |X|β‰₯m+1, there exists at least one pair of vertices v,u∈X such that there is a temporal walk starting at v and ending at u within the lifetime of the graph.

Lemma 8.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with average degree Ξ” where T=2⁒Δ⁒n/k+1, for some kβ‰₯2. Then, given any subset of vertices XβŠ†V where |X|β‰₯2⁒m+2, there exists a subset RβŠ†X of size at most 4⁒k⁒log⁑(|X|) such that, for every v∈X there exists some u∈R such that there exists a walk from u to v.

Lemma 9.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with average degree Ξ” where Tβ‰₯2⁒n and |X|β‰₯4⁒m2+4⁒m+4. Then, there exists a temporal walk in 𝒒 that covers at least |X|/(Δ⁒log⁑|X|)/32 vertices in any subset XβŠ†V.

Lemma 10.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with lifetime T=2⁒n⁒m2. Then, given any subset XβŠ†V, there exists a subset Xβ€² of X of size at least |X|/2⁒m2 such that there exists some t∈[2⁒m+1], and vertex v∈S such that, for every u∈Xβ€², there exists a path from v to u in G1,…,G2⁒t⁒(T/(2⁒m+1)), and from u to v in G(t+1)⁒T/(2⁒m+1)+1,…,GT.

We can now prove our main result. At a high level, we combine Lemmas 9 and 10 to explore the set of unvisited vertices in an iterative manner, exploring |Xβ€²|/(Δ⁒log⁑|Xβ€²|)/16⁒m in each epoch, while maintaining the key property that, after each exploration, we have exactly one agent on each vertex in S. This way, we allow ourselves to repeatedly apply the same approach in each epoch to an increasingly small number of vertices, until we are left with some set of O⁒(m2), which we may explore via Lemma 6 in O⁒(n⁒m3) snapshots.

Theorem 1.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with lifetime T=Ω⁒(n⁒m3⁒Δ3/2⁒|X|⁒log⁑(m⁒|X|)⁒log⁑(|X|)) where m=|S| and Ξ” is the average degree of the underlying graph. Then any subset XβŠ†V of vertices can be explored by m agents.

Corollary 11.

Let 𝒒=G1,G2,…,GT be an always S-connected temporal graph with lifetime T=Ω⁒(n3/2⁒m3⁒Δ3/2⁒log3/2⁑(n)). Then all vertices in G can be explored by m agents, with each starting on one of the vertices in S.

We now adapt the results from [1] to provide improved bounds on the exploration of graphs of bounded treewidth. First, we provide a bound on the number of snapshots needed to explore always-connected temporal graphs whose underlying graph contains an (r,b)-division.

Definition 12 ((r,b)-Division of Graphs).

A set of vertices SβŠ†V is an (r,b)-Division of the graph G=(V,E) if there is set of components covering the subgraph G⁒[Vβˆ–S] such that each component satisfies the following:

  • β– 

    The size of each component is at most r.

  • β– 

    There are at most b vertices in S that are incident to any vertex in the component, called the boundary vertices.

  • β– 

    Given any edge (v,u)∈E, either both vertices are in the same component, both vertices are in S or one vertex is in a component, and one is in S.

An (r,b)-division is strict if there are O⁒(n/r) components of size r in G⁒[Vβˆ–S].

Theorem 13.

Any always-connected temporal graph whose underlying graph has a strict (r,b)-division can be explored by b agents in O⁒(n⁒r1/2⁒b3⁒Δ3/2⁒log3/2⁑(r)+n2/r) snapshots.

Theorem 14.

Any always-connected temporal graph whose underlying graph has a strict (r,b)-division can be explored by a single agent in O⁒(n⁒r1/2⁒b4⁒Δ3/2⁒log3/2⁑(r)⁒log⁑(n)+n2⁒log⁑(n)/r) snapshots.

Lemma 15 (Generalisation of Lemma 4.4 [11]).

Every graph of treewidth at most k admits a strict (n2/3,6⁒k)-division.

Theorem 2.

Any always-connected temporal graph whose underlying graph has treewidth k can be explored by a single agent in O(n4/3k11/2log5/2(n)) snapshots.

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), pages 5–1. Schloss Dagstuhl – Leibniz-Zentrum fΓΌr Informatik, 2022. doi:10.4230/LIPIcs.SAND.2022.5.
  • [2] Duncan Adamson and Paul G Spirakis. Exploration of always s-connected temporal graphs, 2026. doi:10.48550/arXiv.2602.19657.
  • [3] 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.
  • [4] 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), pages 1–1. Schloss Dagstuhl – Leibniz-Zentrum fΓΌr Informatik, 2023. doi:10.4230/LIPIcs.IPEC.2023.1.
  • [5] Samuel Baguley, Andreas GΓΆbel, Nicolas Klodt, George Skretas, John Sylvester, and Viktor Zamaraev. Temporal exploration of random spanning tree models, 2025. doi:10.48550/arXiv.2508.03361.
  • [6] Paul Bastide, Carla Groenland, Lukas Michel, and ClΓ©ment Rambaud. Improved exploration of temporal graphs. arXiv preprint arXiv:2511.22604, 2025. doi:10.48550/arXiv.2511.22604.
  • [7] Hans L Bodlaender and Tom C van der Zanden. On exploring always-connected temporal graphs of small pathwidth. Information Processing Letters, 142:68–71, 2019. doi:10.1016/J.IPL.2018.10.016.
  • [8] Argyrios Deligkas and Igor Potapov. Optimizing reachability sets in temporal graphs by delaying. Inf. Comput., 285(Part):104890, 2022. doi:10.1016/J.IC.2022.104890.
  • [9] 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, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 55:1–55:18, 2024. doi:10.4230/LIPIcs.ICALP.2024.55.
  • [10] Jessica Enright, Kitty Meeks, George B Mertzios, and Viktor Zamaraev. Deleting edges to restrict the size of an epidemic in temporal networks. Journal of Computer and System Sciences, 119:60–77, 2021. doi:10.1016/J.JCSS.2021.01.007.
  • [11] 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.
  • [12] 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), 2019. doi:10.4230/LIPIcs.ICALP.2019.141.
  • [13] 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.
  • [14] 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.
  • [15] David C Kutner and Anouk Sommer. Better late, then? the hardness of choosing delays to meet passenger demands in temporal graphs. arXiv preprint arXiv:2501.18987, 2025. doi:10.48550/arXiv.2501.18987.
  • [16] Kitty Meeks. Reducing reachability in temporal graphs: Towards a more realistic model of real-world spreading processes. In Conference on Computability in Europe, pages 186–195. Springer, 2022. doi:10.1007/978-3-031-08740-0_16.
  • [17] 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.
  • [18] Anne-Sophie Ruget, Gianluigi Rossi, P Theo Pepler, GaΓ«l BeaunΓ©e, Christopher J Banks, Jessica Enright, and Rowland R Kao. Multi-species temporal network of livestock movements for disease spread. Applied Network Science, 6:1–20, 2021.