arXiv:2610.30123cs.DSOct 2026

Manuscript Offprint

arXiv:2610.30123

Temporal Exploration and Rendezvous via Weisfeiler-Leman Colorings

Frank Kammer, Sandra Kiefer, Johannes Meintrup

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Temporal graphs are graphs whose edge relation changes in discrete time steps. The Temporal Exploration Problem (TEXP) asks for a temporal walk that visits all vertices. We show that every connected temporal graph with nn vertices can be explored in O(qnlog⁡3n)O(qn\log^3 n) time steps, where qq is the number of vertex color classes induced by the 2-dimensional Weisfeiler–Leman (2-WL) coloring. For small qq, our bound substantially improves on the known worst-case bound of Θ(n2)\Theta(n^2) in general connected temporal graphs. A corresponding walk can be constructed in deterministic polynomial time. The upper bound is complemented by lower bounds of Ω(nlog⁡n)\Omega(n\log n) when qq is constant and Ω(qn)\Omega(qn) when 1≤q≤n1 \leq q \leq n.

We also apply our techniques to the Temporal Rendezvous Problem (TRP), in which two agents that do not communicate have to meet on a vertex of the temporal graph. Our exploration algorithm yields that, with only polynomial-time computational power, the agents can meet in O(nlog⁡3n)O(n \log^3 n) time steps, leaving a gap of only log⁡2n\log^2 n to the known lower bound.

