Abstract 1 Introduction 2 Preliminaries 3 A General Polynomial Bound 4 Exact Bounds for 𝒌𝟑 5 Coverings by Isometric Subtrees 6 Conclusion References

A Polynomial Bound on the Pathwidth of Graphs Edge-Coverable by k Shortest Paths

Julien Baste University of Lille, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France Lucas De Meyer Université Claude Bernard Lyon 1, CNRS, INSA Lyon, LIRIS, UMR 5205, 69622 Villeurbanne, France Ugo Giocanti Faculty of Mathematics and Computer Science, Jagiellonian University, Kraków, Poland Etienne Objois IRIF, Université Paris Cité, France Timothé Picavet LaBRI, Université de Bordeaux, Talence, France
Abstract

Dumas, Foucaud, Perez and Todinca [SIAM J. Disc. Math., 2024] recently proved that every graph whose edge set can be covered by k shortest paths has pathwidth at most 3k. 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 k shortest paths has pathwidth O(k4), answering a question from the same paper. Moreover, we also prove that when k3, every such graph has pathwidth at most k (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 2 isometric trees, every graph whose set of edges can be covered by 2 isometric trees has treewidth at most 2.

Keywords and phrases:
Structural Graph Theory, Coverings, Metrics, Pathwidth, Treewdidth, Parameterized Algorithms, Layerings
Funding:
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:
[Uncaptioned image] © Julien Baste, Lucas De Meyer, Ugo Giocanti, Etienne Objois, and Timothé Picavet; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Paths and connectivity problems
; Theory of computation Parameterized complexity and exact algorithms
Related Version:
Full Version: https://arxiv.org/abs/2510.02901
Acknowledgements:
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 k 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ắng

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 G, what is the minimum number of graphs from needed to “cover”111Various notions of coverings can usually be considered here. G? 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 k1, what is the structure of the graphs that can be “covered” by (at most) k graphs from ?

We say that a graph G is edge-coverable (resp. vertex-coverable) by some subgraphs H1,,Hk if every edge (resp. vertex) of G belongs to at least one of the subgraphs Hi. 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 k shortest paths, its pathwidth is smaller than an exponential in k (see Section 2 for a definition of pathwidth).

Theorem 1 ([10]).

Let k1 and G be a graph vertex-coverable by k shortest paths. Then pw(G)=O(k3k). Moreover, if G is edge-coverable by k shortest paths, then pw(G)=O(3k).

The proof of Theorem 1 uses a branching approach to show that in every graph vertex-coverable (resp. edge-coverable) by at most k shortest paths, for every vertex u and every i1, the number of vertices at distance exactly i from u in G is O(k3k) (resp. O(3k)). 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 k. Our main result is a positive answer in the edge-coverable case.

Theorem 2.

Let k1, and G be a graph edge-coverable by k shortest paths. Then pw(G)=O(k4).

Our proof uses a different approach from [10]. Roughly speaking, it consists in finding some separator X of polynomial size, such that for every component C of GX, there exists one path P from the covering set of paths, such that C has a “nice” layering with respect to P.

In terms of lower bounds, one can show for every k1 the existence of a graph edge-coverable by k shortest paths and with pathwidth equal to k.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 k3.

Theorem 3.

Let k3, and G be a graph edge-coverable by k shortest paths. Then pw(G)k.

Given a graph G, a subgraph H of G is isometric if for every two vertices x,y of H, the distances between x and y are the same in G and H. In other words, if x and y are connected in G, then there must exist a shortest path between them in G which is included in H. For instance, shortest paths in G are isometric subgraphs of G.

In view of the previous results, the following question naturally arises: given a family of graphs, what is the structure of a graph G edge/vertex-coverable by at most k isometric subgraphs all isomorphic to graphs in ? For instance, if is the family of all trees, does G 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 k isometric subtrees has cop number at most k. 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 t1, let Gt be the graph on 2t+2 vertices obtained from the biclique Kt,t after adding two vertices a,b of degree t respectively adjacent to all vertices from each of the sides of Kt,t (see Figure 1 for the case t=3). Then, Gt is vertex-coverable by the two induced stars Sa,Sb respectively centered in a and b (which are in particular isometric subgraphs of Gt), but has treewidth at least t, as it contains Kt,t 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.

Figure 1: An example of a graph vertex-coverable by 2 isometric trees and containing a K3,3.
Theorem 4.

Let G be a graph which is edge-coverable by 2 isometric trees. Then tw(G)2.

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 G, an integer k and k pairs of vertices, and one must decide whether there exists k pairwise disjoint paths connecting all pairs of vertices. This problem has been shown to be solvable in FPT time, when parameterized by the number k 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 k 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 k [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 G and an integer k, and asks whether G is vertex-coverable by k-shortest paths. Its routing version Isometric Path Cover With Terminals takes as input a graph G, some integer k, and k pairs of vertices, and asks whether there exist k shortest paths that vertex-cover G 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 k, 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 k [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 G, we denote with V(G) its set of vertices, and E(G) its set of edges. For any set XV(G) of vertices, G[X] denotes the subgraph of G induced by X, that is, the vertex set of G[X] is X, and G[X] contains all edges of G with both end-points in X. GX denotes the subgraph of G induced by V(G)X. For simplicity, for every vertex x, we let Gx denote the graph G{x}. For all subsets X,YV(G) of vertices, we denote EG(X,Y):={xyE(G):xXY,yYX}. Let G be a graph, whose vertex set potentially intersects the one of G. The union of G and G is the graph GG:=(V(G)V(G),E(G)E(G)).

For every vV(G), we let NG(v) (or simply N(v) when the context is clear) denote the set of neighbors of v. Similarly, for every subset XV(G) of vertices, we let NG(X) (or simply N(X)) denote the set of vertices in V(G)X having at least one neighbor in X. If UV(G), we similarly let NU(X) denote the set of vertices in UX having at least one neighbor in X.

For every three subsets X,A,BV(G), we say that X separates A from B in G if no component of GX contains both a vertex from A and a vertex from B.

Paths.

A path P is a sequence of pairwise distinct vertices v1,,vk such that for each i<k, vivi+1E(G). Note that by definition, a path is a sequence of vertices; however, by abuse of notations, we will often identify a path P=v1,,vk of G and its corresponding subgraph in G (that is, the graph with vertices v1,,vk and edges vivi+1 for each i such that 1i<k). A path connecting two vertices v1=x and vk=y will also be called an xy-path. We call the vertices v1 and vk the endvertices of P, while all its other vertices are its internal vertices. The length of P corresponds to its number of edges. For each ij, we let P[vi,vj] denote the subpath vi,vi+1,,vj of P, and we let P1 denote the path vk,,v1. For every two paths P=v1,,vp and Q=w1,,wq such that vp=w1, and such that Pvp is disjoint from Qw1, we define the path PQ:=v1,,vp=w1,,wq. If P=v1,,vk is a path, for every 1i<jk, we say that vi is before vj on P, and that vj is after vi on P. A path P is vertical with respect to a vertex u, if for every i, P has at most one vertex at distance i from u in G. Note that every path vertical with respect to some vertex u is a shortest path, and that every shortest path starting from u is vertical with respect to u.

Covers.

Let G be a graph and H1,,Hk be subgraphs of G. We say that the graphs H1,,Hk edge-cover G if E(G)=i=1kE(Hi). Similarly, we say that H1,,Hk vertex-cover G if V(G)=i=1kV(Hi).

Metrics.

We let dG(,) (or simply d(,) when the context is clear) denote the shortest-path metric of a graph G. Recall that a graph H is an isometric subgraph of G if H is a subgraph of G such that every shortest path in H is also a shortest path in G. For every vertex v of a graph G, we let ecc(v):=max{dG(u,v):uV(G)}{} denote the eccentricity of v.

Orders.

Let (X,) be a partially ordered set. For every two disjoint subsets A,BX, we write A<B if a<b for every (a,b)A×B. Moreover, for every xX and every AX, we let A|x:={aA:ax} and A|x:={aA:ax}. We define similarly A|<x and A|>x. A chain is a sequence (x1,,xk) of distinct elements of X such that x1x2xk.

2.2 Path-decompositions

We collect in this section a number of basic properties of pathwidth.

Path-decomposition.

A path-decomposition of a graph G is a sequence 𝒫=(X1,X2,,Xq) of vertex subsets of G, called bags, such that V(G)=i=1qXi, for every edge {x,y}E there is at least one bag containing both endpoints, and for every vertex xV, the bags containing x form a continuous subsequence of 𝒫. The width of 𝒫 is max{|Xi|1:1iq}, and the pathwidth pw(G) of G is the smallest width of a decomposition, among all path-decomposition of G. The bags X1,Xq are called the extremities of 𝒫.

 Remark 5.

For a graph G and XV(G), pw(G)|X|+pw(GX).

Vertex-separation number.

Let G be a graph and < denote a total ordering on V(G). The vertex-separation number of (G,<) is the value minwV(G)|{uV(G):u<wandvw,uvE(G)}|. The vertex separation number of G is the minimum over the vertex separation numbers of (G,<), for all possible linear orderings < of G.

Theorem 6 ([16]).

The vertex separation number of a graph equals its pathwidth.

Layerings.

A layering of a graph G is a partition of its vertices into a sequence (V1,,Vt) of subsets of V(G) such that each graph G[Vi] is an independent set, and for every i,j{1,,t} such that |ji|2, we have |EG(Vi,Vj)|=0.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 k-layering of a graph G is a partition of V(G) into a sequence (V1,,Vt) of sets such that each graph G[Vi] is an independent set, and for every 0<i<t, we have |EG(Vi,Vi+1)|k. Note that in particular, it implies that |NVi+1(Vi)|k and |NVi(Vi+1)|k. The bags V1 and Vt are the extremities of the layering.

Lemma 6.

Let G be a graph admitting a k-layering. Then G has pathwidth at most k. Moreover, if G is connected, then G has a path-decomposition of width at most k, whose extremities are exactly the extremities of the k-layering.

3 A General Polynomial Bound

In this section, we prove Theorem 2.

Theorem 2. [Restated, see original statement.]

Let k1, and G be a graph edge-coverable by k shortest paths. Then pw(G)=O(k4).

Throughout this section, we let G be a graph whose edge set can be covered by a set 𝒫:={P1,,Pk} of k isometric paths. Our main result is the following, which will immediately imply a proof of Theorem 2.

Theorem 7.

For every i{1,,k}, there exists a set of vertices XiV of size at most 720k3+4k such that every connected component of GXi that intersects Pi has pathwidth at most 6k.

Proof that Theorem 7 implies Theorem 2.

For every 1ik, we use Theorem 7 to obtain the set Xi. We consider their union X:=i=1kXi. Observe that |X|i[k]|Xi|k(720k3+4k)=720k4+4k2. We now let C be a connected component of GX. As P1,,Pk edge-cover (and thus also vertex-cover) G, there is some i{1,,k} such that the path Pi intersects C. In particular, as C is included in a connected component of GXi, it implies that C has pathwidth smaller than 6k, and thus that pw(GX)6k. Using Remark 5 we conclude that pw(G)|X|+pw(GX)720k4+4k2+6k.

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 G0 of G which is 6k-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=1, i.e., we will construct a set X of size at most 720k3+4k such that every component of GX that intersects P1 has pathwidth at most 6k.

3.1 Preliminary Results

Parallel paths.

Let P be a shortest path between two vertices a,b of G. A path Q of G is parallel to P in G if Q is a subpath of a shortest ab-path of G.

Note that this does not define a symmetric relation in general: the fact that a path Q is parallel to another path P does not necessarily imply that P is parallel to Q. However, in the remainder of the proof, we will always consider the property of being parallel to the path P1, which is fixed and connects vertices a1 and b1. 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 P1 has a very restrained structure.

Lemma 7.

Let {Q1,,Q} be a collection of paths in G that are all parallel to P1. Then the graph j=1Qj is -layered.

We consider the partial order 1 on V(G) defined by setting for every two vertices u,vV(G), u1v if and only if dG(a1,u)dG(a1,v). Note in particular that the vertex set of every path P which is parallel to P1, forms a chain with respect to 1.

Lemma 8.

Let a1b1c be three vertices such that there exist two paths P,Q both parallel to P1, such that P connects a to b and Q connects b to c. Then PQ is parallel to P1.

Proof.

Note that PQ must be a shortest ac path, as for each i0, it contains at most one vertex at distance exactly i from a1. In particular, it is not hard to conclude that PQ is parallel to P1.

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 P1. Informally, the reduction operation consists in making 𝒫 contain as much paths that intersect P1 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 Q of G is called a reducing path if

  • Q is disjoint from P1, and admits a subpath P parallel to P1, that connects two vertices u,v, such that u<1v,

  • there exists a shortest path R in G from u to v that intersects P1.

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 |𝒬|2|𝒬| and that the paths of 𝒬 cover all the edges covered by the paths of 𝒬, i.e., such that

P𝒬E(P)P𝒬E(P).
Proof.

Assume that 𝒬 is not reduced, and let Q be a reducing path in 𝒬. We also let P be a subpath of Q with endvertices u,v such that u<1v, and R be a shortest path in G from u to v intersecting P1. We let R1,R2 denote two shortest paths respectively from a1 to u and from v to b1. We also write Q=Q1Q2Q3, so that Q2 is the uv-subpath of Q parallel to P1 (see Figure 2). Observe now that both paths Q:=Q1RQ3 and Q′′:=R1Q2R2 are shortest paths in G that both intersect P1 and cover all the edges of Q. In particular, it implies that the family of paths 𝒬:=(𝒬{Q}){Q,Q′′} covers all the edges covered by the paths of 𝒬, and has strictly fewer paths than 𝒬 that do not intersect P1. 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 P1 strictly decreases, then after at most |𝒬| iterations, we obtain a reduced family with the desired properties.

Figure 2: The path Q represented in green is reducing. P1 is represented in blue.

Up to applying Proposition 9 to 𝒫, we will assume from now on that 𝒫 is a reduced family of at most 2k shortest paths of G that edge-cover G.

Good and bad vertices.

We now partition the set 𝒫:={Pi:1i2k} into the subset 𝒫1 of the paths in 𝒫 that intersect P1, and 𝒫2:=𝒫𝒫1.

For every P𝒫1, we let CP denote the maximal subpath of P with both endvertices aP,bP in V(P1), so that aP1bP (up to considering P1 instead of P, we also assume that aP is before bP on P). Note that CP1=P1, and that by definition of 𝒫1, each CP has at least one vertex, and is parallel to P1. We moreover consider for every P𝒫1 the two vertices uP,vP that respectively maximize dG(uP,aP) and dG(bP,vP), such that uP,aP,bP,vP appear in this order on P, and such that the paths P[uP,aP] and P[bP,vP] are parallel to P1. We now let C~P:=P[uP,vP] and AP,BP denote the two subpaths of P such that P=APC~PBP (see Figure 3). We stress out that in general, the path C~P is not necessarily parallel to P1.

Figure 3: The red path represents some path P𝒫1. The blue path is P1.

We let 𝒜:={AP1:P𝒫1}{BP:P𝒫1} and :={C~P:P𝒫1}. In particular, P1. Note that by definition, every path in is the concatenation of at most 3 paths that are parallel to P1, and recall that |𝒫|2k, hence we have ||2k.

We say that the edges of the paths in 𝒜𝒫2 are bad, and we call a vertex vV(G) bad if it is the endvertex of a bad edge. We call every vertex which is not bad good, and we let Vb and Vg denote respectively the set of bad and good vertices of G. We moreover set X0:={aP:P𝒫1}{bP:P𝒫1} and X1:={uP:P𝒫1}{vP:P𝒫1}. Note that in particular, |X0|4k and that the only bad vertices that belong to P1 are the vertices aP,bP for P𝒫1, hence V(P1)VbX0.

We now consider the subgraph G0:=PP of G. The following remark immediately follows from the definition of , the fact that |𝒫1||𝒫|2k, and that every path in is edge-covered by at most 3 paths that are parallel to P1.

 Remark 10.

G0 is edge-covered by at most 6k paths that are parallel to P1.

Lemma 11.

We have VgV(G0). Moreover, G[Vg] is a subgraph of G0.

Proof.

Let u be a good vertex. As G is covered by 𝒫, there exists some path P𝒫 such that uV(P). In particular, as u is a good vertex, we must have P𝒫1, and moreover u must be a vertex of C~P. It implies that uV(G0), and thus that VgV(G0). 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 E(G)E(G0) is bad, hence G[Vg] is indeed a subgraph of G0.

Our goal from now on will be to prove the following lemma.

Lemma 12 (Main).

There exists a set XV(G) of size at most 720k3+4k that separates every vertex on P1 from Vb in G.

Proof of Theorem 7 using Lemma 12.

We let X be given by Lemma 12. In particular, by Lemma 11, every component of GX that contains a vertex of P1 induces a subgraph of G0. By Section 2.2, Section 3.1 and Remark 10, G0 is 6k-layered, and thus has pathwidth at most 6k, 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 V(P1) from Vb in the subgraph G0 of G. 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 P be a path of G0 which is parallel to P1, and A𝒜𝒫2 which intersects P. Then there exists some set XA,PV(G0) of vertices of size 30k such that XA,P separates every vertex of V(A)V(P) from the vertices of P1 in G0.

Figure 4: Configuration of Lemma 13.
Proof of Lemma 12 using Lemma 13.

Recall that every path of is the concatenation of at most 3 paths parallel to P1. We thus consider a set of size at most 3|| of paths parallel to P1 that cover the edges of the paths from . We let I denote the set of all pairs (A,P) such that A𝒜𝒫2, P, and V(A)V(P).

We set

X:=X0((A,P)IXA,P),

where the sets XA,P are given by Lemma 13. Note that |𝒜𝒫2|2|𝒫1|+|𝒫2||𝒫1|+|𝒫|4k and ||3||=3|𝒫1|6k, thus |I|24k2 and |X|720k3+4k.

We now show that X separates V(P1) from Vb in G. Suppose, for contradiction, that there exists a path R in GX connecting a vertex v from Vb to a vertex u on P1. Among those paths, choose a path R with minimum length. Since V(P1)VbX0X, we have vV(P1) and thus R has length at least 1. Also, since R is a path of minimum length connecting Vb to P1, every vertex in Rv must be good. Since every vertex in Rv is good, there is no bad edge in R. Hence, as 𝒫 edge-covers G, all the edges of R must be covered by the paths from , implying that R is also a path of G0.

This implies in particular that vV(G0)Vb. Thus by definition of G0 and Vb, there exist some paths P and A𝒜𝒫2 such that vV(P)V(A). Lemma 13 then implies that R intersects XA,PX, giving a contradiction.

3.2 Proof of Lemma 13

We fix some path P in G0 which is parallel to P1, and some path A𝒜𝒫2 which intersects P. We will in fact prove that one can find a set XA,P of vertices with the desired size that separates in G0 all the vertices of Q from P1. We let Q denote the minimal subpath of P containing all vertices in V(A)V(P), and let b,c denote the endvertices of Q such that b1c. By Remark 10, G0 is coverable by at most 6k paths which are all parallel to P1. In particular, for every i0, the set Vi:={vV(G0):dG(v,a1)=i} contains at most 6k vertices, and separates in G0 the sets jiVj and jiVj. We also may assume without loss of generality that Q contains at least 2 vertices, hence b<1c (otherwise, we conclude by choosing XA,P:=V(Q)={b}).

For every vV(G0), we let ι(v) denote the unique index i0 such that vVi. For every path L in G0 which is parallel to P1, if u,v denote the endvertices of L with u1v, we define the projection of L on P1 as the set UL:={xV(P1):ι(u)<ι(x)<ι(v)}. We say that L is -free if there does not exist in G0 a path R parallel to P1 that connects a vertex xUL to a vertex yV(L) with x1y (see Figure 5). Symmetrically, we say that L is -free if there does not exist in G0 a path R parallel to P1 that connects a vertex xUL to a vertex yV(L) with x1y. Our main result in this subsection will be Section 3.2, which states that if Q is -free or -free, then we can separate Q from P1 in G0 after removing 30k vertices. Before proving this, we will first show in the next two lemmas that Q can be covered by at most two subpaths which are each -free or -free.

Figure 5: The path L (in red) is not -free.
Lemma 14.

If A𝒜, then Q is -free or -free.

Proof.

We assume first that A=AS1 for some S𝒫1, and claim that the case where A=BS is symmetric. We moreover assume that A[uS,b] is a subpath of A[uS,c], as depicted in Figure 6, and claim that the case where A[uS,c] is a subpath of A[uS,b] is symmetric. We show that in this case, Q must be -free. As P, and thus Q are parallel to P1, note that every vertex vV(Q) satisfies ι(v)[ι(b),ι(c)]. We let A denote the subpath of S1 which starts at aS and contains A as a subpath.

We assume for sake of contradiction that there exists some path R in G0 which is parallel to P1 in G, and which connects a vertex xUQ to a vertex yV(Q), with x1y. We consider two cases according to whether aS1x or not, described in Figure 6.

If aS1x, then by Lemma 8, the path P1[aS,x]RQ[y,c] is parallel to P1. On the other hand, recall that by definition of uS, and as cuS (this is because bc and A[uS,c] contains b), A[aS,c] cannot be parallel to P1. In particular, A[aS,c] must be strictly longer than P1[aS,x]RQ[y,c], implying a contradiction as A is a shortest path in G.

If aS>1x, then as xUQ, x>1b. Then, the path RQ[y,c] is vertical with respect to a1, and thus strictly shorter than Q. Note in this case, the path A[aS,b] is also strictly longer than P1[aS,x]. It thus implies that P1[aS,x]RQ[y,c] is strictly shorter than the path A[aS,c], contradicting again that A is a shortest path in G.

Lemma 15.

If A𝒫2, then there exists subpaths Q1,Q2 such that Q=Q1Q2, Q1 is -free and Q2 is -free.

Figure 6: Top: configuration in the proof of Lemma 14 when aS1x. Bottom: configuration in the proof of Lemma 14 when aS>1x.
Proof.

If Q is -free, then we immediately conclude by choosing Q1 to be the path having b as a single vertex, thus we may assume that there exists some path R parallel to P1 connecting some vertex xUQ to a vertex yV(Q) such that x1y. We moreover choose such a path so that x is maximal with respect to 1. We let z be the unique vertex of Q such that ι(z)=ι(x), and set Q1:=Q[b,z],Q2:=Q[z,c]. By maximality of x, note that Q2 must be -free. We moreover claim that Q1 is -free. Assume for a contradiction that it is not the case, and that there exists a shortest path R parallel to P1 connecting a vertices y1x, with yV(Q1) and xUQ1 (see Figure 7). Then the path T:=Q1[b,y]RP1[x,x]RQ2[y,c] is a path in G from b to c that intersects P1 and which is parallel to P1. In particular, as b,cV(A) the existence of T implies that A is a reducing path belonging to 𝒫, contradicting our assumption that 𝒫 is reduced.

Figure 7: The configuration at the end of the proof of Lemma 15. The purple dashed path R represents a shortest path which is parallel to P1, and connects vertices y1x, with yV(Q1) and xUQ1.

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 L be a path in G0 that is parallel to P1. If L is -free or -free, then there exists XV(G0) of size at most 18k that separates in G0 the vertices of L from the ones of P1.

Proof of Lemma 13.

By Lemmas 14 and 15, there exist two subpaths Q1,Q2 of Q such that Q=Q1Q2, and such that for each i{1,2}, Qi is either -free or -free. In particular, by Section 3.2, there exist two sets X1,X2 of size at most 18k such that for each i{1,2}, Xi separates in G0 the set V(Qi) from V(P1). In particular, the set X:=X1X2 then separates V(Q) from V(P1). Moreover, we claim that when going through the proof of Section 3.2, one gets that X1 and X2 both contain a common layer Vi (for i:=ι(cQ1)=ι(bQ2)), allowing us to slightly reduce our upper bound on |X1X2| to obtain |X1X2|30k (instead of 36k).

4 Exact Bounds for 𝒌𝟑

In this section, we prove some optimal upper-bounds on the pathwidth of graphs that are edge-coverable by k shortest paths, when k{2,3}. As our proof of the case k=3 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 k3, and G be a graph edge-coverable by k shortest paths. Then pw(G)k.

4.1 Two Paths

As a warm-up, we start describing the structure of graphs edge-coverable by 2 shortest paths, implying an immediate proof of Theorem 3 when k=2.

Definition 16.

A skewer is a graph G for which there exists a sequence of pairwise distinct vertices x1,,x (1) such that:

  • for each i{1,,1}, the vertex xi is connected to the vertex xi+1 by two internally disjoint paths Qi,Ri having the same length;

  • for each i{1,,1}, the paths Qi,Ri are separated from G(QiRi) by the set {xi,xi+1};

  • there exist four internally disjoint paths Q0,R0,Q,R (which do not necessarily have the same length), such that Q0,R0 (resp. Q,R) are separated from G(Q0R0) (resp. G(QR)) by the set {x1} (resp. {x}).

See Figure 8 for an illustration of a skewer. For each i{0,,}, the graph Ci:=QiRi is called the piece of xi. Note that we allow the paths Qi and Ri to have length 1, in which case the graph Ci is just the edge xixi+1 (recall that the graphs we consider are simple), while if Qi and Ri have length at least 2, then Ci is an even cycle. Note that every skewer G has a 2-layering, and thus pathwidth at most 2, and that moreover, for every i{0,,}, and every pair of vertices a,b with aV(Qi) and bV(Ri), there exists a path-decomposition of G of width 2 in which there exists a bag equals to {a,b}.

Figure 8: A skewer. The blue paths represent the paths Ri and the red paths represent the paths Qi.
Lemma 17.

Let P,Q be two shortest paths in a graph G. Then there cannot exist three vertices a,b,cV(P)V(Q) such that b is an internal vertex of P[a,c] and such that c is an internal vertex of Q[a,b].

Proof.

Assume for sake of contradiction that there exist three such vertices a,b,cV(P)V(Q). Since b is an internal vertex of P[a,c], d(a,b)<d(a,c). But since c is an internal vertex of Q[a,b], d(a,c)<d(a,b), a contradiction.

Proposition 18.

Every connected graph G which is edge-coverable by two isometric paths is a skewer. In particular, pw(G)2.

Proof.

We let P1,P2 be two isometric paths that edge-cover G, and let x1,,x denote the vertices from V(P1)V(P2), such that for each i<j, xi is before xj on P1. By Lemma 17, for each i<j, xi is also before xj on P2. It thus implies that each xi separates in G all vertices appearing before it in P1 and P2 from all vertices appearing after it in P1 and P2. In particular, it easily follows that G is a skewer.

4.2 Three Paths

This subsection consists in a proof of Theorem 3 when k=3, which we restate here for convenience.

Theorem 19.

Let G be a graph which is edge-coverable by 3 isometric paths. Then pw(G)3.

In the remainder of the subsection, we let G denote a graph which is edge-coverable by three shortest paths P1,P2,P3. We also assume that for each i{1,2,3}, Pi is a aibi-path for some vertices ai,biV(G). Moreover, note that if the Pi’s do not all belong to the same connected component of G, then every connected component of G is coverable by at most 2 shortest paths, hence by Proposition 18, pw(G)2. We thus moreover assume that G is connected.

For two sequences 𝒫1=(X1,,Xk) and 𝒫2=(Y1,,Y) of vertex subsets such that Xk=Z=Y, we say that 𝒫=(X1,,Xk,Z,Y1,Y) is the glue of𝒫1 and 𝒫2 by the bag Z. The following three lemmas deal with some first easy cases.

Lemma 19.

If the intersection of two of the paths P1,P2,P3 is included in the third one, then pw(G)3.

Lemma 19.

If one of the three paths P1,P2,P3 intersects the other two at most twice in total, then pw(G)3.

Lemma 19.

If there are at least two vertices that simultaneously belong to the three paths P1,P2,P3, then pw(G)3

We say that a path P bounces between two paths Q1,Q2 if there exists i{1,2} such that P has a subpath P with both endvertices on Qi, and such that one of the internal vertices of P intersects Q3i.

By Section 4.2, we can assume from now on that P1 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 P1,P2,P3. In particular, up to exchanging a1 and b1, and P2 and P3, we may assume that if u0 denotes the vertex on P1 which is the closest to a1, and belongs to one of the two paths P2,P3, then u0V(P1)V(P2)V(P3). We set Ai:=Pi[ai,u0] and Bi:=Pi[u0,bi] for i=1,2.

 Remark 20.

Observe that our choice of u0 implies that V(A1)(V(P2)V(P3))={u0}.

By Section 4.2 and Section 4.2, we can assume that P3 intersects B1u0, and at least one of the paths between A2u0 and B2u0, say B2u0 by symmetry. In particular, at least one of the following situations occurs (up to symmetrically exchange the roles of A2 and B2)

  1. (1)

    P3 bounces between two of the paths A2,B2 and B1,

  2. (2)

    P3 does not intersect A2,

  3. (3)

    P3 intersects the three paths A2,B2,B1 in this order,

  4. (4)

    P3 intersects the three paths A2,B1,B2 in this order.

To conclude the proof of Theorem 3, we will prove that pw(G)3 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 P3 bounces between two of the paths in {A2,B1,B2}, then pw(G)3.

Lemma 20.

If P3 and A2 are disjoint, then pw(G)3.

Lemma 20.

If P3 intersects the subpaths A2,B1,B2 in this order, then pw(G)3.

Lemma 20.

If P3 intersects the subpaths A2,B2,B1 in this order, then pw(G)3.

Proof of Theorem 3.

As explained above, observe that, up to replacing P2 by P21, one of the four cases between (1), (2), (3) and (4) should occur. We thus conclude that pw(G)3 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 G is a pair (T,𝒱) where T is a tree and 𝒱=(Vt)tV(T) is a family of subsets Vt of V(G) such that:

  • V(G)=tV(T)Vt;

  • for every nodes t,t,t′′ such that t is on the unique path of T from t to t′′, VtVt′′Vt;

  • every edge eE(G) is contained in an induced subgraph G[Vt] for some tV(T).

The subsets Vt are called the bags of the tree-decomposition (T,𝒱), and the tree T is called the decomposition tree. The width of a tree-decomposition is the maximum size of a bag minus 1. The treewidth of a graph G, denoted tw(G) is defined as the minimum possible width of a tree-decomposition of G. Note that path-decompositions of G correspond exactly to the tree-decompositions of G whose decomposition tree is a path. In particular, we have in general tw(G)pw(G).

Recall that a graph G is 2-connected if it is connected of order at least 3, and has no cutvertex, that is, no vertex v such that Gv is not connected anymore. The blocks of G are the inclusion-wise maximal sets of vertices XV(G) such that G[X] is connected and has no cutvertex555Note that here, blocks are not necessarily 2-connected, as we allow them to have order less than 3.. 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 2-connected components). Put differently, for every vV(G), if X1,,Xk denote the connected components of Gv, then tw(G)=max1iktw(G[Xi{v}]).

The following remark is immediate.

 Remark 22.

Let G be a graph edge-coverable by k isometric trees, and X be a block of G. Then G[X] is also edge-coverable by k isometric trees.

We now prove our main result in this section, which we restate. See 4

Proof.

Let T1,T2 denote two isometric subtrees of G that cover all its edges. By Proposition 21 and Remark 22, we may assume without loss of generality that G is 2-connected. In particular, G has no vertex of degree 1. Moreover, up to removing some of the edges incident to the leaves of T1 and T2, we may further assume that every edge of T1 which is incident to a leaf of T1 is not an edge of T2. Let u be a leaf of T1. As G has no vertex of degree 1, u must also be a vertex of T2.

Claim 22 (proof: vertical).

Every edge of G is vertical with respect to u.

We now consider the subtree T1 of T1 formed by taking the union of all paths P between u and a vertex of T1 such that all internal vertices of P are in V(T1)V(T2). As G is 2-connected, all leaves of T1 are in T2. Let Gv be the subgraph of G induced by the descendants of v, i.e., by vertices x for which there exists some ux-path P which contains v and which is vertical with respect to u. Note that in particular, vV(Gv).

Claim 22.

Each leaf v of T1 which is distinct from u separates Gv from the rest of G.

As G is 2-connected, Section 5 implies that for each leaf v of T1 distinct from u, we have V(Gv)={v}. In particular, as we initially chose u to be a leaf of T1, it then implies that T1=T1, so the only vertices of T1 that also belong to T2 are its leaves. Observe that up to reproducing symmetrically the same reasoning, where the roles of T1 and T2 are exchanged, we may moreover assume that the only vertices of T2 belonging to T1 are its leaves. In other words, we are left with the case where T1 and T2 have no common internal nodes, and intersect exactly at their leaves.

In the remainder of the proof, we will say that a graph H has a mirror-decomposition if there exist trees T,T such that

  • H=TT;

  • the trees T and T have no common internal nodes;

  • there exists a graph isomorphism ι from T to T such that for every vV(T1)V(T2), we have ι(v)=v.

The proof of Theorem 4 will be an immediate consequence of the following two Claims.

Claim 22.

G has a mirror-decomposition, with respect to the trees T1 and T2.

Claim 22.

Every graph admitting a mirror-decomposition has treewidth at most 2.

6 Conclusion

As mentioned in the introduction, the best lower bound we know on the possible pathwidth of graphs edge-coverable by k shortest paths is k. Together with Theorem 3, it suggests that the upper bound from Theorem 2 could be potentially improved to a linear bound.

Question 23.

Let G be a graph edge-coverable by k shortest paths. Is it true that pw(G)=O(k)? And that pw(G)k?

Another observation going in the direction of Question 23 is that graphs edge/vertex-coverable by k shortest paths have cop number at most k [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 k 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 k:

Question 24.

Does there exist a function f: such that for every k3 and every graph G edge-coverable by k isometric subtrees, we have tw(G)f(k)? If yes, can f be polynomial?

However, Bastide, Duron, Hodor, Liu and Nie [3] found constructions of graphs edge-coverable by 4 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 3 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 k-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 k 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.