Brief Announcement: Exploring Word-Representable Temporal Graphs
Abstract
Word-representable graphs are a subset of graphs that may be represented by a word over an alphabet composed of the vertices in the graph. In such graphs, an edge exists if and only if the occurrences of the corresponding vertices alternate in the word . We generalise this notion to temporal graphs, constructing timesteps by partitioning the word into factors (contiguous subwords) such that no factor contains more than one copy of any given symbol. With this definition, we study the problem of exploration, asking for the fastest schedule such that a given agent may explore all vertices of the graph. We show that if the corresponding temporal graph is connected in every timestep, we may explore the graph in timesteps, where is the lowest degree of any vertex in the graph. In general, we show that, for any temporal graph represented by a word of length at least , with a connected underlying graph, the full graph can be explored in timesteps, where is the diameter of the graph.
Keywords and phrases:
Temporal Graphs, Word-Representable Graphs2012 ACM Subject Classification:
Mathematics of computing Graph algorithmsEditors:
Kitty Meeks and Christian ScheidelerSeries and Publisher:

1 Introduction
Word-Representable graphs, first introduced by Kitaev and Pyatkin [12], are a subset of graphs that may be represented in a concise manner via a word (or string) of symbols. In these graph, the vertices are represented by the alphabet, while edges are defined by the structure of the word. See [10] and [11] for an overview of the main results on word-representable graphs.
Much work on word-representable graphs has focused on determining which such graphs are representable [12, 3, 9]. Such work has shown that a large number of graph classes are representable by word graphs, including three colourable graphs, circle graphs, and crown graphs. As such, the study of problems on these graphs are non-trivial.
In this work, we extend the notion of word-representable graphs to temporal graphs. Temporal graphs are a generalisation of static graphs, replacing the single edge set with an ordered sequence of sets. Each edge set is used to define a timestep (also known as a snapshot), during which the only active edges are those in the corresponding timestep. Temporal graphs have attracted a large amount of attention in recent years, with a particular focus on reachability [4, 6, 13] and exploration [2, 5, 7, 8, 14].
Our Contributions.
We present a set of results on the problem of exploring word-representable temporal graphs. This combines research on word-representable graphs, temporal graphs, and graph exploration. We provide two primary results. First, we show that for any word-representable temporal graph where each timestep is a fully connected graph, we can construct an exploration schedule requiring at most timesteps, where is the minimum degree of any vertex in the graph and the number of vertices. Second, we show that for any word-representable temporal graph where the underlying graph is connected and the word representation requires at least symbols, we can construct an exploration schedule requiring timesteps, where is the diameter of the graph, and the number of vertices.
Related Work.
While there is a large body of work on both word-representable graphs and exploration of temporal graphs, we highlight a small number of papers in both fields of particular relevance. Regarding word-representable graphs, we point first to the work of Kitaev and Pyatkin [12] who introduced word-representable graphs as a tool for semigroup theory. From the prespective of structural results on word-representable graphs, in [3], Courcelle shows that circle graphs are word-representable. Halldorson et al. [9] strengthen this by showing that comparability graphs and all -colourable graphs a word-representable, as well as presenting communication from Limouzy that cover graphs are word-representable. On the negative side, Halldorson et al. show that it is NP-hard to determine if a given triangle free graph is word-representable.On the exploration of temporal graphs, we first mention the landmark paper by Erlebach et al. [7], which established many of the key ideas behind temporal graph exploration. In particular, they show a general upper bound on the length of the fastest exploration schedule for a single agent on an always connected temporal graph. This is complemented by schedules of length for graphs with treewidth , for planar graphs, for cycles with one chord, and for grids. Building on this, Erlebach and Spooner showed in [8] that an always connected temporal graph in which each timestep is at most -edges inactive can be explored in timesteps.
2 Preliminaries
Graphs and Temporal Graphs.
We define a graph by a tuple containing a set of vertices, and set of edges, each a pair of vertices. When writing an edge explicitly as we call the start point and the end point of the edge. We call two vertices neighbours if . We denote by the set of neighbours of .. The degree of a vertex , denoted , is equal to the number of neighbours of . A walk in a graph is an ordered sequence of edges, such that the end point of the edge is the start point of the edge. The start point of a walk is the start point of the first edge of the walk, and the end point of a walk is the end point of the last edge of the walk. Two vertices, and , are connected if there exists some walk starting at and ending at . We denote the set of all walks in a graph by . The length of a walk , denoted is the number of edges in the walk. A walk visits a vertex if there exists at least one edge such that . The distance between two vertices , denoted is the walk of minimum length with as the start point and as the end point. We define the diameter of a graph as .
A temporal graph is a generalisation of a graph, defined over one set of vertices , and sets of edges, . We refer to the graph formed from the vertex set and the edge set, , as the timestep, denoted . The lifetime of a temporal graph is equal to the number of edge sets in . The underlying graph of a temporal graph , denoted , is the graph formed over the vertex set and the union of all edge sets, giving . A temporal walk is an extension of a walk, with each step being an edge-time pair, such that, for every :
-
the edge is active in the timestep ,
-
the end point of is the start point of , and,
-
.
Additionally, must be active in timestep . Note that may be greater than . In this case, assuming , we say that an agent traversing this walk waits at for timesteps. A temporal walk visits a vertex iff there is some edge in the walk such that . The length of a temporal walk containing edges is equal to .
Words.
An alphabet is a finite set of symbols. A word (also known as a string) is a finite sequence of symbols from a given alphabet. We assume, for the remainder of this paper, that our alphabet is defined over some set of integers . The length of a word , denoted is the number of letters in the word. For let denote the letter of . The set of all finite words over the alphabet is denoted by . Given , let denote all words in exactly of length . Given two words , we denote by the word formed by the concatenation of and , i.e. the word such that , if or if . Given a word and natural , let denote the word formed by copies of , satisfying and , . Let s.t. be the alphabet of .
Given a pair of words where , is a subsequence of if there exists some set of indices such that such that . Given a set of symbols and word , the subsequence of satisfies , and, either or is not a subsequence of .
Word-Representable (Temporal) Graphs.
Given a word , the graph represented by , , is constructed as follows. Let be a set of vertices, each labelled uniquely by some symbol from . Informally, contains the edge iff the symbols and alternate in . A pair of symbols, alternate in if . Thus, we define the edge set as the set . A graph is word-representable if there exists some word such that .
Given a word , the temporal graph represented by , , is constructed using as a basis. To determine the timesteps, we introduce the set of indices as the set of start points for each timestep. The value of each is computed recursively, with , and the index such that and, .
With this set of indices, the timestep is defined with regard to the symbols appearing in the factor (or, for the final timestep). Formally, given some edge in the edge set of , the edge iff either (resp., ) or (resp., ). We call any factor of of the form a timestep factor.
3 Always Connected Graphs
In this section, we provide results on exploring always connected graphs. A temporal graph is always connected if there exists, at every timestep, exactly one connected component containing all vertices in .
Lemma 1.
Let be a word-representable temporal graph represented by the word , such that is connected in every timestep. Then, given any vertex , , , and where are the set of start points of .
Corollary 2.
Let be a word-representable temporal graph represented by the word , such that is connected in every timestep. Then the edge , .
We now strengthen Lemma 1 and Corollary 2 to prove that each edge in any word-representable always-connected temporal graph appears at least once in every set of contiguous timesteps. The main idea is to propagate the constraints given implicitly in Corollary 2 across the graph. At a high level, we have that not only must some symbol satisfy , as given in Lemma 1, but also as indicated by Corollary 2 and formally stated in Lemma 3. More generally, however, must appear at least once between each occurrence of , for any such that . Thus, any bound on the number of occurrences of can be propagated through the graph to all other symbols. By extension, we get a bound on the number of timesteps in which an edge may be absent. Lemma 3 formalises this idea.
Lemma 3.
Let be a word-representable temporal graph represented by the word , such that is connected in every timestep. Then the edge , , where .
We now present our main theorem for this section, showing that any word-representable always-connected temporal graph may be explored in timesteps. The high-level idea behind this proof is to first construct a spanning tree on the underlying graph, then use a walk exploring this tree to derive a temporal walk exploring the temporal graph. We do so by following the same set of edges as , waiting at each vertex at most timesteps for the next edge to become available. As can contain at most edges, our temporal walk requires at most timesteps, giving the algorithmic result.
Theorem 4.
Let be a word-representable temporal graph represented by the word , such that is connected in every timestep. Then, can be explored in timesteps starting at any vertex , where .
4 General Graphs
We now consider general word-representable temporal graphs. We assume, without loss of generality, that all graphs in the section contain a single component in the underlying graph, noting that any graph that does not satisfy this can not be explored. As in Section 3, we start with some structural results on the word representations of these graphs.
Lemma 5.
Given a word-representable temporal graph represented by the word containing the edge . Then, .
Lemma 6.
Let be a pair of vertices such that . Then, .
Lemma 7.
Let be a pair of vertices such that . Further, let be the index of the occurrence of in , and let be the index of the occurrence of in . Then .
Corollary 8.
Given a word-representable temporal graph , represented by the word , , where is the diameter of .
From Lemmas 5, 6, 7 and Corollary 8, we have the main tools used to build our algorithmic result. At a high level, we use a similar technique to Theorem 4, building a temporal walk exploring the graph from a walk exploring the spanning tree of the underlying graph. Lemma 9 and Corollary 10 provide the last needed results for the approach, showing that each edge in the graph is inactive for at most consecutive timesteps.
Lemma 9.
Given a word-representable temporal graph , represented by the word such that has a diameter of . Then, given any edge active in timestep , such that .
Corollary 10.
Given a word-representable temporal graph , represented by the word such that the underlying graph has a diameter of . Then, for any , .
From Lemma 9 and Corollary 10, we now apply a similar technique to Theorem 4 to derive an algorithm for exploring word-representable temporal graphs of length at least in timesteps. Informally, we construct a exploration of by way of an Eulerian walk on a spanning tree of . As each edge is active at least once every timesteps per Corollary 10, this may be converted into a temporal walk exploring requiring at most timesteps.
Theorem 11.
Let be a word-representable temporal graph, represented by the word such that , where is the diameter of the underlying graph . Then, can be explored in at most timesteps.
References
- [1] Duncan Adamson. Exploring word-representable temporal graphs, 2025. doi:10.48550/arXiv.2502.07496.
- [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.
- [3] Bruno Courcelle. Circle graphs and monadic second-order logic. Journal of Applied Logic, 6(3):416–442, 2008. doi:10.1016/J.JAL.2007.05.001.
- [4] Argyrios Deligkas and Igor Potapov. Optimizing reachability sets in temporal graphs by delaying. Inf. Comput., 285(Part):104890, 2022. doi:10.1016/J.IC.2022.104890.
- [5] Konstantinos Dogeas, Thomas Erlebach, Frank Kammer, Johannes Meintrup, and William K Moses Jr. Exploiting automorphisms of temporal graphs for fast exploration and rendezvous. arXiv preprint arXiv:2312.07140, 2023. doi:10.48550/arXiv.2312.07140.
- [6] Jessica Enright, Kitty Meeks, George B Mertzios, and Viktor Zamaraev. Deleting edges to restrict the size of an epidemic in temporal networks. Journal of Computer and System Sciences, 119:60–77, 2021. doi:10.1016/J.JCSS.2021.01.007.
- [7] Thomas Erlebach, Michael Hoffmann, and Michael Kammer. On temporal graph exploration. Journal of Computer and System Sciences, 119:1–18, 2021. doi:10.1016/J.JCSS.2021.01.005.
- [8] Thomas Erlebach and Jakob T. Spooner. Exploration of -edge-deficient temporal graphs. In Anna Lubiw and Mohammad Salavatipour, editors, Algorithms and Data Structures, pages 371–384, Cham, 2021. Springer International Publishing. doi:10.1007/978-3-030-83508-8_27.
- [9] Magnús M. Halldórsson, Sergey Kitaev, and Artem Pyatkin. Semi-transitive orientations and word-representable graphs. Discrete Applied Mathematics, 201:164–171, 2016. doi:10.1016/J.DAM.2015.07.033.
- [10] Sergey Kitaev. A comprehensive introduction to the theory of word-representable graphs. In International Conference on Developments in Language Theory, pages 36–67. Springer, 2017. doi:10.1007/978-3-319-62809-7_2.
- [11] Sergey Kitaev and Vadim Lozin. Words and graphs. Springer, 2015. doi:10.1007/978-3-319-25859-1.
- [12] Sergey Kitaev and Artem Pyatkin. On representable graphs. Journal of Automata, Languages and Combinatorics, 13(1):45–54, 2008. doi:10.25596/JALC-2008-045.
- [13] Kitty Meeks. Reducing reachability in temporal graphs: Towards a more realistic model of real-world spreading processes. In Conference on Computability in Europe, pages 186–195. Springer, 2022. doi:10.1007/978-3-031-08740-0_16.
- [14] Othon Michail and Paul G Spirakis. Traveling salesman problems in temporal graphs. Theoretical Computer Science, 634:1–23, 2016. doi:10.1016/J.TCS.2016.04.006.