Dogeas, Erlebach, Kammer, Meintrup, and Moses Jr. [ICALP'24] have shown an O(rn1+ε)O(rn^{1+\varepsilon}) bound for TEXP, for every fixed ε>0\varepsilon > 0, where rr is the number of orbits, and an O(n1+ε)O(n^{1+\varepsilon}) bound for TRP. Both results require superpolynomial computation time. Our contribution improves upon these results in several ways. First, the dependence on nn in the upper bounds on the number of time steps is decreased from n1+εn^{1+\varepsilon} to nlog⁡3nn \log^3 n for both TEXP and TRP. Second, for TEXP, we bound the number of time steps linearly by the parameter qq, which is efficiently computable and upper bounded by rr. Third, we provide novel deterministic polynomial-time algorithms for both TEXP and TRP.

*THM, University of Applied Sciences Mittelhessen (frank.kammer@mni.thm.de, johannes.meintrup@mni.thm.de). Johannes Meintrup: Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 571642628.

†^{\dagger}University of Oxford (sandra.kiefer@cs.ox.ac.uk).

1 Introduction

Temporal graphs are graphs whose edge sets change over discrete time steps. For surveys and background, see [28, 75]. Formally, a temporal graph G=(G1,…,GL)\mathcal{G} = (G_1, \ldots, G_L) with lifetime LL is a sequence of graphs, called snapshots, on a common vertex set VV. The graph obtained by the union over all snapshots is called the underlying graph. In each time step, a temporal walk either stays at the current vertex or traverses an edge present in the current snapshot. One of the most prominent research directions regarding temporal graphs is the study of problems involving temporal walks. Examples include temporal reachability [3, 30, 39, 46, 85, 86], temporal connected components [17, 19, 33], temporal spanners [29, 31, 71], and Temporal Exploration (TEXP), which was first introduced by Michail and Spirakis [76].

The decision variant of TEXP asks whether a temporal walk exists that visits all vertices. Deciding TEXP is NP-hard, and the corresponding optimization problem is hard to approximate [45, 76]. Even on heavily restricted graph classes, the problem remains hard [4]. For connected temporal graphs, that is, when every snapshot is connected, Erlebach, Hoffmann, and Kammer [45] showed that TEXP can be solved by a walk spanning O(n2)O(n^2) time steps and that this bound is tight. 1^{1}

The lower-bound results have motivated extensive work on identifying restricted settings in which the quadratic barrier can be broken. Subquadratic upper bounds are known for connected temporal graphs with bounded-degree snapshots [18, 41, 44], planar underlying graphs and underlying graphs of bounded pathwidth or treewidth, and cycles with few chords [2, 21, 45]. Further bounds are known for highly structured graph classes, such as cacti and (2×k)(2 \times k)-grids [1, 2, 43, 59], and for variants such as k-edge-deficient temporal graphs, temporal graphs with regularly or probabilistically present edges, and word-representable temporal graphs [4, 42, 44]. A recent result by Bastide, Groenland, Michel, and Rambaud [18] gives a unifying bound of O(n3/2Dlog⁡n)O(n^{3/2}\sqrt{D\log n}) in terms of the average temporal maximum degree DD. In particular, their result yields O(n3/2dlog⁡n)O(n^{3/2}\sqrt{d\log n}) when every snapshot has maximum degree at most dd, and O(n3/2klog⁡n)O(n^{3/2}\sqrt{k\log n}) when the underlying graph has average degree at most kk; the latter also improves the known bounds for planar underlying graphs and for underlying graphs of bounded treewidth. The problem has also been studied in probabilistic settings [16], where each snapshot is a random spanning tree. In this model, temporal graphs can be explored in O(n3/2)O(n^{3/2}) time steps with high probability.

Despite extensive progress, temporal exploration in connected temporal graphs is still far from well understood. While many natural restrictions are known to admit subquadratic exploration, the best upper and lower bounds often remain widely separated. For instance, for bounded-degree snapshots, bounded-degree underlying graphs, planar underlying graphs, and snapshots being cycles, the best lower bound is still only Ω(nlog⁡n)\Omega(n \log n) [45], whereas the best upper bounds remain around n3/2n^{3/2} (up to logarithmic factors) [18]. Even highly structured cases are not completely settled: for temporal graphs whose underlying graph is a (2×k)(2 \times k)-grid, the known bounds still differ by a polylogarithmic factor [45]. Thus, while the quadratic barrier can be broken in many settings, the fine-grained behavior of temporal exploration remains open for several fundamental graph classes.

Recently, Dogeas, Erlebach, Kammer, Meintrup, and Moses Jr. [38] showed that temporal exploration in connected temporal graphs can be parameterized by the number rr of automorphism orbits, that is, by the equivalence classes of vertices under automorphisms of the graph. For every fixed ε>0\varepsilon > 0, they obtain a temporal walk that visits all vertices and spans O(rn1+ε)O(rn^{1+\varepsilon}) time steps, together with lower bounds of Ω(nlog⁡n)\Omega(n\log n) when rr is constant and Ω(rn)\Omega(rn) for 1≤r≤n1 \leq r \leq n. The known deterministic

1^{1}Here and in the following, we let n:=∣V∣n := |V|.

construction of this bound relies on exhaustive search over automorphisms, whose number can be as large as n!n!. The extended version [37] gives a randomized polynomial-time algorithm, but with a weaker bound of O((n5/3+rn)log⁡n)O((n^{5/3} + rn) \log n) time steps for exploring a single orbit.

The same work introduces the Temporal Rendezvous Problem (TRP), a temporal variant of Alpern's rendezvous problem [6–9], which has been studied extensively in static graphs; see the survey [79]. For more recent results on gathering (i.e., multi-agent rendezvous), see [23, 25, 35]. Related work also studies treasure hunt [24, 82] and other rendezvous variants [20, 22, 26, 36, 48]. In TRP, two agents have full knowledge of the graph but do not share a common labeling of the vertices. After being placed at starting vertices by an adversary, they have to meet at some vertex (at a synchronized time step). As shown in [38], the agents can always meet after O(n1+ε)O(n^{1+\varepsilon}) time steps in connected temporal graphs, for every fixed ε>0\varepsilon > 0, and a lower bound of Ω(nlog⁡n)\Omega(n \log n) holds.

We study both temporal exploration and temporal rendezvous through a weaker and efficiently computable notion of symmetry. Our equivalence classes are the 2-WL fibers, defined by vertices being of the same color after an execution of the 2-dimensional Weisfeiler–Leman algorithm [84].

The k-dimensional Weisfeiler–Leman algorithm (k-WL) [60] is a combinatorial algorithm that iteratively refines a coloring of the k-tuples of vertices of the input graph G=(V,E)G = (V, E). The 1-dimensional version is also widely known as Color Refinement. Starting with an initial vertex coloring λ\lambda, for example λ(v):=1\lambda(v) := 1 for all v∈Vv \in V, and setting χ01:=λ\chi_0^1 := \lambda, the coloring is updated, for every i≥1i \geq 1 and every v∈Vv \in V, by

χi1(v):=(χi−11(v),{{χi−11(u)∣{u,v}∈E}}),\chi_{i}^{1}(v):=\left(\chi_{i-1}^{1}(v),\left\{\left\{\chi_{i-1}^{1}(u)\mid\{u,v\}\in E\right\}\right\}\right),

where the second component of the tuple denotes a multiset of colors. Hence, the color of a vertex in round ii consists of its own color in round i−1i-1 and the multiset of colors of its neighbors in round i−1i-1. Thus, the vertex partition induced by χi1\chi_i^1 is at least as fine as the one induced by χi−11\chi_{i-1}^1. The process stabilizes at some iteration ii, where we have χi1(u)=χi1(v)\chi_i^1(u) = \chi_i^1(v) if and only if χi+11(u)=χi+11(v)\chi_{i+1}^1(u) = \chi_{i+1}^1(v) for all vertices uu and vv. Letting i∗i^* be the value of ii where this first happens, we set χ1:=χi∗\chi^1 := \chi_i^*.

For dimension k≥2k \geq 2, the algorithm proceeds analogously on ordered vertex kk-tuples. We only define the procedure for k=2k = 2, as it is the only variant we require in this work. The initial coloring χ02\chi_0^2 of V2V^2 encodes the adjacency and equality type of each pair of vertices. For example, χ02(u,u)=0\chi_0^2(u, u) = 0, χ02(u,v)=−1\chi_0^2(u, v) = -1 if {u,v}\{u, v\} is not an edge, and χ02(u,v)=1\chi_0^2(u, v) = 1 if {u,v}\{u, v\} is an edge. Then, for every i≥1i \geq 1 and every (u,v)∈V2(u, v) \in V^2,

χi2(u,v):=(χi−12(u,v),{{(χi−12(w,v),χi−12(u,w))∣w∈V}}).\chi_{i}^{2}(u,v):=\left(\chi_{i-1}^{2}(u,v),\left\{\left\{\left(\chi_{i-1}^{2}(w,v),\chi_{i-1}^{2}(u,w)\right)\mid w\in V\right\}\right\}\right).

Analogously to the case of k=1k = 1, the algorithm terminates at the first iteration i∗i^{*} when the partition induced by the coloring stabilizes. Again, the coloring χ2:=χi∗2\chi^{2} := \chi_{i^{*}}^{2} induces a partition of the vertices into the 2-WL fibers (or simply the fibers) of the graph: two vertices u,v∈Vu, v \in V belong to the same fiber if and only if χ2(u,u)=χ2(v,v)\chi^{2}(u, u) = \chi^{2}(v, v). While the above procedures are defined for static graphs, the algorithm can be generalized readily to work on temporal graphs by taking as the input graph the underlying graph GG of the temporal graph G=(G1,…,GL)\mathcal{G} = (G_{1}, \ldots, G_{L}) and including in the initial coloring the labeling of each edge by the set of time steps in which it is present. Given such an edge coloring (or any edge coloring for that matter), the 2-WL fibers can be computed in time O(n3log⁡n)O(n^{3} \log n) [60, 61].

For k,k′k, k' with 1≤k′<k1 \leq k' < k, it follows straight from the definition of the algorithm that kk-WL captures all the information that k′k'-WL captures, and hence, the partition into the kk-WL fibers refines the partition into the k′k'-WL fibers. Moreover, the partition into automorphism orbits always refines the partition into the kk-WL fibers since kk-WL colors are invariant under automorphisms. Thus, WL fibers provide polynomial-time computable relaxations of automorphism orbits. This approximation of symmetry makes WL-type refinement a central tool in practical graph-isomorphism algorithms [10, 32, 62, 63, 73, 74] and in theoretical approaches to the graph-isomorphism problem [11, 13, 15, 27, 60, 69]. The dimension of the algorithm required to capture the isomorphism type of a graph has by now become a common measure for the structural complexity of the graph [51, 64] and also of other objects [49]. Most notably, the WL algorithm is a core ingredient in Babai's celebrated quasipolynomial-time isomorphism and automorphism algorithms [13, 14]. Beyond pure isomorphism testing, the algorithm has surprising connections to and applications in various areas, such as mathematical logic [27, 69], proof complexity [12], homomorphism counting [34, 40], graph connectivity [66], satisfiability checking [32], machine learning [78, 81, 87], and educational support systems [80], all of which contribute to making it a rich and active topic of research. To the best of our knowledge, our work presents the first use of the WL algorithm to obtain complexity bounds for reachability problems in temporal graphs.

References (82)