A Polynomial Bound on the Pathwidth of Graphs Edge-Coverable by Shortest Paths
Abstract
Dumas, Foucaud, Perez and Todinca [SIAM J. Disc. Math., 2024] recently proved that every graph whose edge set can be covered by shortest paths has pathwidth at most . In this paper, we improve this upper bound on the pathwidth to a polynomial bound; namely, we show that every graph whose edge set can be covered by shortest paths has pathwidth , answering a question from the same paper. Moreover, we also prove that when , every such graph has pathwidth at most (and this bound is tight). Eventually, we show that even though there exist graphs with arbitrary large treewidth whose vertex set can be covered by isometric trees, every graph whose set of edges can be covered by isometric trees has treewidth at most .
Keywords and phrases:
Structural Graph Theory, Coverings, Metrics, Pathwidth, Treewdidth, Parameterized Algorithms, LayeringsFunding:
Ugo Giocanti: Supported by the National Science Center of Poland under grant 2022/47/B/ST6/02837 within the OPUS 24 program.Copyright and License:
2012 ACM Subject Classification:
Mathematics of computing Paths and connectivity problems ; Theory of computation Parameterized complexity and exact algorithmsAcknowledgements:
We would like to thank the anonymous reviewers for their instructive feedbacks about the conference version of this paper. In particular one of them pointed to us that the lower bound of we mention in the introduction does not follow from [10] as we initially claimed. We thank Marcin Briański for the example from Section 1 (see Figure 1) of graphs vertex-coverable by two isometric trees with large treewidth.Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyễn Kim ThắngSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Graph covering is an old and recurrent topic in graph theory. For a fixed class of graphs, the covering literature aims to answer two types of problems. First are optimization problems: given a graph , what is the minimum number of graphs from needed to “cover”111Various notions of coverings can usually be considered here. ? We refer to [17] for a more general overview on the topic. The second type are structural problems: for the fixed class of graphs and some , what is the structure of the graphs that can be “covered” by (at most) graphs from ?
We say that a graph is edge-coverable (resp. vertex-coverable) by some subgraphs if every edge (resp. vertex) of belongs to at least one of the subgraphs . Motivated by some algorithmic applications to the ISOMETRIC PATH COVER problem and its variants, Dumas, Foucaud, Perez and Todinca [10] recently worked on a particular metric version of such covering problems. They proved that every graph edge-coverable (resp. vertex-coverable) by few shortest paths shares structural similarities with a simple path. More precisely, if a graph is edge-coverable or vertex-coverable by shortest paths, its pathwidth is smaller than an exponential in (see Section 2 for a definition of pathwidth).
Theorem 1 ([10]).
Let and be a graph vertex-coverable by shortest paths. Then . Moreover, if is edge-coverable by shortest paths, then .
The proof of Theorem 1 uses a branching approach to show that in every graph vertex-coverable (resp. edge-coverable) by at most shortest paths, for every vertex and every , the number of vertices at distance exactly from in is (resp. ). We also mention that a “coarse” variant of Theorem 1 has recently been proved in [14]. The authors of [10] asked if the bounds from Theorem 1 can be made polynomial in . Our main result is a positive answer in the edge-coverable case.
Theorem 2.
Let , and be a graph edge-coverable by shortest paths. Then .
Our proof uses a different approach from [10]. Roughly speaking, it consists in finding some separator of polynomial size, such that for every component of , there exists one path from the covering set of paths, such that has a “nice” layering with respect to .
In terms of lower bounds, one can show for every the existence of a graph edge-coverable by shortest paths and with pathwidth equal to .222For completeness, we give such a construction in the updated arXiv version of our paper (https://arxiv.org/abs/2510.02901). We thank one of the anonymous reviewers for pointing out that no such construction was explicitely given in [10], as we wrongly asserted in a previous version of this work. To our knowledge, no better lower bound is known. Our second main result is that this lower bound is tight for .
Theorem 3.
Let , and be a graph edge-coverable by shortest paths. Then .
Given a graph , a subgraph of is isometric if for every two vertices of , the distances between and are the same in and . In other words, if and are connected in , then there must exist a shortest path between them in which is included in . For instance, shortest paths in are isometric subgraphs of .
In view of the previous results, the following question naturally arises: given a family of graphs, what is the structure of a graph edge/vertex-coverable by at most isometric subgraphs all isomorphic to graphs in ? For instance, if is the family of all trees, does somehow look like a tree?
Extending a result of Aigner and Fromme [1] for paths, Ball, Bell, Guzman, Hanson-Colvin and Schonsheck [2] proved that every graph vertex-coverable by isometric subtrees has cop number at most . In particular, it is well-known that the cop number of a graph is always upper-bounded by its treewidth (see Section 5 for a definition of treewidth). In analogy to Theorem 1, a natural question is then the following: is it true that every graph which is vertex/edge-coverable by a small number of isometric subtrees has small treewidth? This question turns out to have a negative answer when considering vertex-coverability, as shown by the following example, pointed to us by Marcin Briański (personal communication): for every , let be the graph on vertices obtained from the biclique after adding two vertices of degree respectively adjacent to all vertices from each of the sides of (see Figure 1 for the case ). Then, is vertex-coverable by the two induced stars respectively centered in and (which are in particular isometric subgraphs of ), but has treewidth at least , as it contains as a minor. Our third result implies that such a construction does not exist anymore when considering graphs which are edge-coverable by two isometric trees.
Theorem 4.
Let be a graph which is edge-coverable by isometric trees. Then .
Algorithmic motivations.
Routing problems play a central role not only in algorithmic graph theory and complexity, but also in structural graph theory. One of the best examples is the Disjoint Paths problem, appearing in the seminal Graph Minor series of papers of Robertson and Seymour [19], in which one is given as an input a graph , an integer and pairs of vertices, and one must decide whether there exists pairwise disjoint paths connecting all pairs of vertices. This problem has been shown to be solvable in FPT time, when parameterized by the number of shortest paths (see [19, 15]), and this result has been a key ingredient to design efficient algorithms deciding the existence of minors in graphs. The metric variant Disjoint Shortest Path of this problem introduced in [11] (in which one further wants to decide whether there exist pairwise disjoint shortest paths connecting all input pairs of vertices) has attired a lot of attention, and was recently proved to be solvable in XP time, when parameterized by [5, 18, 4].333It is worth mentioning that all the aforementioned problems are NP-hard [13, 18].
A number of metric variants of routing problems of similar flavor has been studied over the last decades. Among them, Isometric Path Cover studied in [1, 12] takes as input a graph and an integer , and asks whether is vertex-coverable by -shortest paths. Its routing version Isometric Path Cover With Terminals takes as input a graph , some integer , and pairs of vertices, and asks whether there exist shortest paths that vertex-cover and connect all the input pairs of vertices. Both problems are NP-Complete [7, 10]. Combining Theorem 1 with Courcelle’s theorem [9], the authors from [10] proved respectively the existence of some algorithms running in XP and FPT time when parameterized by , to solve respectively Isometric Path Cover and Isometric Path Cover With Terminals. In particular, it is still open whether Isometric Path Cover problem admits an FPT algorithm parameterized by [10]. We also refer to [6] for more results on Isometric Path Cover, and to [8] for some recent work on similar metric versions of routing problems.
Organization of the paper
Section 2 contains all preliminary definitions and some basic results related to pathwidth. Section 3 contains a proof of Theorem 2, Section 4 contains a proof of Theorem 3, and Section 5 contains a proof of Theorem 4. Sections 3, 4, and 5 are independent of each other, and can be read in any order. Section 6 contains some discussion and additional questions left open by this work. This paper being an extended abstract of our work, throughout the paper, we will adopt the convention that every statement colored in dark green is proven in the extended version.
2 Preliminaries
2.1 Notations and Basic Definitions
Graphs.
In this work, we consider undirected finite simple graphs, without loops. For a graph , we denote with its set of vertices, and its set of edges. For any set of vertices, denotes the subgraph of induced by , that is, the vertex set of is , and contains all edges of with both end-points in . denotes the subgraph of induced by . For simplicity, for every vertex , we let denote the graph . For all subsets of vertices, we denote . Let be a graph, whose vertex set potentially intersects the one of . The union of and is the graph .
For every , we let (or simply when the context is clear) denote the set of neighbors of . Similarly, for every subset of vertices, we let (or simply ) denote the set of vertices in having at least one neighbor in . If , we similarly let denote the set of vertices in having at least one neighbor in .
For every three subsets , we say that separates from in if no component of contains both a vertex from and a vertex from .
Paths.
A path is a sequence of pairwise distinct vertices such that for each , . Note that by definition, a path is a sequence of vertices; however, by abuse of notations, we will often identify a path of and its corresponding subgraph in (that is, the graph with vertices and edges for each such that ). A path connecting two vertices and will also be called an -path. We call the vertices and the endvertices of , while all its other vertices are its internal vertices. The length of corresponds to its number of edges. For each , we let denote the subpath of , and we let denote the path . For every two paths and such that , and such that is disjoint from , we define the path . If is a path, for every , we say that is before on , and that is after on . A path is vertical with respect to a vertex , if for every , has at most one vertex at distance from in . Note that every path vertical with respect to some vertex is a shortest path, and that every shortest path starting from is vertical with respect to .
Covers.
Let be a graph and be subgraphs of . We say that the graphs edge-cover if . Similarly, we say that vertex-cover if .
Metrics.
We let (or simply when the context is clear) denote the shortest-path metric of a graph . Recall that a graph is an isometric subgraph of if is a subgraph of such that every shortest path in is also a shortest path in . For every vertex of a graph , we let denote the eccentricity of .
Orders.
Let be a partially ordered set. For every two disjoint subsets , we write if for every . Moreover, for every and every , we let and . We define similarly and . A chain is a sequence of distinct elements of such that .
2.2 Path-decompositions
We collect in this section a number of basic properties of pathwidth.
Path-decomposition.
A path-decomposition of a graph is a sequence of vertex subsets of , called bags, such that , for every edge there is at least one bag containing both endpoints, and for every vertex , the bags containing form a continuous subsequence of . The width of is , and the pathwidth of is the smallest width of a decomposition, among all path-decomposition of . The bags are called the extremities of .
Remark 5.
For a graph and , .
Vertex-separation number.
Let be a graph and denote a total ordering on . The vertex-separation number of is the value . The vertex separation number of is the minimum over the vertex separation numbers of , for all possible linear orderings of .
Theorem 6 ([16]).
The vertex separation number of a graph equals its pathwidth.
Layerings.
A layering of a graph is a partition of its vertices into a sequence of subsets of such that each graph is an independent set, and for every such that , we have .444Note that our definition of layering differs from the one which is commonly used in the literature, as one usually allows in a layering edges between vertices from a same layer. A -layering of a graph is a partition of into a sequence of sets such that each graph is an independent set, and for every , we have . Note that in particular, it implies that and . The bags and are the extremities of the layering.
Lemma 6.
Let be a graph admitting a -layering. Then has pathwidth at most . Moreover, if is connected, then has a path-decomposition of width at most , whose extremities are exactly the extremities of the -layering.
3 A General Polynomial Bound
In this section, we prove Theorem 2.
Theorem 2. [Restated, see original statement.]
Let , and be a graph edge-coverable by shortest paths. Then .
Throughout this section, we let be a graph whose edge set can be covered by a set of isometric paths. Our main result is the following, which will immediately imply a proof of Theorem 2.
Theorem 7.
For every , there exists a set of vertices of size at most such that every connected component of that intersects has pathwidth at most .
Proof that Theorem 7 implies Theorem 2.
For every , we use Theorem 7 to obtain the set . We consider their union . Observe that . We now let be a connected component of . As edge-cover (and thus also vertex-cover) , there is some such that the path intersects . In particular, as is included in a connected component of , it implies that has pathwidth smaller than , and thus that . Using Remark 5 we conclude that .
The remainder of the section will consist in a proof of Theorem 7. In Subsection 3.1 we prove some preliminary results, and show that our proof reduces to the problem of finding some special kind of separations in a subgraph of which is -layered (see Lemma 13). In Subsection 3.2, we give a proof of Lemma 13, which is the most technical part of our proof.
Without loss of generality, we will assume from now on that , i.e., we will construct a set of size at most such that every component of that intersects has pathwidth at most .
3.1 Preliminary Results
Parallel paths.
Let be a shortest path between two vertices of . A path of is parallel to in if is a subpath of a shortest -path of .
Note that this does not define a symmetric relation in general: the fact that a path is parallel to another path does not necessarily imply that is parallel to . However, in the remainder of the proof, we will always consider the property of being parallel to the path , which is fixed and connects vertices and . In particular, the following simple observation implies that every graph which is edge-coverable by a few number of paths that are all parallel to has a very restrained structure.
Lemma 7.
Let be a collection of paths in that are all parallel to . Then the graph is -layered.
We consider the partial order on defined by setting for every two vertices , if and only if . Note in particular that the vertex set of every path which is parallel to , forms a chain with respect to .
Lemma 8.
Let be three vertices such that there exist two paths both parallel to , such that connects to and connects to . Then is parallel to .
Proof.
Note that must be a shortest path, as for each , it contains at most one vertex at distance exactly from . In particular, it is not hard to conclude that is parallel to .
Reducing .
The first step in the proof of Theorem 7 consists in modifying the covering family in order to make it reduced (see definition below). The intuition behind this step is that our proof of Theorem 7 works particularly well when all paths in intersect . Informally, the reduction operation consists in making contain as much paths that intersect as possible. This step will turn out to be useful at the very end of our proof (see the proof of Lemma 15).
A shortest path of is called a reducing path if
-
is disjoint from , and admits a subpath parallel to , that connects two vertices , such that ,
-
there exists a shortest path in from to that intersects .
Figure 2 depicts a reducing path. If a family of shortest paths has no reducing path, then we say that is reduced.
Proposition 9.
Let be a family of shortest paths. Then there exists a family of shortest paths which is reduced, such that and that the paths of cover all the edges covered by the paths of , i.e., such that
Proof.
Assume that is not reduced, and let be a reducing path in . We also let be a subpath of with endvertices such that , and be a shortest path in from to intersecting . We let denote two shortest paths respectively from to and from to . We also write , so that is the -subpath of parallel to (see Figure 2). Observe now that both paths and are shortest paths in that both intersect and cover all the edges of . In particular, it implies that the family of paths covers all the edges covered by the paths of , and has strictly fewer paths than that do not intersect . We apply iteratively the same operation as long as the obtained family is not reduced. In particular, as at each step, the number of paths of which are disjoint with strictly decreases, then after at most iterations, we obtain a reduced family with the desired properties.
Up to applying Proposition 9 to , we will assume from now on that is a reduced family of at most shortest paths of that edge-cover .
Good and bad vertices.
We now partition the set into the subset of the paths in that intersect , and .
For every , we let denote the maximal subpath of with both endvertices in , so that (up to considering instead of , we also assume that is before on ). Note that , and that by definition of , each has at least one vertex, and is parallel to . We moreover consider for every the two vertices that respectively maximize and , such that appear in this order on , and such that the paths and are parallel to . We now let and denote the two subpaths of such that (see Figure 3). We stress out that in general, the path is not necessarily parallel to .
We let and . In particular, . Note that by definition, every path in is the concatenation of at most paths that are parallel to , and recall that , hence we have .
We say that the edges of the paths in are bad, and we call a vertex bad if it is the endvertex of a bad edge. We call every vertex which is not bad good, and we let and denote respectively the set of bad and good vertices of . We moreover set and . Note that in particular, and that the only bad vertices that belong to are the vertices for , hence .
We now consider the subgraph of . The following remark immediately follows from the definition of , the fact that , and that every path in is edge-covered by at most paths that are parallel to .
Remark 10.
is edge-covered by at most paths that are parallel to .
Lemma 11.
We have . Moreover, is a subgraph of .
Proof.
Let be a good vertex. As is covered by , there exists some path such that . In particular, as is a good vertex, we must have , and moreover must be a vertex of . It implies that , and thus that . The “Moreover” part follows from the fact that by definition, no bad edge can be incident to a good vertex. In particular, note that every edge from is bad, hence is indeed a subgraph of .
Our goal from now on will be to prove the following lemma.
Lemma 12 (Main).
There exists a set of size at most that separates every vertex on from in .
Proof of Theorem 7 using Lemma 12.
We let be given by Lemma 12. In particular, by Lemma 11, every component of that contains a vertex of induces a subgraph of . By Section 2.2, Section 3.1 and Remark 10, is -layered, and thus has pathwidth at most , allowing us to conclude the proof of Theorem 7.
Reduction to a separation problem in the graph .
We will now show that, in order to prove Lemma 12, it is enough to separate from in the subgraph of . We show that Lemma 12 amounts to prove the following key lemma, that we will prove in Section 3.2.
Lemma 13 (Key lemma).
Let be a path of which is parallel to , and which intersects . Then there exists some set of vertices of size such that separates every vertex of from the vertices of in .
Proof of Lemma 12 using Lemma 13.
Recall that every path of is the concatenation of at most paths parallel to . We thus consider a set of size at most of paths parallel to that cover the edges of the paths from . We let denote the set of all pairs such that , , and .
We now show that separates from in . Suppose, for contradiction, that there exists a path in connecting a vertex from to a vertex on . Among those paths, choose a path with minimum length. Since , we have and thus has length at least . Also, since is a path of minimum length connecting to , every vertex in must be good. Since every vertex in is good, there is no bad edge in . Hence, as edge-covers , all the edges of must be covered by the paths from , implying that is also a path of .
This implies in particular that . Thus by definition of and , there exist some paths and such that . Lemma 13 then implies that intersects , giving a contradiction.
3.2 Proof of Lemma 13
We fix some path in which is parallel to , and some path which intersects . We will in fact prove that one can find a set of vertices with the desired size that separates in all the vertices of from . We let denote the minimal subpath of containing all vertices in , and let denote the endvertices of such that . By Remark 10, is coverable by at most paths which are all parallel to . In particular, for every , the set contains at most vertices, and separates in the sets and . We also may assume without loss of generality that contains at least vertices, hence (otherwise, we conclude by choosing ).
For every , we let denote the unique index such that . For every path in which is parallel to , if denote the endvertices of with , we define the projection of on as the set . We say that is -free if there does not exist in a path parallel to that connects a vertex to a vertex with (see Figure 5). Symmetrically, we say that is -free if there does not exist in a path parallel to that connects a vertex to a vertex with . Our main result in this subsection will be Section 3.2, which states that if is -free or -free, then we can separate from in after removing vertices. Before proving this, we will first show in the next two lemmas that can be covered by at most two subpaths which are each -free or -free.
Lemma 14.
If , then is -free or -free.
Proof.
We assume first that for some , and claim that the case where is symmetric. We moreover assume that is a subpath of , as depicted in Figure 6, and claim that the case where is a subpath of is symmetric. We show that in this case, must be -free. As , and thus are parallel to , note that every vertex satisfies . We let denote the subpath of which starts at and contains as a subpath.
We assume for sake of contradiction that there exists some path in which is parallel to in , and which connects a vertex to a vertex , with . We consider two cases according to whether or not, described in Figure 6.
If , then by Lemma 8, the path is parallel to . On the other hand, recall that by definition of , and as (this is because and contains ), cannot be parallel to . In particular, must be strictly longer than , implying a contradiction as is a shortest path in .
If , then as , . Then, the path is vertical with respect to , and thus strictly shorter than . Note in this case, the path is also strictly longer than . It thus implies that is strictly shorter than the path , contradicting again that is a shortest path in .
Lemma 15.
If , then there exists subpaths such that , is -free and is -free.
Proof.
If is -free, then we immediately conclude by choosing to be the path having as a single vertex, thus we may assume that there exists some path parallel to connecting some vertex to a vertex such that . We moreover choose such a path so that is maximal with respect to . We let be the unique vertex of such that , and set . By maximality of , note that must be -free. We moreover claim that is -free. Assume for a contradiction that it is not the case, and that there exists a shortest path parallel to connecting a vertices , with and (see Figure 7). Then the path is a path in from to that intersects and which is parallel to . In particular, as the existence of implies that is a reducing path belonging to , contradicting our assumption that is reduced.
The next lemma is the crucial part from the proof of Lemma 13. As its proof is slightly technical, we included it in the long version.
Lemma 15.
Let be a path in that is parallel to . If is -free or -free, then there exists of size at most that separates in the vertices of from the ones of .
Proof of Lemma 13.
By Lemmas 14 and 15, there exist two subpaths of such that , and such that for each , is either -free or -free. In particular, by Section 3.2, there exist two sets of size at most such that for each , separates in the set from . In particular, the set then separates from . Moreover, we claim that when going through the proof of Section 3.2, one gets that and both contain a common layer (for ), allowing us to slightly reduce our upper bound on to obtain (instead of ).
4 Exact Bounds for
In this section, we prove some optimal upper-bounds on the pathwidth of graphs that are edge-coverable by shortest paths, when . As our proof of the case is fairly technical, with multiple different cases to consider separately, we refer to the long version for proofs of all the next lemmatas.
Theorem 3. [Restated, see original statement.]
Let , and be a graph edge-coverable by shortest paths. Then .
4.1 Two Paths
As a warm-up, we start describing the structure of graphs edge-coverable by shortest paths, implying an immediate proof of Theorem 3 when .
Definition 16.
A skewer is a graph for which there exists a sequence of pairwise distinct vertices () such that:
-
for each , the vertex is connected to the vertex by two internally disjoint paths having the same length;
-
for each , the paths are separated from by the set ;
-
there exist four internally disjoint paths (which do not necessarily have the same length), such that (resp. ) are separated from (resp. ) by the set (resp. ).
See Figure 8 for an illustration of a skewer. For each , the graph is called the piece of . Note that we allow the paths and to have length , in which case the graph is just the edge (recall that the graphs we consider are simple), while if and have length at least , then is an even cycle. Note that every skewer has a -layering, and thus pathwidth at most , and that moreover, for every , and every pair of vertices with and , there exists a path-decomposition of of width in which there exists a bag equals to .
Lemma 17.
Let be two shortest paths in a graph . Then there cannot exist three vertices such that is an internal vertex of and such that is an internal vertex of .
Proof.
Assume for sake of contradiction that there exist three such vertices . Since is an internal vertex of , . But since is an internal vertex of , , a contradiction.
Proposition 18.
Every connected graph which is edge-coverable by two isometric paths is a skewer. In particular, .
Proof.
We let be two isometric paths that edge-cover , and let denote the vertices from , such that for each , is before on . By Lemma 17, for each , is also before on . It thus implies that each separates in all vertices appearing before it in and from all vertices appearing after it in and . In particular, it easily follows that is a skewer.
4.2 Three Paths
This subsection consists in a proof of Theorem 3 when , which we restate here for convenience.
Theorem 19.
Let be a graph which is edge-coverable by isometric paths. Then .
In the remainder of the subsection, we let denote a graph which is edge-coverable by three shortest paths . We also assume that for each , is a -path for some vertices . Moreover, note that if the ’s do not all belong to the same connected component of , then every connected component of is coverable by at most shortest paths, hence by Proposition 18, . We thus moreover assume that is connected.
For two sequences and of vertex subsets such that , we say that is the glue of and by the bag . The following three lemmas deal with some first easy cases.
Lemma 19.
If the intersection of two of the paths is included in the third one, then .
Lemma 19.
If one of the three paths intersects the other two at most twice in total, then .
Lemma 19.
If there are at least two vertices that simultaneously belong to the three paths , then
We say that a path bounces between two paths if there exists such that has a subpath with both endvertices on , and such that one of the internal vertices of intersects .
By Section 4.2, we can assume from now on that intersects the other paths at least twice, and by Section 4.2, that at most one of the vertices in these intersections lies simultaneously on the three paths . In particular, up to exchanging and , and and , we may assume that if denotes the vertex on which is the closest to , and belongs to one of the two paths , then . We set and for .
Remark 20.
Observe that our choice of implies that .
By Section 4.2 and Section 4.2, we can assume that intersects , and at least one of the paths between and , say by symmetry. In particular, at least one of the following situations occurs (up to symmetrically exchange the roles of and )
-
(1)
bounces between two of the paths and ,
-
(2)
does not intersect ,
-
(3)
intersects the three paths in this order,
-
(4)
intersects the three paths in this order.
To conclude the proof of Theorem 3, we will prove that in each of these cases in the following separate lemmas. This is the most technical part of the proof, especially for cases (1) and (2). The next four lemmas respectively deal with each of the four cases.
Lemma 20.
If bounces between two of the paths in , then .
Lemma 20.
If and are disjoint, then .
Lemma 20.
If intersects the subpaths in this order, then .
Lemma 20.
If intersects the subpaths in this order, then .
Proof of Theorem 3.
As explained above, observe that, up to replacing by , one of the four cases between (1), (2), (3) and (4) should occur. We thus conclude that after applying according accordingly Section 4.2, Section 4.2, Section 4.2 and Section 4.2.
5 Coverings by Isometric Subtrees
Treewidth.
A tree-decomposition of a graph is a pair where is a tree and is a family of subsets of such that:
-
;
-
for every nodes such that is on the unique path of from to , ;
-
every edge is contained in an induced subgraph for some .
The subsets are called the bags of the tree-decomposition , and the tree is called the decomposition tree. The width of a tree-decomposition is the maximum size of a bag minus . The treewidth of a graph , denoted is defined as the minimum possible width of a tree-decomposition of . Note that path-decompositions of correspond exactly to the tree-decompositions of whose decomposition tree is a path. In particular, we have in general .
Recall that a graph is -connected if it is connected of order at least , and has no cutvertex, that is, no vertex such that is not connected anymore. The blocks of are the inclusion-wise maximal sets of vertices such that is connected and has no cutvertex555Note that here, blocks are not necessarily -connected, as we allow them to have order less than .. The following is a well-known and easy fact.
Proposition 21 (folklore).
The treewidth of a graph is equal to the maximum treewidth of its blocks (maximal -connected components). Put differently, for every , if denote the connected components of , then
The following remark is immediate.
Remark 22.
Let be a graph edge-coverable by isometric trees, and be a block of . Then is also edge-coverable by isometric trees.
We now prove our main result in this section, which we restate. See 4
Proof.
Let denote two isometric subtrees of that cover all its edges. By Proposition 21 and Remark 22, we may assume without loss of generality that is -connected. In particular, has no vertex of degree . Moreover, up to removing some of the edges incident to the leaves of and , we may further assume that every edge of which is incident to a leaf of is not an edge of . Let be a leaf of . As has no vertex of degree , must also be a vertex of .
Claim 22 (proof: vertical).
Every edge of is vertical with respect to .
We now consider the subtree of formed by taking the union of all paths between and a vertex of such that all internal vertices of are in . As is -connected, all leaves of are in . Let be the subgraph of induced by the descendants of , i.e., by vertices for which there exists some -path which contains and which is vertical with respect to . Note that in particular, .
Claim 22.
Each leaf of which is distinct from separates from the rest of .
As is -connected, Section 5 implies that for each leaf of distinct from , we have . In particular, as we initially chose to be a leaf of , it then implies that , so the only vertices of that also belong to are its leaves. Observe that up to reproducing symmetrically the same reasoning, where the roles of and are exchanged, we may moreover assume that the only vertices of belonging to are its leaves. In other words, we are left with the case where and have no common internal nodes, and intersect exactly at their leaves.
In the remainder of the proof, we will say that a graph has a mirror-decomposition if there exist trees such that
-
;
-
the trees and have no common internal nodes;
-
there exists a graph isomorphism from to such that for every , we have .
The proof of Theorem 4 will be an immediate consequence of the following two Claims.
Claim 22.
has a mirror-decomposition, with respect to the trees and .
Claim 22.
Every graph admitting a mirror-decomposition has treewidth at most .
6 Conclusion
As mentioned in the introduction, the best lower bound we know on the possible pathwidth of graphs edge-coverable by shortest paths is . Together with Theorem 3, it suggests that the upper bound from Theorem 2 could be potentially improved to a linear bound.
Question 23.
Let be a graph edge-coverable by shortest paths. Is it true that ? And that ?
Another observation going in the direction of Question 23 is that graphs edge/vertex-coverable by shortest paths have cop number at most [1]. In particular, it is well-known (and not hard to prove) that the cop number of a graph is upper bounded by its treewidth, and thus also by its pathwidth.
The second question which is obviously left open by our work (and asked in [10]) concerns the existence of a polynomial upper-bound on the pathwidth of graphs which are vertex-coverable by shortest paths. At the moment, it does not seem for us that the ideas from Section 3 generalise to this case.
Eventually, we still do not know if Theorem 4 generalizes in some way to larger values of :
Question 24.
Does there exist a function such that for every and every graph edge-coverable by isometric subtrees, we have ? If yes, can be polynomial?
However, Bastide, Duron, Hodor, Liu and Nie [3] found constructions of graphs edge-coverable by isometric subtrees that contain arbitrarily large subdivided walls as a subgraph, implying a negative answer to Question 24. A question left open by their work concerns the existence of graphs edge-coverable by isometric subtrees and with arbitrarily large treewidth. It might also be interesting to find some restricted hypothesis under which Question 24 could hold.
References
- [1] Martin Aigner and Michael Fromme. A game of cops and robbers. Discrete Applied Mathematics, 8:1–11, 1984. doi:10.1016/0166-218X(84)90073-8.
- [2] Taylor Ball, Robert W. Bell, Jonathan Guzman, Madeleine Hanson-Colvin, and Nikolas Schonsheck. On the cop number of generalized Petersen graphs. Discrete Mathematics, 340(6):1381–1388, 2017. doi:10.1016/j.disc.2016.10.004.
- [3] Paul Bastide, Julien Duron, Jędrzej Hodor, Weichan Liu, and Xiangxiang Nie. Counterexamples to statements on isometric graph coverings, 2025.
- [4] Matthias Bentert, André Nichterlein, Malte Renken, and Philipp Zschoche. Using a geometric lens to find -disjoint shortest paths. SIAM Journal on Discrete Mathematics, 37(3):1674–1703, 2023. doi:10.1137/22M1527398.
- [5] Kristóf Bérczi and Yusuke Kobayashi. The directed disjoint shortest paths problem. In 25th European symposium on algorithms, ESA 2017, Vienna, Austria, September 4–6, 2017. Proceedings, page 13. Wadern: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. Id/No 13. doi:10.4230/LIPIcs.ESA.2017.13.
- [6] Dibyayan Chakraborty, Jérémie Chalopin, Florent Foucaud, and Yann Vaxès. Isometric path complexity of graphs. Discrete Mathematics, 349(2):114743, 2026. doi:10.1016/j.disc.2025.114743.
- [7] Dibyayan Chakraborty, Antoine Dailly, Sandip Das, Florent Foucaud, Harmender Gahlawat, and Subir Kumar Ghosh. Complexity and Algorithms for ISOMETRIC PATH COVER on Chordal Graphs and Beyond. In Sang Won Bae and Heejin Park, editors, 33rd International Symposium on Algorithms and Computation (ISAAC 2022), volume 248 of Leibniz International Proceedings in Informatics (LIPIcs), pages 12:1–12:17, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ISAAC.2022.12.
- [8] Dibyayan Chakraborty, Oscar Defrain, Florent Foucaud, Mathieu Mari, and Prafullkumar Tale. Parameterized complexity of isometric path partition: treewidth and diameter. Preprint, arXiv:2508.05448 [cs.DS] (2025), 2025. doi:10.48550/arXiv.2508.05448.
- [9] Bruno Courcelle. The monadic second-order logic of graphs. I: Recognizable sets of finite graphs. Information and Computation, 85(1):12–75, 1990. doi:10.1016/0890-5401(90)90043-H.
- [10] Maël Dumas, Florent Foucaud, Anthony Perez, and Ioan Todinca. On graphs coverable by shortest paths. SIAM Journal on Discrete Mathematics, 38(2):1840–1862, 2024. doi:10.1137/23M1564511.
- [11] Tali Eilam-Tzoreff. The disjoint shortest paths problem. Discrete Applied Mathematics, 85(2):113–138, 1998. doi:10.1016/S0166-218X(97)00121-2.
- [12] David Fisher and Shannon Fitzpatrick. The isometric path number of a graph. JCMCC. The Journal of Combinatorial Mathematics and Combinatorial Computing, 38, January 2001.
- [13] Steven Fortune, John Hopcroft, and James Wyllie. The directed subgraph homeomorphism problem. Theoretical Computer Science, 10:111–121, 1980. doi:10.1016/0304-3975(80)90009-2.
- [14] Meike Hatzel and Michał Pilipczuk. On graphs coverable by chubby shortest paths. arXiv preprint arXiv:2503.02160, 2025.
- [15] Ken-ichi Kawarabayashi, Yusuke Kobayashi, and Bruce Reed. The disjoint paths problem in quadratic time. Journal of Combinatorial Theory, Series B, 102(2):424–435, 2012. doi:10.1016/j.jctb.2011.07.004.
- [16] Nancy G. Kinnersley. The vertex separation number of a graph equals its path-width. Information Processing Letters, 42(6):345–350, 1992. doi:10.1016/0020-0190(92)90234-M.
- [17] Kolja Knauer and Torsten Ueckerdt. Three ways to cover a graph. Discrete Mathematics, 339(2):745–758, 2016. doi:10.1016/j.disc.2015.10.023.
- [18] Willian Lochet. A polynomial time algorithm for the k-disjoint shortest paths problem. Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 169–178, 2021. doi:10.1137/1.9781611976465.12.
- [19] N. Robertson and P.D. Seymour. Graph minors .XIII. the disjoint paths problem. Journal of Combinatorial Theory, Series B, 63(1):65–110, 1995. doi:10.1006/jctb.1995.1006.