We show that if the edges or vertices of an undirected graph can be covered by shortest paths, then the pathwidth of is upper-bounded by a single-exponential function of . As a corollary, we prove that the problem Isometric Path Cover with Terminals (which, given a graph and a set of pairs of vertices called terminals, asks whether can be covered by shortest paths, each joining a pair of terminals) is FPT with respect to the number of terminals. The same holds for the similar problem Strong Geodetic Set with Terminals (which, given a graph and a set of terminals, asks whether there exist shortest paths covering , each joining a distinct pair of terminals). Moreover, this implies that the related problems Isometric Path Cover and Strong Geodetic Set (defined similarly but where the set of terminals is not part of the input) are in XP with respect to parameter .

生成讲解博客的中文版本

生成AI智能校验的中文版本