Manuscript Offprint
arXiv:2610.30123Temporal Exploration and Rendezvous via Weisfeiler-Leman Colorings
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 vertices can be explored in time steps, where is the number of vertex color classes induced by the 2-dimensional Weisfeiler–Leman (2-WL) coloring. For small , our bound substantially improves on the known worst-case bound of in general connected temporal graphs. A corresponding walk can be constructed in deterministic polynomial time. The upper bound is complemented by lower bounds of when is constant and when .
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 time steps, leaving a gap of only to the known lower bound.
Dogeas, Erlebach, Kammer, Meintrup, and Moses Jr. [ICALP'24] have shown an bound for TEXP, for every fixed , where is the number of orbits, and an bound for TRP. Both results require superpolynomial computation time. Our contribution improves upon these results in several ways. First, the dependence on in the upper bounds on the number of time steps is decreased from to for both TEXP and TRP. Second, for TEXP, we bound the number of time steps linearly by the parameter , which is efficiently computable and upper bounded by . 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.
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 with lifetime is a sequence of graphs, called snapshots, on a common vertex set . 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 time steps and that this bound is tight.
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 -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 in terms of the average temporal maximum degree . In particular, their result yields when every snapshot has maximum degree at most , and when the underlying graph has average degree at most ; 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 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 [45], whereas the best upper bounds remain around (up to logarithmic factors) [18]. Even highly structured cases are not completely settled: for temporal graphs whose underlying graph is a -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 of automorphism orbits, that is, by the equivalence classes of vertices under automorphisms of the graph. For every fixed , they obtain a temporal walk that visits all vertices and spans time steps, together with lower bounds of when is constant and for . The known deterministic
Here and in the following, we let .
construction of this bound relies on exhaustive search over automorphisms, whose number can be as large as . The extended version [37] gives a randomized polynomial-time algorithm, but with a weaker bound of 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 time steps in connected temporal graphs, for every fixed , and a lower bound of 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 . The 1-dimensional version is also widely known as Color Refinement. Starting with an initial vertex coloring , for example for all , and setting , the coloring is updated, for every and every , by
where the second component of the tuple denotes a multiset of colors. Hence, the color of a vertex in round consists of its own color in round and the multiset of colors of its neighbors in round . Thus, the vertex partition induced by is at least as fine as the one induced by . The process stabilizes at some iteration , where we have if and only if for all vertices and . Letting be the value of where this first happens, we set .
For dimension , the algorithm proceeds analogously on ordered vertex -tuples. We only define the procedure for , as it is the only variant we require in this work. The initial coloring of encodes the adjacency and equality type of each pair of vertices. For example, , if is not an edge, and if is an edge. Then, for every and every ,
Analogously to the case of , the algorithm terminates at the first iteration when the partition induced by the coloring stabilizes. Again, the coloring induces a partition of the vertices into the 2-WL fibers (or simply the fibers) of the graph: two vertices belong to the same fiber if and only if . 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 of the temporal graph 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 [60, 61].
For with , it follows straight from the definition of the algorithm that -WL captures all the information that -WL captures, and hence, the partition into the -WL fibers refines the partition into the -WL fibers. Moreover, the partition into automorphism orbits always refines the partition into the -WL fibers since -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.
Theorem 1.1. Let be a connected temporal graph with vertex set and sufficiently large lifetime. Let be the partition of into its 2-WL fibers, and let . There exists a temporal walk that visits all vertices of and spans time steps. Moreover, can be computed deterministically in polynomial time.
Recall that 2-WL is defined on pairs of vertices. The final coloring encodes information about the number of (specific edge-colored) walks between every pair of vertices. Thus, when considering temporal graphs as edge-labeled static graphs with the temporal edge relations encoded in the initial edge coloring, the final 2-WL color of a vertex pair captures the counts of specific temporal walks between them. This makes the algorithm a suitable tool for problems relating to temporal walks, and Theorem 1.1 identifies 2-WL as a natural structural tool for temporal exploration.
At the same time, 2-WL equivalence of vertices is a much weaker symmetry notion than automorphism orbits. In fact, our main technical contribution is to show that the weak symmetries supplied by 2-WL suffice to obtain tight bounds for TEXP up to logarithmic factors. To this end, we construct randomized temporal walks based on the partition into 2-WL fibers and analyze the distribution of these walks. Intuitively, the structure imposed by 2-WL allows us to maintain balanced distributions during the randomized construction, ensuring that, in expectation, no vertex is visited substantially more often than the others. This enables us to show that, in expectation, the randomized walks that we construct visit many distinct vertices within a sufficiently short time span. Interestingly, we can derandomize the construction yielding a polynomial-time deterministic algorithm.
We first apply the described approach to explore a fixed fiber S (Theorem 1.2). Afterwards, exploring all fibers one by one yields Theorem 1.1.
Theorem 1.2. Let be a connected temporal graph with vertex set and sufficiently large lifetime. Let be the partition of into 2-WL fibers, and set . For every , there exists a temporal walk that visits all vertices of and spans time steps. Moreover, can be computed deterministically in polynomial time.
Theorem 1.1 improves the related result in [38] in several ways. Their result gives a bound of time steps, for every fixed , where is the number of automorphism orbits. Recall that 2-WL colors are isomorphism-invariant, hence . Our bound is in terms of a parameter , improves the dependence on from to , and comes with a deterministic polynomial-time construction. On a technical level the strategy of [38] highly exploits the perfect symmetry information provided by the automorphism group of the graph. The tools provided by the automorphism group cannot be adapted to 2-WL fibers, and thus we require a novel approach. We discuss the intricacies of our approach in Section 2.
The following lower bounds are implied by known constructions from [38, 45].
Theorem 1.3. There exist connected temporal graphs with vertex set such that, letting denote the vertex partition into 2-WL fibers and , TEXP requires time steps whenever is constant. For all with , there is a connected temporal graph on which TEXP requires time steps.
For a self-contained presentation of the next result, we now formally introduce the Temporal Rendezvous Problem (TRP). Let be a temporal graph with vertex set and lifetime . Two agents and are placed at respective start vertices in time step 1. The agents run possibly different programs and , respectively. Using these programs, they compute and follow respective temporal walks and . The goal is that the agents meet at the same vertex in the same time step at least once during these walks. The agents have full information about the structure of , but they cannot communicate and do not see each other's location. Moreover, they do not have access to a common vertex labeling: equivalently, each agent sees an isomorphic copy of , say and , with possibly unrelated vertex labels. The start vertices and the two labelings are chosen by an omnipotent adversary after the programs and have been fixed. Without consistent vertex labels, the agents cannot use trivial strategies such as agreeing to meet at the lowest-labeled vertex. Since the temporal graphs we consider are connected, assuming sufficiently large lifetime, there always exist temporal walks that make the agents meet. A solution to TRP is a pair of programs for the two agents. We are interested in the number of time steps required until the agents meet and in the complexity of the computation of the walks.
By an application of Theorem 1.2, we obtain the following.
Theorem 1.4. In the TRP setting, on connected temporal graphs with sufficiently large lifetime, the two agents can always meet within time steps using polynomial computation time.
Note that here, in contrast to Theorem 1.1, the parameter q has no impact on the time steps. Our result for TRP leaves only a factor of to the lower bound of [38]. It also improves on the previous upper bound of time steps [38]. Moreover, our strategy can be implemented by agents with polynomial-time computational power whereas the previous approach relies on automorphism orbits and a brute-force enumeration of temporal walks. The remainder of this work is structured as follows. In Section 2, we sketch the main ideas and techniques to prove our results and highlight the intricacies that come with using the structural information provided by
2-WL rather than the full symmetry information from automorphism orbits. In Section 3, we give the remaining preliminaries and prove basic reachability facts used throughout. In Section 4, we collect the properties of 2-WL that we use for temporal walks. Next, in Section 5, we prove Theorems 1.1, 1.2 and 1.4. Section 6 describes the lower-bound constructions underlying Theorem 1.3. We conclude our work with an outlook in Section 7.
2 Detailed Technical Overview
For the remainder of this section, let be a connected temporal graph with vertex set and lifetime . We introduce some additional notation. For a set and time steps with , we write for the set of vertices reachable by a temporal walk that starts at some vertex of at time step and ends no later than time step . If is a singleton set , we set .
A temporal walk that visits all vertices is usually constructed incrementally. At the beginning, when almost all vertices are still unvisited, making progress (i.e., making sure to visit previously undiscovered vertices) is easy. Even a simple greedy strategy, such as moving to the earliest reachable unvisited vertex, can visit many new vertices quickly. Over time, however, such a greedy strategy becomes less efficient. Once many vertices have already been visited, the walk may have to spend a lot of time steps before it reaches a fresh vertex.
It is well-known that one can visit any set of vertices in time steps (Lemma 3.1), and that in general temporal graphs, this is the best one can hope for [45]. However, in certain temporal-graph classes, one can break this barrier. A common method is to first prove an intermediate progress guarantee. The approach is to show that, for any subset of the vertices, there is a temporal walk that visits a guaranteed fraction of , in much less than time steps. Such a statement is often easier to prove, because it only has to guarantee fractional progress. Once such a guarantee is available, it can be lifted to a full exploration result by applying it repeatedly.
We use a variant of this idea. Instead of always aiming to visit all vertices of quickly, we fix a target set and want to visit all vertices of . The set will be one 2-WL fiber. We build the temporal walk in phases; see Figure 1. At the beginning of phase , let be the set of vertices of that have not yet been visited, with . During phase , we obtain a temporal walk . Letting be the set of vertices of visited by , we set .
The temporal walks from the individual phases do not necessarily fit together directly since a single-phase argument typically guarantees a walk with the desired progress, but not one that starts at the current endpoint of the walk constructed so far. We therefore leave a buffer of time steps between consecutive phases. Since every snapshot is connected, any current vertex can reach any other vertex within at most n time steps (Lemma 3.1). Thus, a buffer of length n suffices to connect the endpoint of one phase to the start vertex of the next phase. Concatenating the phase walks with these buffer walks yields one temporal walk that visits all vertices of S.
2.1 From Automorphism Orbits to 2-WL
Dogeas, Erlebach, Kammer, Meintrup, and Moses Jr. [38] showed that connected temporal graphs can be explored in time steps, where is the number of automorphism orbits. We recall the main construction, as it will help understand the intricacies that come with using restricted notions of symmetry. As is common, their proof uses a phase-based construction as sketched above.

Figure 1: Phase-based construction of a temporal walk that visits all vertices of a set . In phase , the walk visits some vertices of the current set of unvisited vertices within some time span . The connecting segments between phases are buffer walks which ensure that the phase walks can be concatenated to one final temporal walk.
In one phase, the goal is to make guaranteed progress in the exploration of a fixed automorphism orbit . The key ingredient for their proof is that, for every fixed , one can deterministically construct a temporal walk that spans time steps and visits at least vertices of , for some fixed constant . The walk need not visit many vertices of the current unvisited set ; in the worst case, it may make no progress in the current phase. The orbit structure is then used to repair it and ensure the required progress. Here is where the full symmetry captured by automorphisms is used: apply vertex by vertex an automorphism to to obtain a walk that visits different vertices of . By an averaging argument over the automorphism group, one can find an automorphism so that the new walk visits many vertices of .
To construct the walk that visits many vertices of , the authors of [38] essentially use a divide-and-conquer construction. Roughly speaking, the construction recursively builds two smaller walks and entirely independently (where and denote left and right, respectively) such that starts a certain number of time steps after , transforms by an automorphism, and finally connects them by an intermediate walk . For the choice of the start time of , it is important to note that we cannot pick a time step when we can be sure that every vertex of is reachable, as this could incur up to time steps at every recursive step (Lemma 3.1) for each of the walks . Thus, only the set of vertices reachable from the endpoint of within a short time span are valid start vertices for . But as the original is constructed absolutely independently of , it need not start at a vertex of , and it may visit many of the same vertices as . The automorphism machinery is used to repair both issues at once: one applies a suitable automorphism to to obtain a walk so that its start vertex lies in the reachable set and the transformed walk has small overlap with . This is the key strength of the orbit-based divide-and-conquer construction: the two recursive walks can be constructed independently because automorphisms provide a repair mechanism in the merge step. Constructing the described walks requires exhaustive search over automorphisms or brute-force enumeration of temporal walks. Moreover, computing automorphism orbits is only known to be possible in quasipolynomial time in general via Babai's algorithm [14].
Our intention is to reduce the computational complexity. To this end, we relax the equivalence notion between vertices from being contained in the same orbit to having the same 2-WL color, i.e., being in the same 2-WL fiber. This weaker notion still guarantees that equivalent vertices share certain combinatorial properties. More precisely, the 2-WL colors encode the number of temporal walks between pairs of vertices. Hence, in particular, equivalent vertices have equal counts of temporal walks into other fibers. Contrary to automorphism orbits, the 2-WL fibers are known to be computable in polynomial time, so the computational issues described above disappear. In addition, since the partition into 2-WL fibers is coarser than the partition into orbits, we obtain a better factor in our complexity analysis. However, and crucially, we lose the repair mechanism that the perfect symmetry captured by the automorphisms offers. Nonetheless, 2-WL allows us to, in a sense, emulate the repair step with a probabilistic procedure, outlined later in this section.
Focus on a single phase . Fix a 2-WL fiber , and let be the vertices of that have not yet been visited. In this phase, a walk that merely visits many vertices of is not enough: it has to visit many unseen vertices, i.e., many vertices of the current set since we cannot repair our walks as in the orbit-based approach. We still build the phase walk recursively, with a left part, a connecting part, and a right part.
A recursive construction starts at some vertex of in time step and first computes recursively a left walk , starting at in time step . Suppose that ends at a vertex at time step . The algorithm then considers the set of vertices that can be reached by temporal walks starting at in time step and ending at a time step , where the choice of will be specified later. It chooses a vertex from , follows a connecting temporal walk from to , and then starts the right recursively computed walk at in time step . The walk returned by the construction is the concatenation of , , and . But the recursion can no longer be viewed as two independently constructed sub-walks followed by a repair step. Thus, the recursive choices themselves must ensure the properties needed in the phase: the final walk makes progress on , the left and right parts both contribute relevant vertices, and their contributions do not overlap too much. The right recursive construction must depend on the outcome of the left recursive call, and the set has to be part of the analysis from the beginning.
We handle this dependence by introducing randomness. Intuitively, the resulting process is similar to a random walk, but instead of choosing a random neighbor at each time step, it chooses a vertex from a reachable set within a prescribed time span, and then follows some temporal walk to that vertex. In our recursion, after has been constructed and ends at at time step , we choose the start vertex of uniformly at random (u.a.r.) from the set , described above. The set depends on the actual end point of , so the left and right parts are not independent in the usual probabilistic sense. The role of 2-WL is to show that the resulting transition probabilities are nevertheless balanced enough to make the recursive analysis go through.
The recursion is governed by a parameter , which we call the exploration scale. Informally, and with some imprecision for the sake of intuition, a construction with exploration scale constructs a walk that aims to visit distinct vertices of the fiber . The initial recursive construction uses an exploration scale of order roughly , so the goal is for the recursively constructed walk to visit a substantial part of . Each recursive step then splits this task into a left and a right walk, each of which should be thought of as continuing with exploration scale roughly . The recursion stops once ; in this case, the algorithm returns a trivial temporal walk that visits one vertex in one time step. See Figure 2 for a schematic overview.
The difficulty is to prove that the randomized construction actually produces a temporal walk that visits many vertices of the current set from the phase under consideration. We show that the procedure constructs a temporal walk that visits vertices of in expectation (Lemma 5.8), while has time span (Lemma 5.4). In the next subsection, we give an overview of the proof of the expected-progress bound, then sketch the time-span analysis, and finally explain the derandomization.
2.2 Randomized Partial Exploration
Before we can analyze the randomized recursion, we collect some useful structural properties of the 2-WL algorithm. Let be the final 2-WL coloring of the temporal graph, obtained after

Figure 2: Sketch of our randomized recursive procedure. The recursion is started with exploration scale K, a start vertex u, and a start time t. If , we return the trivial temporal walk that stays at u at time step t. Otherwise, we first construct a walk with a smaller exploration scale , starting at u at time step and ending at vertex at time step . Starting from in time step , we construct a sufficiently large set X of reachable vertices. We then choose a vertex u.a.r. from X, and use as the start of the recursively constructed walk .
encoding the time labels as edge colors and executing the algorithm on the edge-colored graph. If satisfy , then, for any time steps , the number of temporal walks that start at at time step and end at at time step equals the number of temporal walks that start at at time step and end at at time step .
Now fix a fiber and two time steps . Consider the bipartite graph whose two sides are copies of , and where a vertex on the left is adjacent to a vertex on the right if is reachable from between time steps and . The 2-WL property described above implies that is biregular: all vertices on the left have the same degree, and all vertices on the right have the same degree (Lemma 4.4). If we choose a vertex on the left u.a.r. and then choose an outgoing edge u.a.r., we obtain a matrix of transition probabilities between vertices where the row of is indexed by the start vertex , and the column is indexed by the endpoint on the right. Since is biregular, it turns out that this matrix is doubly stochastic, meaning that each row and each column sums to 1 (Lemma 4.8). This models the transition that occurs in our recursion (Figure 2) when we choose the start vertex of uniformly from a reachable set. Thus, whenever the endpoint of is uniformly distributed over , the start vertex of remains uniformly distributed over . Since products of doubly stochastic matrices are doubly stochastic themselves, we can show that the same balancedness persists through the recursive construction.
To analyze the procedure, we turn to the recursion tree that represents the relations between the recursive calls. Each node of represents the recursive computation to construct a walk . If is an internal node, then is composed of three sub walks: a left walk , computed recursively, a connecting walk , and a right walk , also computed recursively. If is a leaf, then represents the base case of the recursion and is the trivial temporal walk that stays at one vertex of for one time step.
We write for the subtree of rooted at . The walk is produced by the full recursive computation inside . If is an internal node with children and , then represents the recursive construction that computes , and represents the recursive construction that computes . The node itself additionally computes the connecting walk between them. Let be a node of . We say that starts at if the recursive construction represented by is invoked with start vertex , equivalently, if starts at . We say that ends at if ends at . If is a leaf, then the two vertices are the same: the walk is the trivial walk that stays at its start vertex for one time step. Finally, we say that visits a vertex if contains .
For the analysis, we model the recursive procedure by transition matrices, outlined next. Let be an internal node of with left child and right child . Suppose that the walk corresponding to ends at vertex at time step . We choose the start vertex of the right recursive construction uniformly from a reachable set , where is chosen sufficiently large for our analysis to go through. We define the internal transition matrix by
Thus, models the random transition from the endpoint of to the start vertex of . We also define endpoint-transition matrices. For every node of , let be given by
If is a leaf, then is the identity matrix. If is an internal node with children and , then . This is because the walk first follows the walk , then makes the random internal transition described by to the start vertex of , and finally follows the walk .
Finally, for every node and every leaf in , we define the leaf-visit matrix by
If is a leaf, then is the identity matrix. If is an internal node and lies in the left subtree of , then . If lies in the right subtree of , then . This is because the start vertex of is determined by first following the walk and then applying the internal transition ; subsequently, the vertex visited by is described by .
The biregularity statement above implies that each matrix is in fact doubly stochastic (Lemma 4.8). It follows inductively that each and each is doubly stochastic as well (Lemma 5.5).
Lower Bound on the Number of Distinct Vertices We now sketch the lower bound on the number of distinct vertices of visited in one phase. Let be the recursion tree of our recursive procedure, let be its root, and let be the exploration scale used by the recursive construction represented by . Recall that, for a leaf node of , the walk is trivial and visits a single vertex of ; we call this vertex the leaf visit of . Let be the number of leaf nodes whose leaf visit is a vertex of , counted with multiplicity. We show that, for every fixed leaf node of , the leaf visit of is uniformly distributed over . This implies that each leaf contributes in expectation to . Together with the fact that has leaves (Lemma 5.3), we can show that (Lemma 5.6). This bound only counts visits with multiplicity and therefore does not yield any lower bound on the number of distinct vertices visited. In particular, may be large even if the same vertex of is visited over and over again. To pass from visits with multiplicity to distinct vertices, we count collisions. We define a collision as an unordered pair of leaves of such that visits the same vertex as and . Let be the number of collisions. is a lower bound on the number of distinct vertices of visited. Thus, it remains to prove that .
The delicate part is bounding , because the two sides of a recursive call are not independent: the start vertex of the right recursive walk is chosen only after the left walk has ended, and the set from which it is chosen depends on the endpoint of the left walk. Every collision can be assigned to the lowest common ancestor of and . Fix such a node with left child and assume the walk has been computed. Then the leaf visits in are fixed, the walk ends at some fixed vertex , and the reachable set for the right recursive construction is fixed as well. The right recursive computation for starts from a vertex of chosen u.a.r. Hence, every vertex of has probability at most of being chosen as the start vertex of . The later leaf-visit distributions in the right subtree are obtained by multiplying with doubly stochastic matrices, which cannot increase the maximum probability assigned to any vertex (Observation 4.7). Consequently, for every leaf in the right subtree and every fixed vertex , the probability that visits is at most . See Figure 3 for a sketch.

Figure 3: Sketch of the walks in the computation represented by a node and the resulting probability bound on collisions. Everything colored in yellow is considered precomputed and hence fixed. We condition on the entire left subtree . Then, for every leaf of , the vertex visited by is fixed. Moreover, the walk ends at a fixed vertex at a fixed time step , and therefore the set is fixed as well, where is chosen such that is sufficiently large. The start vertex of the right recursive construction is chosen uniformly at random from . Since the transition matrices in the right subtree are doubly stochastic, for a fixed leaf of and any fixed vertex , the probability that visits is at most . For every fixed pair of leaves and , the probability that and visit the same vertex is at most .
By choosing the sizes of the sets carefully, we can ensure that the total expected contribution of all collisions is only a constant fraction of (Lemma 5.7). This gives the required upper bound on , hence a lower bound on , which yields that, for any , the walk computed by our entire recursive construction visits many vertices of in expectation (Lemma 5.8).
Upper Bound on the Number of Time Steps So far, we have shown that the walk computed by our recursive construction visits many different vertices of any set in expectation. We have not yet considered the time span of the recursively constructed walk. The time-span analysis relies on two ingredients. First, we carefully balance, at each recursion level, the number of time steps that the glue walks are allowed to span with the size of the reachable sets from which the right recursive construction may start. Second, we choose the initial recursion parameter as .
This choice allows us to bound the number of leaves of the recursion tree by . With the bound on the time spent at the internal nodes of the recursion tree, this yields a total time span of for the constructed temporal walk (Lemma 5.4).
To explore the entire set , we then use the phase strategy described at the beginning of the section and visualized in Figure 1. In phase , the current set of unvisited vertices is . The partial-exploration guarantee (Lemma 5.8) gives a temporal walk that visits vertices of and has time span . Hence, each phase removes an fraction of the remaining vertices. Intuitively, as long as at least vertices remain unvisited, each phase visits roughly new vertices, so after phases approximately half of has been visited. Then, as long as at least vertices remain unvisited, each phase still visits roughly new vertices. Continuing in this way, the number of unvisited vertices decreases by a constant factor every phases. By this argument, we can then show that after phases, only vertices of remain unvisited. Each remaining vertex can be visited in time steps (Lemma 3.1), contributing additional time steps in total. Thus, we can explore in time steps.
Derandomization The preceding argument is only existential: it shows that some outcome of the randomized construction gives sufficient progress in each phase, but it does not yet give a deterministic algorithm for finding such an outcome. Surprisingly, we can turn this existential proof into a deterministic polynomial-time algorithm by derandomizing the construction via the method of conditional expectations; see, e.g., [5, Chapter 16.1].
Recall that the analysis considers , where counts leaf visits in and counts collisions in . In the exploration algorithm, the set is the current set of vertices of that have not yet been visited. For a partial sequence of fixed random choices, we consider the conditional expectation . Initially, for , this is the expectation analyzed above.
We fix the random choices one by one. Suppose that is the sequence of choices fixed so far. For the next random choice, we iterate over all possible outcomes and compute , where is the sequence obtained from by appending . We then choose an outcome maximizing this conditional expectation and replace with . This cannot decrease the conditional expectation, because is the average of over all possible outcomes of the next random choice. Repeating this until all random choices have been fixed yields a deterministic temporal walk whose value of is at least the original lower bound on . It just remains to argue that this procedure runs in polynomial time. For this, we show that there are only polynomially many choices to consider (Claim 5.9) and that each required conditional expectation can be evaluated in polynomial time (Claim 5.10).
2.3 Temporal Rendezvous
The rendezvous result follows from the single-fiber exploration bound (Theorem 1.2). Recall that, in TRP, two agents and know the temporal graph, but do not share a common vertex labeling. To prove Theorem 1.4, we describe a strategy that both agents can compute in polynomial time such that the agents meet in time steps. Both agents compute the 2-WL fibers and choose a smallest fiber , with ties broken canonically by the 2-WL colors. Since the 2-WL coloring is canonical, both agents choose the same fiber. Agent moves to a vertex of within at most time steps and waits there. Agent waits for time steps and then explores all vertices of using Theorem 1.2, or until agent finds agent . Since is a smallest fiber, we have
and thus agent explores all of within time steps. It remains to note that the strategy can be implemented in polynomial time. The agents must first compute the underlying graph together with the edge labels representing the time steps each edge is active at, which can be done in linear time with a scan over all snapshots. The 2-WL fibers can then be computed in time [60, 61]. This running-time bound applies after preprocessing the temporal edge labels into integer colors; in particular, it holds for edge-colored graphs. Theorem 1.2 gives a polynomial-time algorithm for agent to explore all of , and the temporal walks used to reach the fiber can be computed efficiently using standard algorithms for temporal reachability [86].
3 Preliminaries
For , we write . We denote by the number of vertices of the (temporal) graph at hand. A temporal graph with vertex set and lifetime is connected if every snapshot for is connected. A temporal walk in is a sequence of tuples with and such that and, for every , either , or is an edge of the snapshot . In the former case, the temporal walk waits at its current vertex. The time span of the temporal walk is . For two temporal walks and such that ends at a vertex in time step and starts at in time step , we denote by the walk resulting from first traversing and then . Throughout the paper, we assume that the lifetime is sufficiently large to accommodate all temporal walks whose existence we assert. If there exists a temporal walk between two vertices and , we say that is reachable from . We make use of the following standard result for temporal graphs.
Lemma 3.1 (see [45, Lemma 2.1]). Let be a connected temporal graph with vertex set and lifetime . For all , with and , it holds that .
An immediate consequence of the lemma is that every vertex can reach any other vertex in at most n time steps.
Let be a temporal graph with vertex set and lifetime . Recall that a temporal graph can equivalently be viewed as its underlying graph together with an edge coloring encoding the set of time steps an edge is active. Let be the underlying edge-colored graph with such an edge coloring , and let be a partition of into nonempty sets. For , , and , let . We say that is equitable if, for all and all colors , the value is the same for every vertex . The temporal quotient graph of has vertex set . For two parts and a time step , the edge is active in at time if and only if there exists an edge of the underlying graph with , , and .
Variants of the following two lemmas are known when the vertices of the temporal graph are partitioned into automorphism orbits; see [38, Lemmas 6 and 7]. The arguments are essentially the same as in [38], we present explicit proofs adapted to our setting of equitable partitions.
Lemma 3.2 (see [38, Lemma 6]). Let be a connected temporal graph with lifetime , and let be an equitable partition of . Then, for all , all , and all with ,
Proof. Fix , , and a time step with and let be the temporal quotient graph induced by . We use nodes and quotient edges for the vertices and edges of , in order to avoid confusion with the vertices and edges of . Moreover, we use parts and the node in representing interchangeably, e.g., we say is a node of . Since is connected, every snapshot of is connected. Hence, by Lemma 3.1, after time steps all nodes of are reachable from any fixed start node. In particular, there is a temporal walk in from the node to the node starting at time step and arriving by time step . Let this temporal walk in be , where and , and let be the time steps at which the quotient edges are used.
We first consider one time step. Let . Since is equitable in the snapshot , every vertex of has the same number of neighbors in , and every vertex of has the same number of neighbors in . Counting the edges between and in two ways gives
If is the set of vertices reachable from by using one edge at time step , then
Now set . For , let be the set of vertices reachable from by using an edge at time step . Applying the inequality above with gives
By induction over j, the inequality above implies
for every . Since and , it follows that
The following lemma is obtained by a direct application of Lemma 3.2.
Lemma 3.3 (see [38, Lemma 7]). Let be a connected temporal graph with lifetime and vertex set , and let be an equitable partition of . Let , let , and let . Then there exists an integer such that, for every it holds that .
Proof. Choose a constant c large enough for the two bounds proved below, and set
Fix a start time .
We first show that vertices of become reachable within time steps starting at at time step . For a part and time step , say that an overflow occurs in at time step if
As long as not all vertices are reachable, the reachable set grows by at least one vertex in every time step (Lemma 3.1). Hence, by the pigeonhole principle, an overflow occurs after at most
time steps. Let be the first time step at which an overflow occurs, and let be a part in which it occurs. Set . Applying Lemma 3.2 to and the target part shows that, after another time steps,
Since every vertex of Y is reachable from u by time step , the above inequality implies that at least h vertices of are reachable from u by time step . Thus, the first time step at which h vertices of are reachable satisfies .
We now show the alternative bound . Let be the set of vertices of currently reachable from . Initially, at time step . Suppose . Applying Lemma 3.2 to shows that, after time steps, for every part , at least vertices of are reachable. Since fewer than vertices of are reachable, not all vertices of the graph are reachable. Thus, by Lemma 3.1 after one more time step some new vertex becomes reachable. Let be the part containing such a new vertex. Then, for some reachable set , we have
Applying Lemma 3.2 again, now from back to , gives after another r time steps at least
reachable vertices in . Hence, within time steps, the number of reachable vertices in increases by at least one, and thus after time steps at least vertices of are reachable. Thus, the first time step at which vertices of are reachable satisfies .
Taking the minimum of the two bounds concludes the proof.
4 The Connection Between 2-WL and Temporal-Walk Counts
For the remainder of this section, let be a temporal graph with vertex set and lifetime . Let be the partition of into its 2-WL fibers, and let be the 2-WL coloring inducing , that is, two vertices belong to the same fiber if and only if .
Recall that refines the initial coloring , which itself encodes the adjacency and equality type of the vertex pairs. Hence, for vertices with , we always have , that is, fibers are indeed color classes of the entire set .
The following two lemmas state well-known properties of 2-WL. We include proofs for completeness.
Lemma 4.1. For all fibers with , and for , , , ,
Proof. Since and , we know that . Assume towards a contradiction . Then, in particular,
However, the first multiset contains the entry whose second component is , while the second multiset does not have any such entry, a contradiction.
Lemma 4.2. For all fibers , all vertices , and every color , it holds that
Analogously,
Proof. Since and lie in the same fiber, we have . By the definition of 2-WL, the multisets
are equal.
Moreover, Lemma 4.1 yields that if and , then . Hence, the equality of the above multisets must also hold when restricting them to vertices . Thus, for any fixed color , we obtain
and, with a symmetric line of reasoning,
Lemma 4.3. For all pairs with and all , the number of temporal walks from to starting at time step and ending at time step is equal to the number of temporal walks from to starting at time step and ending at time step .
Proof. We proceed by induction on . For , the only temporal walk starting at time step t and ending at time step t is the trivial walk that stays at its start vertex. Hence, the number of such walks from u to v is 1 if , and 0 otherwise.
Now let . Every temporal walk from to ending at time step can be decomposed according to the vertex visited immediately before the last step. Thus, the number of such walks is obtained by summing, over all , a quantity that depends only on the two colors and : by induction, determines the number of walks from to up to the previous time step, and determines whether the final transition to at time step is possible.
Since , the definition of 2-WL gives equality of the multisets
Therefore, the two sums over intermediate vertices are equal. Hence, the number of temporal walks from u to v starting at time step t and ending at time step equals the corresponding number for and .
For fibers and time steps with let be the complete bipartite weighted graph with bipartition in which the weight of the edge between and is the number of temporal walks starting at time step in and ending at time step in . The weighted degree of a vertex is the sum of the weights of its incident edges. We call a weighted bipartite graph biregular if, on each side of the bipartition, all vertices have the same weighted degree (which may, however, be different between the sides). We denote by the support graph of , defined as the bipartite graph on that contains an edge between and if and only if the corresponding weight in is at least 1. The notions apply also for unweighted bipartite graphs by considering them as graphs with uniform edge weight 1.
Lemma 4.4. Let and let . Then and are biregular.
Proof. Let and . We first consider the weighted graph . By Lemma 4.3, all pairs with and and the same 2-WL color have the same weight in . Fix a vertex . Its weighted degree in is
By Lemma 4.2, the second factor is independent of the choice of , for every color . Hence, every vertex of has the same weighted degree in . Every vertex of has the same weighted degree in by an analogous argument. Hence, is biregular.
Finally, an edge of color is present in the support graph if and only if . Therefore, the same sums with each positive replaced by 1 show that all vertices of have the same degree in and all vertices of have the same degree in . Hence, is biregular as well.
The next observation follows from the fact that every vertex can reach itself in one time step.
Observation 4.5. Let and let . Then every vertex of has weighted degree at least 1, and every vertex of has degree at least 1.
A matrix is doubly stochastic if every row of sums to 1 and every column of sums to 1. We use the following two elementary observations.
Observation 4.6. Let be doubly stochastic matrices, for some integer . Then is doubly stochastic.
Observation 4.7. Let be a doubly stochastic matrix and let be a row vector such that every entry of is at most , for some . Then every entry of is at most .
In the next section, we analyze a procedure that repeatedly chooses a vertex uniformly at random from a set of possible endpoints of temporal walks. Such a choice gives a transition matrix P, where is the probability of choosing v when starting from u. The support graph defined above induces doubly stochastic transition matrices, as shown next. We make use of Observation 4.5 to ensure the degrees of vertices in the bipartite graphs considered in the upcoming lemma is not zero.
Lemma 4.8. Let , and let . Let , and let be the common degree of the vertices in the left copy of in . Define by setting if is an arc of , and otherwise. Then is doubly stochastic.
Proof. By Lemma 4.4, H is biregular. Since both vertex classes of H are copies of S, the common degree of the vertices in the right copy of S is also d. Therefore, every row and every column of P contains exactly d entries equal to 1/d, and hence every row and every column sums to 1.
5 Temporal Exploration via 2-WL Fibers
For the remainder of this section, let be a connected temporal graph with vertex set and lifetime , and let be the partition of into its 2-WL fibers. In this section, we prove the algorithmic results of the paper. The main part is the proof of Theorem 1.2: for a fixed fiber , we construct a temporal walk that visits all vertices of within the claimed time span. Applying this single-fiber result to all fibers one after another then yields Theorem 1.1. The implications for TRP have been shown in Section 2.3. To avoid irrelevant edge cases, we handle small fibers separately. Throughout this section, whenever we consider a fiber , we assume that is larger than a sufficiently large constant, otherwise, we visit all vertices of directly by repeated applications of Lemma 3.1. This takes time steps and is therefore within any claimed bound below.
The proof proceeds in three parts. Recall that the general idea is to repeatedly make progress on a set of vertices that have not yet been visited. First, we give a randomized recursive procedure that is independent of . We then analyze the time span of the computed walk and show that, for every fixed set , the walk visits sufficiently many distinct vertices of in expectation. Finally, we derandomize the construction using conditional expectations and apply the resulting deterministic partial-exploration procedure repeatedly until all vertices of have been visited.
5.1 Outline of the Procedure
The procedure PARTIALEXPLORE(S, t) (Algorithm 1) constructs a temporal walk that starts at a u.a.r. chosen vertex in S at time step . For convenience, we define the actual recursion with the helper procedure RECURSE(u, t, K) that takes a fixed vertex of S as the starting vertex and an additional parameter K, which we call the exploration scale. One of our goals is to show that the recursion tree generated by a call RECURSE(u, t, K) has leaves. We first fix some parameters. Take for a sufficiently large constant and let . The first call of RECURSE uses the initial exploration scale . If a call RECURSE(u, t, K) has exploration scale larger than the base-case threshold ( ), it recursively constructs a left and a right walk, both with exploration scale . Between these two walks, it constructs a connecting segment that provides at least possible start vertices for the right walk, from which one is chosen u.a.r. At the bottom of the recursion, i.e., at the leaves of the recursion tree, the procedure returns a trivial temporal walk visiting a single vertex of in one time step. While we are later interested in visiting many vertices of a set of desirable vertices, the set is not given to the procedure as an input. Instead, the random construction is sufficiently balanced that, for every fixed set , a temporal walk returned by an invocation of RECURSE with exploration scale visits distinct vertices of in expectation. Applied to the outermost invocation with , we obtain the desired bound . See also Algorithm 1.
Algorithm 1 PARTIALEXPLORE(S, t)
Require: A fiber S, a start time t
Ensure: A sampled temporal walk whose first vertex is chosen u.a.r. from S and which starts at time step t
Choose a sufficiently large constant C
procedure RECURSE(u, t_1, K)
if then
return the temporal walk that stays at u at time step
end if
Choose u.a.r. from
to starting at and ending at
return
end procedure
Choose u.a.r.
return RECURSE(u, t, K_0)
Let T be the recursion tree of an invocation of PARTIALEXPLORE(S, t), defined with the following notation. We use the word node only for nodes of T, in order to distinguish them from vertices of the temporal graph. The root of T is denoted by and represents the outermost recursive call, i.e., represents the call RECURSE( ), where u is chosen u.a.r. from S. For a node x of T, we write for the exploration scale of the call represented by x, and we write for the temporal walk returned by this call. For a node x of T, we define as the subtree of T rooted at x. The walk is the walk computed by the full recursive computation represented by the subtree . We therefore sometimes use the node x and the walk interchangeably when the meaning is clear. Every non-leaf node x has two children, and , representing its left and right recursive calls.
of RECURSE with exploration scales . We denote the walks returned by these two subcalls by and , respectively, and we denote by the connecting walk computed at node . Thus, . Every leaf represents a base-case call of RECURSE with exploration scale satisfying ; then is the trivial temporal walk that stays at its start vertex for one time step. For vertices and a node of , we say that starts at if is the first vertex of , we say ends at if is the last vertex of , and we say visits if contains the vertex .
We define the shape of T to consist of its number of leaves, the number of nodes at each depth, and, for every node x of T, the exploration scale and the start and end times of the walk . We show that the shape of T depends only on the initial exploration scale and the initial start time t. In particular, it is independent of the vertices and temporal walks sampled during the execution of the algorithm, formalized in Lemma 5.1 and Lemma 5.3.
We introduce a small auxiliary lemma that formalizes basic properties of the recursion tree produced by Algorithm 1, followed by a lemma bounding the number of leaves of any recursion tree. This lets us upper-bound the number of time steps that the walks constructed by Algorithm 1 span.
Lemma 5.1. Let T be a recursion tree. Then the following properties are independent of all random choices made by the algorithm and depend only on the initial exploration scale and initial start time t.
(i) All nodes at the same depth of have the same exploration scale with .
(ii) T is a binary tree with height where all leaves have depth .
(iii) For every node x of T, the start time and end time of the walk returned by the recursive call represented by x are fixed.
Proof. Since the exploration scale is always divided by at every recursive call, the first property is immediate. For the second property, note that a node at depth is a leaf exactly if . Thus, the height of is since because . Additionally, all leaves are exactly at depth by the first property, and is binary.
To show the third property, it suffices to show that, for every internal node with exploration scale , the first time step satisfying is independent of the endpoint of .
Claim. If the call represented by a node x starts at a fixed time step, then it ends at a fixed time step. Moreover, if x is an internal node, then its right child starts at a fixed time step.
Proof of the claim. We proceed by induction on the height of . If is a leaf, then it returns the temporal walk that stays at its start vertex in its prescribed start time step. Thus, its end time is fixed. Now let be an internal node, and as stated in our claim, assume that the call represented by starts at a fixed time step. Its left child starts at the same time step. By the induction hypothesis, the walk returned by ends at a fixed time step . Let be the exploration scale of the two child calls at , and let be the final vertex of the walk returned by . For any time step , the support graph of the temporal-walk relation from to between time steps and is biregular by Lemma 4.4.
Hence, is independent of . It follows that the first time step satisfying is independent of and of all random choices. Thus, the start time of is fixed. By the induction hypothesis, the walk returned by ends at a fixed time step. Since the walk returned by ends when the walk returned by ends, the end time of is fixed as well. This ends the proof of the claim.
We can now show our lemma. The root of starts at the fixed time step . Hence, by the claim, its end time is fixed. Furthermore, whenever an internal node starts at a fixed time step, its left child starts at the same fixed time step and its right child starts at a fixed time step by the claim. Proceeding from the root towards the leaves therefore shows that every node of starts at a fixed time step. Then, by the claim, every node also ends at a fixed time step.
The previous lemma only gives a polynomial bound on the number of leaves in terms of the initial exploration scale . However, we need a linear bound. This is shown in the next lemma, which is then used to bound the time span of walks returned by Algorithm 1. For both upcoming proofs, we use a small intermediate claim.
Claim 5.2. Let for , where is a sufficiently large constant and . Then for every .
Proof. Since , we have
where the last inequality uses . Let be a constant such that . By choosing , we have . Using for , we obtain
Lemma 5.3. Let T be a recursion tree and let x be an internal node of T with exploration scale . The subtree has leaves.
Proof. Recall that at each step of the recursion we divide the current exploration scale by . Let be the height of the subtree . Since has exploration scale , a node at depth in has exploration scale . Recall that the recursion stops once ; it follows that .
By Lemma 5.1, the subtree has leaves. We have . Therefore, using Claim 5.2 with set to ,
As and , we have . This gives the matching lower bound, and hence has leaves.
We can now upper bound the time span of walks returned by PARTIALEXPLORE(S, t), that is, by the initial call to RECURSE made in Algorithm 1.
Lemma 5.4. Any walk returned by Algorithm 1 spans time steps.
Proof. Recall that PARTIALEXPLORE sets for a sufficiently large constant , sets , and then calls RECURSE with initial exploration scale . Let be the recursion tree of this call. Recall that a leaf of corresponds to a walk that spans one time step and visits one vertex. By Lemma 5.3, the leaves of contribute time steps in total, which is dominated by the bound below.
We now bound the time steps contributed by all walks at internal nodes of . Let be the exploration scale of the calls at depth . An internal node at depth makes two recursive calls with exploration scale . It first computes the walk , which ends at some vertex at time step . The end time of the connecting part is chosen so that the set of vertices of reachable from between and contains at least possible start vertices for the walk . The walk is then one temporal walk from to the chosen start vertex of . By Lemma 3.3, the walk spans time steps.
By Lemma 5.1, is a binary tree with exactly nodes at every depth . Hence, all glue walks at depth together span
time steps, where the last equality follows from Claim 5.2 and . Since , we have time steps per depth.
Finally, by Lemma 5.1, has height . Hence, the internal nodes contribute time steps in total.
5.2 Analysis of the Procedure
We now analyze the algorithm probabilistically, with the goal of lower bounding the expected number of vertices visited in an arbitrary set of desirable vertices . We use the matrix notation introduced in Section 2.2; for convenience, we recall it here.
We first define the transition matrix for the random choice made at an internal node. Let be an internal node of , with left and right children and , respectively. Suppose that the left walk , equivalently the walk , ends at the vertex . The algorithm then chooses the start vertex of the right recursive call uniformly from the set . This choice is described by the internal transition matrix , where
Thus, is defined only for internal nodes ; its row is indexed by the endpoint of the left walk, and its column is indexed by the chosen start vertex of the right walk.
For every node of , we define the endpoint-transition matrix by
If is a leaf, then is the identity matrix and is the trivial temporal walk that stays at its start vertex for one time step. If is an internal node with children and , then
This is because, conditioned on the start vertex of , the walk first follows the left recursive walk, then makes the random internal transition described by , and finally follows the right recursive walk. Finally, for every node of and every leaf node in , we define the leaf-visit matrix by
If , then is a leaf and is the identity matrix, because the leaf visit is exactly the start vertex of the trivial walk . Now suppose that is an internal node with children and . If lies in the left subtree of , then
This holds because, when starts at , the left child also starts at . If lies in the right subtree of , then
and the distribution of the start vertex of is obtained by first following the left recursive walk and then applying the internal transition ; from that point on, the visit of is described by . Equivalently, if ends at a vertex , then the start vertex of is chosen according to the row , and the distribution of the leaf visit of is then given by the row .
The intuition behind the analysis is now simple. By Lemma 5.1, the time span between the endpoint of the left recursive call and the start of the right recursive call is fixed, independently of the random choices made inside the recursion. Hence, the transition from the endpoint of to the start of is captured by . By Lemma 4.8, every such matrix is doubly stochastic. Since products of doubly stochastic matrices are again doubly stochastic (Observation 4.6), the recursive identities above allow us to prove inductively that all endpoint-transition matrices and all leaf-visit matrices are doubly stochastic, formalized in the upcoming Lemma 5.5.
As a consequence, we later obtain that, if the outermost start vertex is chosen u.a.r. from , then the vertex visited by every fixed leaf is also distributed u.a.r. over . We also use these matrices to control collisions. After fixing the complete left subtree at a node , let be the endpoint of its left child. Let denote the row vector of indexed by ; then gives, for every vertex , the probability that the right child starts at . Consequently, for a leaf in the right subtree, the row vector gives the distribution of the vertex visited by . This distribution is used later to upper bound collisions between the two subtrees and thereby lower bound the number of new vertices visited. We now show that all endpoint-transition matrices and all leaf-visit matrices are doubly stochastic.
Lemma 5.5. Let T be a recursion tree. For every node x of T, the transition matrix is doubly stochastic, and, for every leaf y in , the leaf-visit matrix is doubly stochastic.
Proof. Fix any node . We proceed via induction on the height of the subtree . If is a leaf, then the recursive call represented by returns the temporal walk that stays at its start vertex. Thus, is the identity matrix. Moreover, the only leaf in is itself. Thus, is also the identity matrix. Therefore, both matrices are doubly stochastic.
Now assume is an internal node of , and let and be its left and right children. By the induction hypothesis, and are doubly stochastic, and analogously, all matrices with and all matrices with are doubly stochastic. By the third property of Lemma 5.1, the walk returned by ends at a fixed time step , and the walk returned by starts at a fixed time step , independently of the random choices made by the algorithm. Let be the matrix such that is the probability that starts at , conditioned on ending at , for all . By the definition of the algorithm, is obtained by choosing u.a.r. a vertex of reachable from between time steps and . Therefore, by Lemma 4.8, the matrix is doubly stochastic. The call represented by first executes the call represented by , then performs the random transition represented by , and finally executes the call represented by ; its endpoint transition matrix is . As products of doubly stochastic matrices are doubly stochastic (Observation 4.6), is doubly stochastic.
We now consider the leaf-visit matrices for leaves . We distinguish whether lies in the left or in the right subtree of . First, let . The call represented by starts at the same vertex as the call represented by . Thus, the leaf-visit matrix satisfies , which, by the induction hypothesis, is doubly stochastic. Now let . Then the leaf-visit matrix is obtained by first applying the endpoint transition matrix of the left child, then the transition matrix , and finally the leaf-visit matrix inside the right subtree. Thus, . Since all three matrices are doubly stochastic (with being doubly stochastic by the induction hypothesis), is doubly stochastic as well.
Recall that our goal is to construct, using PARTIALEXPLORE, a walk W that visits sufficiently many distinct vertices of a fixed set of desirable vertices in expectation. We now provide a lower bound on the expected number of distinct vertices visited in any such set . In the following, we only analyze vertices visited at leaves of the recursion tree. This suffices for a lower bound, since vertices visited during the connecting walks can only increase the number of distinct vertices visited. We begin by introducing some additional notation.
For every node of a recursion tree , let denote the set of leaves in the subtree rooted at . We write for the root of . For any node , any set , and any set , we denote with the random variable counting the leaves in that visit a vertex of , where repeated visits to the same vertex are counted separately. For the set of all leaves, we write .
Let be the root of and let be an arbitrary leaf. Recall that the start vertex of the outermost call is chosen u.a.r. from . Therefore, for any fixed vertex , the probability that visits is . By Lemma 5.5, the leaf-visit matrix is doubly stochastic, and thus its column indexed by sums to 1. Hence, for any choice of and . Consequently, the expected number of leaf visits in , counted with multiplicity, is , as formalized in the upcoming Lemma 5.6 in a slightly more general way. This alone is insufficient to actually visit different vertices of : the leaves may visit the same vertex of over and over again. In particular, the above statement is true even if, for a u.a.r. start vertex , every leaf visits exactly the vertex . We therefore additionally upper bound the number of collisions in order to obtain a lower bound on the number of distinct vertices of visited by , as shown later in Lemma 5.7.
Lemma 5.6. Let be any set of leaves of a recursion tree . Then, for every , it holds that .
Proof. Let be the root of and let be any leaf. For every fixed vertex , since the start vertex of is chosen u.a.r. from and is doubly stochastic by Lemma 5.5, we have
Hence, .
Now, for every leaf , let be an indicator variable with exactly if visits a vertex of . By the probability shown above, for every . Thus, we can write . Applying linearity of expectation , .
Let be any set of desirable vertices. It remains to give a lower bound on the expected number of distinct vertices of visited by an invocation of Algorithm 1. Let be a recursion tree with leaf set . We call an unordered pair of distinct leaves a collision in if and visit the same vertex of . We assign every collision to the lowest common ancestor of its two leaves in , and define the random variable counting the collisions assigned to with . Equivalently, counts the collisions with and . We define , which is the random variable counting the total number of collisions. Once we obtain an upper bound on , we can combine it with the lower bound on : for every execution, the number of distinct vertices of visited at the leaves is at least . Since was chosen arbitrarily and remains fixed during the analysis for the respective bounds on and , the resulting bound holds for every set of desirable vertices.
Lemma 5.7. Let be a recursion tree and let be its set of leaves. Then, for any and any set , it holds that .
Proof. Assume that has been fixed. Recall that and , where is a sufficiently large constant whose value will be fixed at the end of the proof. In every non-base-case call represented by a node with exploration scale , the two recursive child calls have exploration scale , and the reachable set used to start the right recursive call has size at least .
We first bound for a fixed internal node with a left child and right child . Let be the exploration scale passed to each of the two children and . Let . In the following, we condition on a fixed left subtree : the endpoint of the walk returned by and the vertex visited by every leaf in are now fixed.
Let be the transition matrix from the endpoint of to the start vertex of . By the definition of the algorithm, the start vertex of is chosen u.a.r. from a set of at least vertices. Hence, every entry of the row is at most . Now let be any fixed leaf. Since the endpoint is fixed, the distribution of the vertex visited by is given by the row vector . By Lemma 5.5, the leaf-visit matrix is doubly stochastic. Thus, by Observation 4.7, every entry of is at most . Consequently, conditioned on , every fixed leaf in the right subtree visits any fixed vertex of with probability at most .
For every and , let be the indicator variable for the event that is a collision in . If visits a vertex outside , then . Otherwise, let be the vertex visited by . We have shown that the probability that also visits is at most , conditioned on . Recall that counts (with multiplicity) the number of leaves in whose visited vertex lies in
D. Since the right subtree contains leaves, every leaf counted by contributes at most in expectation to . Therefore,
This inequality holds for every possible outcome of the choices made in the left subtree. Averaging over these outcomes and using the law of total expectation gives
Applying Lemma 5.6 to yields . Consequently,
We now sum the bound over all internal nodes, grouped by their depth in . By Lemma 5.1, all nodes at a fixed depth have the same exploration scale . Moreover, all subtrees rooted at depth have the same number of leaves.
Fix a depth containing internal nodes. Every node at depth has two child subtrees, each with leaves and child exploration scale . Since the sets for nodes at depth partition , there are nodes at depth . Moreover, . Using the bound on obtained above, the expected number of collisions assigned to all nodes at depth is at most
By Lemma 5.3, there is a constant such that for every depth . Hence, the last expression is at most
Note that the above bound is independent of the actual depth. By Lemma 5.1, the depth of is . Let be a constant such that every internal node of has depth at most . Since every collision is assigned to exactly one internal node (its lowest-common ancestor), it suffices to multiply the above per-depth bound by an upper bound on the depth of the recursion tree.
Choosing sufficiently large, we ensure that . Therefore, , which proves the lemma.
We can now show the following lemma.
Lemma 5.8. There is a constant such that Algorithm 1 computes a temporal walk with for every set .
Proof. Let be the recursion tree of the invocation and let be its set of leaves. Recall that counts the leaves whose visited vertex lies in , counted with multiplicity, while counts the pairs of leaves that visit the same vertex of . Since the vertices visited at the leaves are also visited by , it holds for every execution that .
Choose the constant in the definition of sufficiently large so that Lemma 5.7 holds with, say, . Then, by Lemmas 5.6 and 5.7, . By Lemma 5.3, the number of leaves satisfies . Since the outermost invocation uses with , the claim follows for a suitable constant .
5.3 Derandomization via Conditional Expectations
We derandomize the randomized choices by the standard method of using conditional expectations; see, e.g., [5, Chapter 16.1] for an overview of the method. Let be a partial sequence of fixed random choices of Algorithm 1. We define . Recall that denotes the number of leaf visits in , counted with multiplicity, and denotes the number of pairs of distinct leaves that visit the same vertex of . If is empty, then . By Lemmas 5.6 and 5.7, is at least a constant fraction of , where is the set of leaves of the recursion tree. Moreover, by Lemma 5.3, we have .
The method now fixes the random choices one after another. At every step, we choose an outcome of the next random choice that does not decrease . Such an outcome exists because the current conditional expectation is the average of the conditional expectations obtained by fixing each possible outcome of the next random choice. Hence, after all choices have been fixed, the resulting deterministic walk satisfies the same lower bound on .
To obtain a polynomial-time derandomization, it remains to prove the following two claims.
Claim 5.9. Algorithm 1 makes random choices, and each such choice has only possible outcomes.
Proof. By Lemma 5.1 and Lemma 5.3, there are many nodes in any recursion tree . At each node a random choice is made that decides the start vertex of the right recursive call. The number of outcomes per choice can be upper-bounded by . Together with starting the initial recursion with a u.a.r. chosen vertex of as the start vertex, we obtain many choices, each with at most many outcomes.
Claim 5.10. Let . For every partial fixing , the value can be evaluated in time.
Proof. Let be a recursion tree. We write , where exactly if the leaf visits a vertex of . Similarly, we write , where the sum ranges over unordered pairs of distinct leaves and exactly if and visit the same vertex of . By linearity of expectation, it is enough to compute the conditional probabilities of these events.
The probabilities can be obtained by matrix multiplications from the transition matrices introduced in the beginning of this section. Previously, these matrices have been used only in the analysis of the performance of Algorithm 1, and have not concretely been constructed. Now, we require concrete access to these matrices. Clearly, each matrix has at most entries. Additionally, each matrix can be constructed in polynomial time, and we have polynomially many of them. Thus, we assume that we have access to all these matrices.
For a pair of leaves , we compute the analogous joint probabilities by considering the two root-to-leaf paths together. At each step, we keep track of a pair , where is the current vertex on the path to and is the current vertex on the path to . The corresponding transition matrices are therefore indexed by pairs of vertices of ; they have dimension and hence still have polynomial size. The common prefix of the two paths is treated only once.
Thus, can be evaluated by polynomially many matrix multiplications. Since the recursion tree has polynomial size and all matrices have polynomial dimension, all multiplications take polynomial time.
We now simply fix every random choice of the algorithm one by one, at each step choosing an outcome that does not decrease . Claim 5.9 and Claim 5.10 give us the runtime guarantee.
Lemma 5.11. Algorithm 1 can be derandomized in polynomial time.
Proof. By Claim 5.9, there are only polynomially many random choices and each has only polynomially many possible outcomes. By Claim 5.10, for each partial fixing and each possible next outcome, the value of can be evaluated in polynomial time. We therefore choose, at every step, an outcome maximizing . This never decreases the conditional expectation, and after all choices are fixed the resulting deterministic walk satisfies the same lower bound as the randomized construction.
5.4 Putting it All Together
A simple iterative application of the previous lemmas gives Theorem 1.2: we repeatedly visit vertices from a set D of desirable vertices, initially set to S, and update D by removing the newly visited vertices. The procedure was sketched in Section 2, see also Figure 1. The proof follows.
Theorem 1.2. Let be a connected temporal graph with vertex set and sufficiently large lifetime. Let be the partition of into 2-WL fibers, and set . For every , there exists a temporal walk that visits all vertices of and spans time steps. Moreover, can be computed deterministically in polynomial time.
Proof. We proceed in phases. Let be the set of unvisited vertices before phase , with and . In each phase, we apply the derandomized version of Algorithm 1 to obtain a walk that visits at least vertices of (Lemma 5.8). Thus,
Hence, after p phases,
Choosing for a sufficiently large constant ensures that . The remaining vertices can be visited by repeated applications of Lemma 3.1. This contributes additional time steps. As phases are not guaranteed to start at the vertex where the previous phase ended, we start each phase time steps after the previous phase has ended and apply Lemma 3.1 to add a temporal walk that connects the two phases. Such a walk is guaranteed to exist. In total, all connecting walks span time steps.
Since the walks computed in each phase span time steps (Lemma 5.4), we arrive at time steps total. By Lemma 5.11, Algorithm 1 can be derandomized in polynomial time. Additional computations, e.g., the application of Lemma 3.1, can easily be done in polynomial time.
Repeatedly applying Theorem 1.2 to each fiber yields Theorem 1.1. Using , , and , the bounds sum to
Theorem 1.1. Let be a connected temporal graph with vertex set and sufficiently large lifetime. Let be the partition of into its 2-WL fibers, and let . There exists a temporal walk that visits all vertices of and spans time steps. Moreover, can be computed deterministically in polynomial time.
The application to TRP follows as described in Section 2.3.
Theorem 1.4. In the TRP setting, on connected temporal graphs with sufficiently large lifetime, the two agents can always meet within time steps using polynomial computation time.
6 Lower Bounds for Temporal Exploration
The lower bounds of Theorem 1.3 follow from two known constructions. First, consider the lower-bound construction of Erlebach, Hoffmann, and Kammer [45]. They construct a temporal graph with vertex set , where , such that every snapshot is a star. More precisely, if , then the center of the star cycles through the vertices of : at time step , the center is the vertex , while all vertices of are leaves in every snapshot. This temporal graph requires time steps to be explored.
As shown in [38, Lemma 15], the construction can be adjusted to obtain, for any with , a connected temporal graph with automorphism orbits that requires time steps for exploration. In the construction above, all vertices of form singleton orbits, while the entire set forms an additional orbit. For , we can hence choose ; the lower-bound argument is unchanged and gives . For , we start with the same construction with , which already gives a lower bound of . Then we add one final time step, whose purpose is to split the orbit . If with , this final snapshot consists of a path containing all vertices of and vertices of , and the remaining vertices of are attached as pendant vertices to the endpoint of the path that lies in . This splits into orbits, while the vertices of remain singleton orbits. Hence, the resulting temporal graph has orbit number . Since the additional snapshot appears at time step , the lower bound is preserved, and this is for all .
We can express this lower bound in terms of the number q of 2-WL fibers. Because every snapshot in the construction above is a tree, already 1-WL suffices to compute the automorphism orbits [69].
Hence, the 2-WL fibers coincide with the orbits, and the same construction applies with . This gives a lower bound of time steps for every .
For the lower bound of for constant , a construction of Dogeas, Erlebach, Kammer, Meintrup, and Moses Jr. [38] directly applies. They showed that there are single-orbit temporal graphs that require time steps for exploration. Their construction can be extended to any constant number of orbits by forming where denotes the box product and is the path on vertices. The path factor introduces different distance classes from the ends of the path. These classes are already detected by 1-WL: the endpoints have different degree from the internal path vertices, and color refinement then propagates this distinction inward along the path. Consequently, the construction above yields temporal graphs that require time steps for exploration whenever is constant.
7 Conclusion
We introduced 2-WL fibers as a structural parameter for temporal exploration and temporal rendezvous. The main point is that 2-WL captures enough information about temporal walks between pairs of vertices to replace the much stronger use of automorphism orbits. This gives improved bounds and keeps the resulting algorithms polynomial-time computable.
More generally, our results suggest that the WL algorithm can be used to study the expressiveness of temporal graphs with respect to reachability. Previous work compares temporal graph settings by the reachability graphs they can express, yielding a hierarchy of temporal reachability models [30, 39]. In this context, it would be interesting to understand which parts of the temporal-reachability hierarchy can be explained by WL equivalence. A particularly natural part of the reachability hierarchy is that of proper temporal graphs, where no two incident edges appear at the same time step. Since temporal reachability is a relation between ordered pairs of vertices, 2-WL is the lowest-dimensional version of the WL algorithm that directly reflects such a pairwise structure. This suggests the following direction. We expect that proper temporal graphs are the setting in which reachability is exactly captured by 2-WL, in the sense that pairs indistinguishable by 2-WL have the same temporal-reachability behavior. Understanding whether this is true, and how it extends to other types of temporal graphs within this hierarchy would clarify the potential of the WL algorithm as a measure of temporal-reachability expressiveness.
Another direction is to study agent problems on temporal graphs through the lens of WL. Our rendezvous result shows that the structure exposed by 2-WL fibers is sufficient for two agents without a common labeling to meet quickly. This suggests that other temporal agent problems may also admit structural descriptions in terms of WL fibers or related equivalence notions. This is in line with the role of WL in game-based characterizations, such as the bijective pebble game [55], and its connections to cops-and-robber games in lower bound constructions [57]. More broadly, k-WL and the k-WL fibers should be studied as a structural parameter for temporal-walk problems such as reachability, connectivity, temporal spanning structures, and agent-based games, such as temporal cops and robbers variants [77].
Finally, our approaches for TEXP and TRP rely on information about pairs of vertices and in particular on the counts of temporal walks between such pairs. This is why 2-WL fits the scenario naturally. It would nevertheless be interesting to understand where exactly 1-WL (or a slightly enhanced version of it) has its limitations for these problems, given that it does compute degrees between vertex fibers. We anticipate that such an approach would require a substantially different analysis than ours.
Acknowledgements
This work has benefited from Dagstuhl Seminar 24441, “Machine Learning Augmented Algorithms for Combinatorial Optimization Problems”, where the research was initiated.
ChatGPT (GPT-6) was used for limited language editing and to assist with an extended search for relevant literature. All scientific ideas, claims, and mathematical proofs are the original work of the authors, who take full responsibility for the content.
References
[1] Duncan Adamson. Exploring temporal graphs with frequent and regular edges, 2025. URL https://arxiv.org/abs/2505.14046.
[2] 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). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.SAND.2022.5.
[3] Eleni C. Akrida, George B. Mertzios, Sotiris Nikoletseas, Christoforos Raptopoulos, Paul G. Spirakis, and Viktor Zamaraev. How fast can we reach a target vertex in stochastic temporal graphs? Journal of Computer and System Sciences, 114:65–83, 2020. doi:https://doi.org/10.1016/j.jcss.2020.05.005.
[4] 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.
[5] Noga Alon and Joel H. Spencer. The Probabilistic Method. John Wiley & Sons, 2000. doi:10.1002/0471722154.
[6] Steve Alpern. The rendezvous search problem. SIAM Journal on Control and Optimization, 33(3):673–683, 1995. doi:10.1137/S0363012993249195.
[7] Steve Alpern. Rendezvous search: A personal perspective. Operations Research, 50(5):772–795, 2002. doi:10.1287/opre.50.5.772.363.
[8] Steve Alpern and Shmuel Gal. The theory of search games and rendezvous, volume 55 of International Series in Operations Research & Management Science. Springer Science & Business Media, 2006. doi:10.1007/b100809.
[9] Steven Alpern. Hide and seek games. In Seminar, Institut für höhere Studien, Wien, volume 26, 1976.
[10] Markus Anders and Pascal Schweitzer. Engineering a Fast Probabilistic Isomorphism Test, pages 73–84. 2021. doi:10.1137/1.9781611976472.6.
[11] Vikraman Arvind, Johannes Köbler, Gaurav Rattan, and Oleg Verbitsky. Graph isomorphism, color refinement, and compactness. Comput. Complex., 26(3):627–685, 2017. doi:10.1007/S00037-016-0147-6. URL https://doi.org/10.1007/s00037-016-0147-6.
[12] Albert Atserias and Elitza Maneva. Sherali–Adams relaxations and indistinguishability in counting logics. SIAM Journal on Computing, 42(1):112–137, 2013. doi:10.1137/120867834.
[13] László Babai. Graph isomorphism in quasipolynomial time [extended abstract]. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC), page 684–697. ACM, 2016. doi:10.1145/2897518.2897542.
[14] László Babai. Canonical form for graphs in quasipolynomial time: preliminary report. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC 2019), pages 1237–1246. Association for Computing Machinery, 2019. doi:10.1145/3313276.3316356.
[15] László Babai, Paul Erdős, and Stanley M. Selkow. Random graph isomorphism. SIAM J. Comput., 9(3):628–635, 1980. doi:10.1137/0209047. URL https://doi.org/10.1137/0209047.
[16] 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), pages 2876–2887. doi:10.1137/1.9781611978971.106.
[17] Stefan Balev, Eric Sanlaville, and Jason Schoeters. Temporally connected components. Theoretical Computer Science, 1013:114757, 2024. doi:10.1016/j.tcs.2024.114757.
[18] 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.
[19] Ruben Becker, Arnaud Casteigts, Pierluigi Crescenzi, Bojana Kodric, Michael Raskin, Malte Renken, and Viktor Zamaraev. Giant components in random temporal graphs. SIAM Journal on Discrete Mathematics, 40(2):449–485, 2026. doi:10.1137/24M1673206.
[20] Subhash Bhagat and Andrzej Pelc. How to meet at a node of any connected graph. In 36th International Symposium on Distributed Computing, DISC 2022, Augusta, Georgia, USA, October 25-27, 2022, volume 246 of LIPIcs, pages 11:1–11:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.DISC.2022.11.
[21] 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.
[22] Sébastien Bouchard, Marjorie Bournat, Yoann Dieudonné, Swan Dubois, and Franck Petit. Asynchronous approach in the plane: a deterministic polynomial algorithm. Distributed Comput., 32(4):317–337, 2019. doi:10.1007/S00446-018-0338-2.
[23] Sébastien Bouchard, Yoann Dieudonné, and Anissa Lamani. Byzantine gathering in polynomial time. Distributed Comput., 35(3):235–263, 2022. doi:10.1007/S00446-022-00419-9.
[24] Sébastien Bouchard, Yoann Dieudonné, Arnaud Labourel, and Andrzej Pelc. Almost-optimal deterministic treasure hunt in unweighted graphs. ACM Trans. Algorithms, 19(3):22:1–22:32, 2023. doi:10.1145/3588437. URL https://doi.org/10.1145/3588437.
[25] Sébastien Bouchard, Yoann Dieudonné, and Andrzej Pelc. Want to gather? no need to chatter! SIAM J. Comput., 52(2):358–411, 2023. doi:10.1137/20M1362899.
[26] Yann Bourreau, Ananth Narayanan, and Alexandre Nolin. Optimal Deterministic Rendezvous in Labeled Lines. In 43rd International Symposium on Theoretical Aspects of Computer Science (STACS 2026), volume 364 of Leibniz International Proceedings in Informat-ics (LIPIcs), pages 18:1–18:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.STACS.2026.18.
[27] Jin-Yi Cai, Martin Fürer, and Neil Immerman. An optimal lower bound on the number of variables for graph identification. Combinatorica, 12(4):389–410, 1992. doi:10.1007/BF01305232.
[28] Arnaud Casteigts, Paola Flocchini, Walter Quattrocicchi, and Nicola Santoro. Time-varying graphs and dynamic networks. Int. J. Parallel Emergent Distributed Syst., 27(5):387–408, 2012. doi:10.1080/17445760.2012.668546.
[29] Arnaud Casteigts, Joseph G. Peters, and Jason Schoeters. Temporal cliques admit sparse spanners. Journal of Computer and System Sciences, 121:1–17, 2021. doi:10.1016/j.jcss.2021.04.004.
[30] Arnaud Casteigts, Timothée Corsini, and Writika Sarkar. Simple, strict, proper, happy: A study of reachability in temporal graphs. Theoretical Computer Science, 991:114434, 2024. doi:10.1016/j.tcs.2024.114434.
[31] Arnaud Casteigts, Michael Raskin, Malte Renken, and Viktor Zamaraev. Sharp thresholds in random simple temporal graphs. SIAM Journal on Computing, 53(2):346–388, 2024. doi:10.1137/22M1511916.
[32] Paul T. Darga, Mark H. Liffiton, Karem A. Sakallah, and Igor L. Markov. Exploiting structure in symmetry detection for CNF. In Proceedings of the 41st Annual Design Automation Conference, pages 530—534. ACM, 2004. doi:10.1145/996566.996712.
[33] Argyrios Deligkas, Michelle Döring, Eduard Eiben, Tiger-Lily Goldsmith, George Skretas, and Georg Tennigkeit. Parameterized complexity of temporal connected components: Treewidth and k-path graphs, 2025. URL https://arxiv.org/abs/2510.05806.
[34] Holger Dell, Martin Grohe, and Gaurav Rattan. Lovász meets weisfeiler and leman. In Ioannis Chatzigiannakis, Christos Kaklamanis, Dániel Marx, and Donald Sannella, editors, 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018, Prague, Czech Republic, July 9-13, 2018, volume 107 of LIPIcs, pages 40:1–40:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPICS.ICALP.2018.40. URL https://doi.org/10.4230/LIPIcs.ICALP.2018.40.
[35] Stéphane Devismes, Yoann Dieudonné, and Arnaud Labourel. Can like attract like? A study of homonymous gathering in networks. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC 2026, Salt Lake City, UT, USA, June 22-26, 2026, pages 933–942. ACM, 2026. doi:10.1145/3798129.3800807.
[36] Yoann Dieudonné, Andrzej Pelc, and Franck Petit. Almost universal anonymous rendezvous in the plane. Algorithmica, 85(10):3110–3143, 2023. doi:10.1007/S00453-023-01122-2.
[37] Konstantinos Dogeas, Thomas Erlebach, Frank Kammer, Johannes Meintrup, and William K. Moses Jr. Exploiting Automorphisms of Temporal Graphs for Fast Exploration and Rendezvous, 2023. URL https://arxiv.org/abs/2312.07140.
[38] 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. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.ICALP.2024.55.
[39] Michelle Döring. Simple, Strict, Proper, and Directed: Comparing Reachability in Directed and Undirected Temporal Graphs. In 36th International Symposium on Algorithms and Computation (ISAAC 2025), volume 359 of Leibniz International Proceedings in Informatics (LIPIcs), pages 27:1–27:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.ISAAC.2025.27.
[40] Zdenek Dvorák. On recognizing graphs by numbers of homomorphisms. J. Graph Theory, 64(4):330–342, 2010. doi:10.1002/JGT.20461. URL https://doi.org/10.1002/jgt.20461.
[41] Thomas Erlebach and Jakob T. Spooner. Faster Exploration of Degree-Bounded Temporal Graphs. In 43rd International Symposium on Mathematical Foundations of Computer Science (MFCS 2018), volume 117 of Leibniz International Proceedings in Informatics (LIPIcs), pages 36:1–36:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.MFCS.2018.36.
[42] 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.
[43] Thomas Erlebach and Jakob T. Spooner. Parameterized temporal exploration problems. In 1st Symposium on Algorithmic Foundations of Dynamic Networks, SAND 2022, March 28-30, 2022, Virtual Conference, volume 221 of LIPIcs, pages 15:1–15:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.SAND.2022.15.
[44] 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), volume 132 of Leibniz International Proceedings in Informatics (LIPIcs), pages 141:1–141:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ICALP.2019.141.
[45] Thomas Erlebach, Michael Hoffmann, and Frank Kammer. On temporal graph exploration. J. Comput. Syst. Sci., 119:1–18, 2021. doi:10.1016/j.jcss.2021.01.005.
[46] Thomas Erlebach, Othon Michail, and Nils Morawietz. Recognizing and Realizing Temporal Reachability Graphs. In 33rd Annual European Symposium on Algorithms (ESA 2025), volume 351 of Leibniz International Proceedings in Informatics (LIPIcs), pages 93:1–93:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.ESA.2025.93.
[47] Frank Fuhlbrück, Johannes Köbler, and Oleg Verbitsky. Identifiability of graphs with small color classes by the Weisfeiler–Leman algorithm. SIAM J. Discret. Math., 35(3):1792–1853, 2021. doi:10.1137/20M1327550. URL https://doi.org/10.1137/20M1327550.
[48] Adam Ganczorz, Tomasz Jurdzinski, Andrzej Pelc, and Grzegorz Stachowiak. Approach of agents with restricted fuel tanks. Distributed Comput., 39(4):26, 2026. doi:10.1007/S00446-026-00518-X.
[49] Andreas Göbel, Leslie Ann Goldberg, and Marc Roth. The weisfeiler-leman dimension of conjunctive queries. Proc. ACM Manag. Data, 2(2):86, 2024. doi:10.1145/3651587. URL https://doi.org/10.1145/3651587.
[50] Martin Grohe. Fixed-point definability and polynomial time on graphs with excluded minors. J. ACM, 59(5):27:1–27:64, 2012. doi:10.1145/2371656.2371662. URL https://doi.org/10.1145/2371656.2371662.
[51] Martin Grohe. Descriptive Complexity, Canonisation, and Definable Graph Structure Theory. Lecture Notes in Logic. Cambridge University Press, 2017. doi:10.1017/9781139028868.
[52] Martin Grohe and Sandra Kiefer. A linear upper bound on the Weisfeiler–Leman dimension of graphs of bounded genus. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, Patras, Greece, July 9-12, 2019, volume 132 of LIPIcs, pages 117:1–117:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPICS.ICALP.2019.117. URL https://doi.org/10.4230/LIPICS.ICALP.2019.117.
[53] Martin Grohe and Sandra Kiefer. Logarithmic Weisfeiler–Leman identifies all planar graphs. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 134:1–134:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.ICALP.2021.134. URL https://doi.org/10.4230/LIPICS.ICALP.2021.134.
[54] Martin Grohe and Daniel Neuen. Canonisation and definability for graphs of bounded rank width. ACM Trans. Comput. Log., 24(1):6:1–6:31, 2023. doi:10.1145/3568025. URL https://doi.org/10.1145/3568025.
[55] Martin Grohe and Martin Otto. Pebble Games and Linear Equations. In Computer Science Logic (CSL'12) - 26th International Workshop/21st Annual Conference of the EACSL, volume 16 of Leibniz International Proceedings in Informatics (LIPIcs), pages 289–304. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2012. doi:10.4230/LIPIcs.CSL.2012.289.
[56] Martin Grohe and Oleg Verbitsky. Testing graph isomorphism in parallel by playing a game. In Michele Bugliesi, Bart Preneel, Vladimiro Sassone, and Ingo Wegener, editors, Automata, Languages and Programming, 33rd International Colloquium, ICALP 2006, Venice, Italy, July 10-14, 2006, Proceedings, Part I, volume 4051 of Lecture Notes in Computer Science, pages 3–14. Springer, 2006. doi:10.1007/11786986_2. URL https://doi.org/10.1007/11786986_2.
[57] Martin Grohe, Moritz Lichter, Daniel Neuen, and Pascal Schweitzer. Compressing CFI graphs and lower bounds for the Weisfeiler–Leman refinements. J. ACM, 72(3), June 2025. doi:10.1145/3727978.
[58] Jin Guo, Alexander L. Gavrilyuk, and Ilia Ponomarenko. On the Weisfeiler–Leman dimension of permutation graphs. SIAM J. Discret. Math., 38(2):1915–1929, 2024. doi:10.1137/23M1575019. URL https://doi.org/10.1137/23m1575019.
[59] David Ilcinkas, Ralf Klasing, and Ahmed Mouhamadou Wade. Exploration of constantly connected dynamic graphs based on cactuses. In Structural Information and Communication Complexity, pages 250–262. Springer International Publishing, 2014. doi:10.1007/978-3-319-09620-9_20.
[60] Neil Immerman and Eric Lander. Describing Graphs: A First-Order Approach to Graph Canonization, pages 59–81. Springer, 1990. doi:10.1007/978-1-4612-4478-3_5.
[61] Neil Immerman and Rik Sengupta. The k-dimensional Weisfeiler–Leman algorithm, 2019. URL https://arxiv.org/abs/1907.09582.
[62] Tommi Junttila and Petteri Kaski. Engineering an Efficient Canonical Labeling Tool for Large and Sparse Graphs, pages 135–149. doi:10.1137/1.9781611972870.13.
[63] Tommi Junttila and Petteri Kaski. Conflict propagation and component recursion for canonical labeling. In Theory and Practice of Algorithms in (Computer) Systems, pages 151–162. Springer, 2011. doi:10.1007/978-3-642-19754-3_16.
[64] Sandra Kiefer. Power and Limits of the Weisfeiler–Leman Algorithm. PhD thesis, RWTH Aachen University, 2020.
[65] Sandra Kiefer and T. Devini de Mel. A classification of long-refinement graphs for colour refinement. In Kasper Green Larsen and Barna Saha, editors, Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 388–407. SIAM, 2026. doi:10.1137/1.9781611978971.18. URL https://doi.org/10.1137/1.9781611978971.18.
[66] Sandra Kiefer and Daniel Neuen. The power of the Weisfeiler–Leman algorithm to decompose graphs. SIAM Journal on Discrete Mathematics, 36(1):252–298, 2022. doi:10.1137/20M1314987.
[67] Sandra Kiefer and Daniel Neuen. Bounding the Weisfeiler–Leman dimension via a depth analysis of i/r-trees. In Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza, editors, Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, pages 50:1–50:14. ACM, 2024. doi:10.1145/3661814.3662122. URL https://doi.org/10.1145/3661814.3662122.
[68] Sandra Kiefer, Ilia Ponomarenko, and Pascal Schweitzer. The weisfeiler-leman dimension of planar graphs is at most 3. J. ACM, 66(6):44:1–44:31, 2019. doi:10.1145/3333003. URL https://doi.org/10.1145/3333003.
[69] Sandra Kiefer, Pascal Schweitzer, and Erkal Selman. Graphs identified by logics with counting. ACM Trans. Comput. Logic, 23(1), 2021. doi:10.1145/3417515.
[70] Andreas Krebs and Oleg Verbitsky. Universal covers, color refinement, and two-variable counting logic: Lower bounds for the depth. In 30th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2015, Kyoto, Japan, July 6-10, 2015, pages 689–700. IEEE Computer Society, 2015. doi:10.1109/LICS.2015.69. URL https://doi.org/10.1109/LICS.2015.69.
[71] 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), volume 330 of Leibniz International Proceedings in Informatics (LIPIcs), pages 9:1–9:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.SAND.2025.9.
[72] Moritz Lichter, Simon Raßmann, and Pascal Schweitzer. Computational complexity of the Weisfeiler–Leman dimension. ACM Trans. Comput. Log., 27(2):12:1–12:36, 2026. doi:10.1145/3798282. URL https://doi.org/10.1145/3798282.
[73] Brendan D. McKay. Practical graph isomorphism. Congressus Numerantium, 30:45–87, 1981.
[74] Brendan D. McKay and Adolfo Piperno. Practical graph isomorphism, ii. Journal of Symbolic Computation, 60:94–112, 2014. doi:10.1016/j.jsc.2013.09.003.
[75] Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Math., 12(4):239–280, 2016. doi:10.1080/15427951.2016.1177801.
[76] Othon Michail and Paul G. Spirakis. Traveling salesman problems in temporal graphs. Theoretical Computer Science, 634:1–23, 2016. doi:ht10.1016/j.tcs.2016.04.006.
[77] Nils Morawietz, Carolin Rehs, and Mathias Weller. A Timecop's Work Is Harder Than You Think. In 45th International Symposium on Mathematical Foundations of Computer Science (MFCS 2020), volume 170 of Leibniz International Proceedings in Informatics (LIPIcs), pages 71:1–71:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.MFCS.2020.71.
[78] Christopher Morris, Martin Ritzert, Matthias Fey, William L. Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and Leman go neural: higher-order graph neural networks. In Proceedings of the 33rd AAAI Conference on Artificial Intelligence (AAAI). AAAI Press, 2019. doi:10.1609/aaai.v33i01.33014602.
[79] Andrzej Pelc. Deterministic rendezvous in networks: A comprehensive survey. Networks, 59(3): 331–347, 2012. doi:10.1002/net.21453.
[80] Marko Schmellenkamp, Thomas Zeume, Sven Argo, Sandra Kiefer, Cedric Siems, and Fynn Stebel. Detecting and explaining (in-)equivalence of context-free grammars. Proc. ACM Program. Lang., 9(OOPSLA2):2954–2980, 2025. doi:10.1145/3763156. URL https://doi.org/10.1145/3763156.
[81] Nino Shervashidze, Pascal Schweitzer, Erik Jan van Leeuwen, Kurt Mehlhorn, and Karsten M. Borgwardt. Weisfeiler–Lehman graph kernels. J. Mach. Learn. Res., 12(null):2539—2561, November 2011. doi:10.5555/1953048.2078187.
[82] Amnon Ta-Shma and Uri Zwick. Deterministic rendezvous, treasure hunts, and strongly universal exploration sequences. ACM Trans. Algorithms, 10(3):12:1–12:15, 2014. doi:10.1145/2601068.
[83] Steffen van Bergerem, Martin Grohe, Sandra Kiefer, and Luca Oeljeklaus. Simulating logspace-recursion with logarithmic quantifier depth. In 38th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2023, Boston, MA, USA, June 26-29, 2023, pages 1–13. IEEE, 2023. doi:10.1109/LICS56636.2023.10175818. URL https://doi.org/10.1109/LICS56636.2023.10175818.
[84] Boris Weisfeiler and Andrei Leman. The reduction of a graph to canonical form and the algebra which appears therein. NTI, Series 2, 1968. URL https://www.iti.zcu.cz/wl2018/pdf/wl_paper_translation.pdf. English translation by G. Ryabov.
[85] Dong Wen, Yilun Huang, Ying Zhang, Lu Qin, Wenjie Zhang, and Xuemin Lin. Efficiently answering span-reachability queries in large temporal graphs. In 2020 IEEE 36th International Conference on Data Engineering (ICDE), pages 1153–1164, 2020. doi:10.1109/ICDE48307.2020.00104.
[86] 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.
[87] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. URL https://openreview.net/forum?id=ryGs6iA5Km.