Abstract 1 Introduction 2 Preliminaries 3 NP-completeness on highly restricted graphs 4 Fixed-parameter tractability with 𝒌 plus structural parameters 5 Parameterized intractability beyond 𝒌 6 Concluding remarks References

Hitting Geodesic Intervals in Structurally Restricted Graphs

Tatsuya Gima ORCID Hokkaido University, Sapporo, Japan Yasuaki Kobayashi ORCID Hokkaido University, Sapporo, Japan Yuto Okada ORCID Nagoya University, Japan Yota Otachi ORCID Nagoya University, Japan Hayato Takaike Nagoya University, Japan
Abstract

Given a graph G=(V,E), a set T of vertex pairs, and an integer k, Hitting Geodesic Intervals asks whether there is a set SV of size at most k such that for each terminal pair {u,v}T, the set S intersects at least one shortest uv path. Aravind and Saxena [WALCOM 2024] introduced this problem and showed several parameterized complexity results. In this paper, we extend the known results in both negative and positive directions and present sharp complexity contrasts with respect to structural graph parameters.

We first show that the problem is NP-complete even on graphs with highly restricted shortest-path structures. More precisely, we show the NP-completeness on graphs obtained by adding a single vertex to a disjoint union of 5-vertex paths. By modifying the proof of this result, we also show the NP-completeness on graphs obtained from a path by adding one vertex and on graphs obtained from a disjoint union of triangles by adding one universal vertex. Furthermore, we show the NP-completeness on graphs of bandwidth 4 and maximum degree 5 by replacing the universal vertex in the last case with a long path. Under standard complexity assumptions, these negative results rule out fixed-parameter algorithms for most of the structural parameters studied in the literature (if the solution size k is not part of the parameter).

We next present fixed-parameter algorithms parameterized by k plus modular-width and by k plus vertex integrity. The algorithm for the latter case does indeed solve a more general setting that includes the parameterization by the minimum vertex multiway-cut size of the terminal vertices. We show that this is tight in the sense that the problem parameterized by the minimum vertex multicut size of the terminal pairs is W[2]-complete. We then modify the proof of this intractability result and show that the problem is W[2]-complete parameterized by k even in the setting where T=(Q2) for some QV.

Keywords and phrases:
Terminal monitoring set, Structural graph parameter, Geodesic interval
Funding:
Tatsuya Gima: JSPS KAKENHI Grant Numbers JP24K23847, JP25K03077
Yasuaki Kobayashi: JSPS KAKENHI Grant Numbers JP23K28034, JP24H00686, JP24H00697
Yuto Okada: Supported by JST SPRING, Grant Number JPMJSP2125
Yota Otachi: JSPS KAKENHI Grant Numbers JP22H00513, JP24H00697, JP25K03076, JP25K03077
Copyright and License:
[Uncaptioned image] © Tatsuya Gima, Yasuaki Kobayashi, Yuto Okada, Yota Otachi, and Hayato Takaike; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Graph algorithms
; Theory of computation Parameterized complexity and exact algorithms
Related Version:
Full Version: https://arxiv.org/abs/2509.01413
Editors:
Akanksha Agrawal and Erik Jan van Leeuwen

1 Introduction

For vertices u and v in a graph G, the geodesic interval IG[u,v] is the set of vertices that belong to at least one shortest uv path in G. In this paper, we study the problem Hitting Geodesic Intervals that asks to find a minimum hitting set for a given family of geodesic intervals, which is formalized as follows.

Problem:

Hitting Geodesic Intervals (HGI)

Input:

A graph G=(V,E), a set T of vertex pairs, and an integer k.

Question:

Is there SV with |S|k such that SIG[u,v] for each {u,v}T?

We also study the same problem on edge-weighted graphs, which we call Weighted Hitting Geodesic Intervals (WHGI). We call a vertex belonging to V(T)={u,v}T{u,v} a terminal vertex. We say that a vertex w interrupts a pair {u,v} if wIG[u,v]. Also, we say that a vertex set S interrupts {u,v} if one of the members of S interrupts {u,v}.

The setting of HGI may have many practical applications. For example, it can be seen as a facility location problem in a network G with a set T of departure-destination point pairs of transportation demands. The goal here is to locate as small number of facilities (e.g., gas stations) as possible in such a way that, for each demand {u,v}T, one can take a shortest uv path in G that visits at least one facility.

HGI has been introduced recently by Aravind and Saxena [2], who motivated the setting as a communication network monitoring problem (and called it Terminal Monitoring Set). They initiated the study of the parameterized complexity of HGI and showed several positive and negative results (see Section 1.1). Our contribution in this paper is to considerably tighten the known tractability/intractability border of HGI with respect to structural graph parameters, as we describe in Section 1.2.

1.1 Known results

Observations.

To illustrate connections to other problems, we first observe that some known facts imply (in)tractability of some cases of HGI. (Some of them will be useful later.)

  1. 1.

    WHGI parameterized by |T| is fixed-parameter tractable.

  2. 2.

    WHGI on trees is polynomial-time solvable.

  3. 3.

    If Vertex Cover is NP-complete on a graph class 𝒞, then so is HGI.

  4. 4.

    HGI on complete graphs is NP-complete.

  5. 5.

    HGI on r×r grids is NP-complete.

The first one is an easy observation that this is a special case of Hitting Set parameterized by the number of subsets to be hit, which is fixed-parameter tractable (see [8, Theorem 6.1]). The second follows from the fact that the following more general problem is polynomial-time solvable (see, e.g., the discussion by Jansen [19]): given a set of subtrees of a tree, find a minimum vertex set that intersects all subtrees in the set.

The third and fourth observations come from the equivalence of an instance (V,E),k of Vertex Cover and the instances (V,E),(V2),k and (V,(V2)),E,k of HGI, where (V2)={{u,v}u,vV,uv}. The equivalence holds since the only way to interrupts an adjacent pair is to pick one of them.

The fifth fact can be shown by observing an interesting connection to a geometric problem. Piercing Rectangles asks, given axis-parallel rectangles R1,,Rr in the plane and an integer k, whether there is a set of k points that intersects all rectangles Ri (see [1]). It is known that even if all coordinates are integers, each rectangle is a 2×2 square, and all rectangles are placed in a region of cr×cr for some constant c, this problem is NP-complete [16].111In [16], the problem is described as a point-set covering problem by 2×2 squares, which is equivalent to the one described here because in each problem one object hits or covers another object if the L distance between their centers is at most 1. Such an instance of Piercing Rectangles can be transformed to an equivalent instance G,T,k of HGI by setting G to the cr×cr grid and adding the pair of two opposite corners of each rectangle Ri to T. Observe that a geodesic interval IG[u,v] for u and v is the set of vertices in the axis-parallel rectangle having u and v at opposite corners.

Results of Aravind and Saxena [2].

Their main results can be summarized as follows.

  1. 1.

    HGI is W[2]-complete parameterized by the solution size k.

  2. 2.

    HGI is fixed-parameter tractable parameterized by k plus cluster vertex deletion number.

  3. 3.

    HGI is fixed-parameter tractable parameterized by k plus neighborhood diversity.

  4. 4.

    WHGI is fixed-parameter tractable parameterized by feedback edge set number.

  5. 5.

    WHGI is fixed-parameter tractable parameterized by vertex cover number.

Their first result complements the fixed-parameter tractability with respect to |T| as k<|T| in nontrivial instances. Note that this result implies the W[2]-completeness of WHGI parameterized by k even on complete graphs (consider the reduction from HGI that replaces each nonedge with a huge-weight edge). In their second and third results, having k in the parameter is necessary because of the NP-completeness of HGI on complete graphs. Their fourth result generalizes polynomial-time solvability on trees. Note that they did not explicitly mention the weighted case for feedback edge set number, but their algorithm works without any modifications for the weighted case as well.

Since vertex cover number is an upper bound on the solution size k, the parameterization solely by vertex cover number is equivalent to the one by k plus vertex cover number. Thus, most of the known positive results (except for the one parameterized by feedback edge set number) have “plus k” in their parameters.

As open questions, Aravind and Saxena [2] asked for the complexity of HGI parameterized by treewidth, pathwidth, feedback vertex set number, and distance to path forest.

1.2 Our results

NP-completeness of HGI on highly restricted graphs.

Our first results demonstrate that HGI is NP-complete even if the target graph classes are highly restricted, and thus answer the open questions of Aravind and Saxena [2] in a negative way. More precisely, we show that the problem is NP-complete on the following classes:

  1. 1.

    graphs of vertex-deletion distance 1 to the class of disjoint unions of 5-vertex paths;

  2. 2.

    graphs of vertex-deletion distance 1 to the class of paths;

  3. 3.

    graphs of vertex-deletion distance 1 to the class of disjoint unions of triangles;

  4. 4.

    graphs of bandwidth 4 and maximum degree 5.

Our main technical contribution here is the first one, which already implies that HGI is paraNP-complete for most of the structural parameters studied in the literature (see Figure 1 (left)) as the graphs there have distance to path forest 1 and vertex integrity 6. The second one is an easy corollary of the first. The third one, which improves the vertex integrity bound to 4, is based on the same idea as the first. The fourth one can be obtained from the third by a minor modification.

FPT with 𝒌 plus structural parameters.

To cope with the rather hopeless situation discussed above, we consider the setting where the solution size k is also part of the parameter. In this setting, we present the following positive results.

  1. 1.

    HGI is fixed-parameter tractable parameterized by k plus modular-width.

  2. 2.

    WHGI is fixed-parameter tractable parameterized by k plus vertex integrity.

  3. 3.

    WHGI is fixed-parameter tractable parameterized by the minimum vertex multiway-cut size of the set of terminal vertices V(T).

The first result for k plus modular-width generalizes the one for k plus neighborhood diversity [2]. The second and third results are achieved by a single algorithm that solves WHGI when a small separator of a special kind is given as part of the input. After presenting the algorithm, we show that the two cases can be handled by this algorithm without the assumption that the separator is given as part of the input (see Section 4.2.2 for details). Observe that the second result generalizes the one parameterized solely by vertex cover number [2] since vertex cover number is an upper bound of both k and vertex integrity. The third result generalizes the one parameterized by |T|, which can be seen as an example of the conceptual framework of Jansen and Swennenhuis [20] for parameterizing terminal-involved problems with a parameter structurally smaller than the number of terminals. Although the third result does not explicitly have k in the parameter, we can see that its parameter is an upper bound of k.

Figure 1 (right) shows the complexity of HGI parameterized by solution size k plus a structural parameter. As we can see, it is not well understood yet, and many cases remain unsettled.

Parameterized intractability beyond 𝒌.

As mentioned above, there are many unsettled cases in the “plus k” setting. Actually, we do not know any intractability result like “HGI is W-hard parameterized by k plus X” for any structural graph parameter X.

As intermediate steps toward this direction, we present two intractability results for the following cases, where k is part of the parameter, implicitly or explicitly.

  1. 1.

    HGI is W[2]-complete parameterized by the minimum vertex multicut size of the set of terminal pairs T.

  2. 2.

    HGI is W[2]-complete parameterized by k even if T=(Q2) for some QV.

The first one implicitly has k in the parameter since such a cut size is an upper bound of k. Also, it is a lower bound of the minimum vertex multiway-cut size of V(T). In this sense, this intractability result tightens the gap between the W[2]-completeness parameterized solely by k [2] and our fixed-parameter tractability result parameterized by the minimum vertex multiway-cut size of V(T).

The second result shows that a natural restriction of HGI is still W[2]-complete parameterized solely by k, where we want to hit pairwise geodesic intervals among a given vertex subset QV. This result is shown by a modification of the proof of the first result.

 
Figure 1: The figure on the left shows the complexity of Hitting Geodesic Intervals parameterized solely by each parameter, and the one on the right shows the complexity parameterized by each parameter plus solution size k. (See Section 2 for the non-abbreviated names of the parameters.) The results marked with are shown in this paper and the ones with 🍂 are easy observations. The double rectangles and the rounded rectangles indicate paraNP-complete and fixed-parameter tractable cases, respectively. Ones without frames remain unsettled. A connection between two parameters means that if the one below (say β) is bounded, then so is the one above (say α); that is, there is a function f such that α(G)f(β(G)) for every graph G. Thus, a positive result propagates downward, while a negative result propagates upward.

1.3 Related work

In the fields of graph theory and graph algorithms, the concept of geodesic intervals (also known as geodetic intervals or just as intervals) is well studied, especially in the context of the problem Geodetic Set [18] (see the survey on Geodetic Set [5] and the references therein). In a graph G=(V,E), a set SV is a geodetic set if {u,v}(S2)IG[u,v]=V; that is, the union of pairwise geodesic intervals among the vertices in S covers all vertices of G. Given a graph G and an integer k, Geodetic Set asks whether G has a geodetic set of size at most k. Geodetic Set is NP-complete [3, 10] and several parameterized complexity results have been shown recently [21, 28]. Although Hitting Geodesic Intervals and Geodetic Set share some concepts in common, there seem to be no direct connections.

2 Preliminaries

Throughout the paper, we assume that the reader is familiar with the concepts in parameterized complexity and fixed-parameter tractability (see standard textbooks, e.g., [8, 11, 12, 15, 25]).

All graphs considered in this paper are finite, simple, and undirected. In Section 4.2, we consider edge-weighted graphs, where the weight of each edge represents its length. To guarantee the existence of shortest paths, we assume that the input graph does not contain a cycle of a negative total weight. It is well known that even in the edge-weighted setting, we can compute all-pairs shortest paths (or find a negative cycle) in polynomial time using standard algorithms (see e.g., [7]).

As mentioned in the introduction, WHGI is a special case of Hitting Set. Given a finite set U, a family 2U, and an integer k, Hitting Set asks whether there is SU with |S|k such that SF for each F. We can see that an instance G=(V,E),T,k of WHGI is equivalent to the instance V,{IG[u,v]{u,v}T},k of Hitting Set, where the family {IG[u,v]{u,v}T} can be computed in polynomial time. Hitting Set is known to be W[2]-complete parameterized by k, while it is fixed-parameter tractable parameterized by |U| and by || (see [8]).

Although our results involve many structural graph parameters as shown in Figure 1, not all of the parameters need their formal definitions for the presentations in this paper. Thus, we only define some of them when it is necessary. For the definitions and relationships of the parameters, we refer the reader to the survey on structural graph parameters [27] (see also [26, 29]).

In Figure 1, we abbreviated the names of graph parameters as follows: 𝖼𝗐 is cliquewidth; 𝗍𝗐 is treewidth; 𝗉𝗐 is pathwidth; 𝗍𝖽 is treedepth; 𝗏𝗂 is vertex integrity; 𝗏𝖼 is vertex cover number; 𝗆𝗐 is modular-width; 𝗇𝖽 is neighborhood diversity; 𝖼𝗏𝖽 is cluster vertex deletion number; 𝗍𝖼 is twin cover number; 𝖻𝗐 is bandwidth; 𝗆𝗅𝗇 is max-leaf number; 𝖿𝗏𝗌 is feedback vertex set number; 𝖿𝖾𝗌 is feedback edge set number; and 𝖽𝗉𝖿 is distance to path forest.

3 NP-completeness on highly restricted graphs

Since HGI clearly belongs to NP, we only prove the NP-hardness in the following proofs.

Theorem 3.1.

Hitting Geodesic Intervals is NP-complete on graphs of vertex-deletion distance 1 to the class of disjoint unions of 5-vertex paths.

Proof.

We present a polynomial-time reduction from 3-Coloring, which is NP-complete [17, GT4]. Given a graph G=(V,E), 3-Coloring asks whether there is a proper 3-coloring of G, i.e., a mapping c:V{1,2,3} such that c(u)c(v) for every {u,v}E.

Let G=(V,E) be an instance of 3-Coloring. In the following, we construct an equivalent instance H,T,k of Hitting Geodesic Intervals.

Construction of 𝑯,𝑻,𝒌.

We set k=2|V|. For each vertex vV, we construct a path Pv of five vertices v1, v1, v2, v3, and v3 that appear in this order along the path. To complete the construction of H, we add one more vertex, s, that is adjacent to almost all other vertices except for the center vertex v2 in each path Pv for each vV. See Figure 2. Clearly, Hs is a disjoint union of 5-vertex paths. For each vV, we add pairs {v1,v1} and {v3,v3} into T. For each {u,v}E, we add pairs {u1,v1}, {u2,v2}, and {u3,v3} into T.

Figure 2: The construction of H in Theorem 3.1 (when G has only three vertices u, v, w). We represent terminal vertices by squares. Some terminal vertices are depicted as small squares since they appear only in “local” terminal pairs.
If 𝑮 is a yes instance.

Let c:V{1,2,3} be a proper 3-coloring of G. For each vV, let Sv{v1,v1,v2,v3,v3} be the following set depending on c(v):

Sv={{v1,v3}if c(v)=1,{v1,v3}if c(v)=2,{v1,v3}if c(v)=3.

We set S=vVSv. Since |S|=2|V|=k, it suffices to show that S interrupts all pairs in T. For each vV, it is easy to see that Sv interrupts the pairs {v1,v1} and {v3,v3}.

For each edge {u,v}E, we show that SuSv interrupts the pairs {u1,v1}, {u2,v2}, and {u3,v3}. Since c is a proper 3-coloring, we have c(u)c(v), and thus {c(u),c(v)}{1,3}. By symmetry, we may assume that c(u){1,3}. Assume that c(u)=1. Then, Su={u1,u3} interrupts {u3,v3} and also {u2,v2} as u1IH[u2,v2]. Since c(v){2,3}, Sv includes v1, and thus it interrupts {u1,v1}. The other case of c(u)=3 can be handled in the same way by swapping 1 and 3 in the discussion above.

If 𝑯,𝑻,𝒌 is a yes instance.

Let SV(H) be a set with |S|k that interrupts all pairs in T. Since {v1,v1},{v3,v3}E(H)T for every vV and k=2|V|, we have |S{v1,v1}|=|S{v3,v3}|=1 for each vV and SvV{v1,v1,v3,v3}. Let Sv=S{v1,v1,v3,v3}. We define c(v){1,2,3} for each vV as follows:

c(v)={1if v1Sv,3else if v3Sv,2otherwise (Sv={v1,v3}).

We show that c is a proper 3-coloring of G. Suppose to the contrary that there is an edge {u,v}E with c(u)=c(v)=x. If x{1,3}, then ux,vxSuSv. Since IH[ux,vx]={ux,s,vx} and sS, S does not interrupt the pair {ux,vx}T. If x=2, then SuSv={u1,u3,v1,v3} does not intersect IH[u2,v2]={u2,u1,u3,s,v1,v3,v2}, and thus S (∌s) does not interrupt the pair {u2,v2}T.

To the graph H constructed in the proof of Theorem 3.1, we may add some vertices and edges without invalidating the reduction as long as the geodesic intervals to be hit do not change. In particular, we can pick arbitrary two vertices u and v of G and add a long path between u3 and v1 to H.222Actually, we can show that adding an edge between u3 and v1 is good enough. Repeating this in an appropriate way, we can make Hs a path and obtain the following corollary.

Corollary 3.2.

Hitting Geodesic Intervals is NP-complete on graphs of vertex-deletion distance 1 to the class of paths.

The next theorem can be shown by replacing 5-vertex paths in the proof of Theorem 3.1 with triangles.

Theorem 3.3.

Hitting Geodesic Intervals is NP-complete on graphs of vertex-deletion distance 1 to the disjoint unions of triangles.

Proof.

Let G=(V,E) be an instance of 3-Coloring. We set k=2|V|. For each vV, the graph H contains a triangle Cv with vertices v1, v2, and v3. Additionally, H has vertex s adjacent to all other vertices. See Figure 3 (left). For each vV, we add pairs {v1,v2}, {v2,v3}, and {v3,v1} into T. For each {u,v}E, we add pairs {u1,v1}, {u2,v2}, and {u3,v3} into T.

Assume that G admits a proper 3-coloring c. For each vV, let Sv={v1,v2,v3}{vc(v)}. For each vV, Sv interrupts the pairs {v1,v2}, {v2,v3}, and {v3,v1}. For each edge {u,v}E, since c(u)c(v), SuSv includes at least one of ui and vi for each i{1,2,3}, and thus, SuSv interrupts the pairs {u1,v1}, {u2,v2}, and {u3,v3}. Since vVSv has size 2|V|=k, H,T,k is a yes instance of HGI.

Next assume that H,T,k is a yes instance of HGI, and that SV(H) interrupts all pairs in T and has size at most k. Since {v1,v2},{v2,v3},{v1,v1}E(H)T and k=2|V|, we have sS and |S{v1,v2,v3}|=2 for each vV. We define c(v){1,2,3} for each vV to be the unique index i{1,2,3} such that viS. Suppose that there is an edge {u,v}E with c(u)=c(v)=x. The definition of c implies that ux,vxS{u1,u2,u3,v1,v2,v3}. Since sS and IH[ux,vx]={ux,s,vx}, S does not interrupt the pair {ux,vx}T.

Figure 3: The construction of H and H in Theorems 3.3 and 3.4.

To show the hardness on graphs of bandwidth 4 and maximum degree 5, we only need to slightly modify the proof of Theorem 3.3. For an n-vertex graph G=(V,E), its bandwidth 𝖻𝗐(G) is defined as 𝖻𝗐(G)=minσmax{u,v}E|σ(u)σ(v)|, where the minimum is taken overall bijections σ:V[n], where [n]={i1in}.

Corollary 3.4.

Hitting Geodesic Intervals is NP-complete on graphs of bandwidth 4 and maximum degree 5.

Proof.

Let H be the graph constructed in the proof of Theorem 3.3. We first remove s from H. Next, for each vV, we add a vertex sv adjacent to all vertices in the triangle Cv. Finally, we add |V|1 edges to make a path that goes through the new vertices {svvV}. See Figure 3 (right). Let us call the modified graph H. We can see that H,T,k(=2|V|) and H,T,k are equivalent instances of HGI since a solution S of H,T,k cannot include any vertex in {svvV}. Clearly, H has maximum degree 5. To see that H has bandwidth 4, consider the ordering that places the vertices along the path on {svvV}, while the vertices of Cv are placed right after sv. This ordering has bandwidth 4. See Figure 4.

Figure 4: The embedding of H in Corollary 3.4.

4 Fixed-parameter tractability with 𝒌 plus structural parameters

4.1 Modular-width

Let G=(V,E) be a graph. A set MV is a module of G if NG(u)M=NG(v)M holds for all u,vM. In other words, each vertex wM is adjacent to all or no vertices of M. Note that if M and M are two disjoint modules of G, then either there are all or no possible edges between them. Two modules M and M are adjacent if there are all possible edges between them, and nonadjacent otherwise.

The modular-width of G=(V,E), denoted 𝗆𝗐(G), is defined as the minimum integer μ that satisfies the following recursive condition:

  • |V|μ; or

  • V can be partitioned into modules M1,,Mμ of G such that 2μμ and 𝗆𝗐(G[Mi])μ for each i[μ].

Theorem 4.1.

Hitting Geodesic Intervals is fixed-parameter tractable parameterized by solution size k plus modular-width.

Proof.

Let G=(V,E),T,k be an instance of HGI. Observe that the vertex set of each connected component C of G is a module of G, and thus 𝗆𝗐(C)𝗆𝗐(G). Hence, we may assume that G is connected; otherwise we solve each connected component of G independently for all kk and combine the answers for them.

Let M1,,Mp be a partition of V into modules of G with 2p𝗆𝗐(G). It is known that such a partition can be computed in linear time [24]. Note that, although the definition of modular-width requires a complete recursive structure, our algorithm described below only needs a partition at the very first level.

For each {u,v}T, we take a set J(u,v) and initialize it by IG[u,v]. Now we set ={J(u,v){u,v}T}. Our goal is to find a hitting set S of with size at most k. To this end, we make two phases of branching that make the rest of the problem almost trivially polynomial-time solvable. Although we do not explicitly state the trivial termination conditions in each step, we stop and reject a branch if it results in k<0 or .

The first branching.

We first branch on the 2p candidates of the set of modules that S intersects, which we call S. We assume that S is chosen in such a way that |S| is maximized. According to S, we update as follows.

  • Add each MiS into .

  • For each {u,v}T, if there is MiS with MiJ(u,v), then remove J(u,v) from .

  • For each {u,v}T and MiS, update J(u,v) as J(u,v)J(u,v)Mi.

We now see that, for every {u,v}T, if u and v belong to different modules, say Mi and Mj, then J(u,v){u,v} after the update above. Observe that IG[u,v]={u,v}MM for some {M1,,Mp}{Mi,Mj}. Since J(u,v), we have S=, and thus J(u,v){u,v}.

The second branching.

Let be the subset of consisting of the sets J(u,v) such that {u,v}E or u and v belong to different modules. Observe that every hitting set S of with size at most k contains a minimal hitting set S of with size at most k. We list all possible candidates for S and branch on them. Since each member of has size at most 2, we can use the algorithm of Damaschke [9] for enumerating all minimal vertex covers of size at most k in O(||+k22k) time. It gives us all (at most 2k) minimal hitting sets of with size at most k (or answers that there is no such a set). After we pick one candidate S, we decrease k by |S| and update by removing all elements hit by S. In particular, we remove all J(u,v) from .

Solving the reduced instance in polynomial time.

We first show that, at this point, each member of is a subset of some module Mi. This is trivial for the members of S. For J(u,v), we have {u,v}E and there is a module Mi such that u,vMi. This implies that distG(u,v)=2 since Mi has an adjacent module by the connectivity of G. Thus, IG[u,v] consists of the modules adjacent to Mi and a subset of Mi. Since J(u,v) now, the adjacent modules do not belong to S. This implies that J(u,v)Mi.

For i[p], let i be the (possibly empty) subset of consisting of the members that are subsets of Mi. Since 1,,p form a partition of with disjoint universes, we can handle them separately. That is, if we know a minimum hitting set Si of i for each i[p], then we can set S=Si[p]Si.

We now claim that, under the assumption that S and S are correct ones, each nonempty i admits a hitting set of size 1. Suppose to the contrary that a minimum hitting set Si of i has size at least 2 for some i[p]. Let Mj be a module adjacent to Mi, and let viSi and vjMj. Let Si=(Si{vi}){vj} and R=(SSi)Si. Observe that Si hits i: it contains at least one vertex of Mi, which hits Mi; and vjMj hits all J(u,v)i since distG(u,v)=2. This implies that R interrupts all pairs in T as S does. However, this contradicts the assumption on S since R intersects one more module (Mj) than S. Thus, we can conclude that at least one of S and S is not correct.

Given the observation above, we can solve the rest of the current branch in polynomial time as follow. If there are at most k indices i[p] such that i is nonempty and each of them admits a hitting set of size 1, then return yes. Otherwise, we reject the current branch.

Total running time.

We first branch on 2p cases. In each case, we take O(2k) time to enumerate at most 2k candidates for the next branch. We branch on these candidates and take polynomial time in each of them. In total, the running time is O(2p+k).

4.2 Vertex integrity and vertex multiway cut

To show that WHGI is fixed-parameter tractable parameterized by k plus vertex integrity and by the minimum vertex multiway-cut size of terminal vertices V(T), we first give a single algorithm that applies to a more general setting that includes both cases under the assumption that a certain kind of a separator is given as part of the input. We then present simple observations of how the requirement that the separator is given as part of the input can be dropped for our cases.

4.2.1 The main algorithm

Let us first give an overview of the main algorithm. It can be seen as a generalization of the one parameterized by vertex cover number due to Aravind and Saxena [2]. Instead of a vertex cover, we use a small set ZV such that each connected component of GZ contains a small number of terminal vertices. Given Z, we guess how our solution S interrupts pairs in (Z2). To reflect the guess, we then update the family of vertex sets to be hit by the solution (which was originally the family of geodesic intervals for T), in an appropriate way. We show that, after this update, each member of is either a geodesic interval between two vertices in Z or a vertex set intersecting at most two connected components of GZ. We then show that although each connected component of GZ may have unbounded size, we can focus on a bounded number of “representatives” in each connected component. This allows us to shrink the members of and then apply the sunflower lemma to a subfamily of . As a result, we get an upper bound of ||, and thus the rest becomes easy to solve.

Theorem 4.2.

Consider a special case of WHGI where, in addition to G=(V,E),T,k, we are given a set ZV such that |Z|p and each connected component of GZ contains at most q terminal vertices. There is a fixed-parameter algorithm for this problem parameterized by k+p+q.

Proof.

For simplicity, we assume that Z does not include any terminal vertex. This assumption can be justified by the following simple modification: if a vertex zZ is involved in terminal pairs, then add a new vertex z adjacent only to z and replace all terminal pairs {z,x} with {z,x}; this modification is safe as any path to z must go through z. We also assume that our solution does not use any vertex in Z. For this assumption, we guess from at most 2p candidates the subset Z of Z that actually is contained in the solution, remove the terminal pairs interrupted by Z, and reduce k by |Z|.

Let u,vVZ and Cu and Cv be the connected components of GZ that contain u and v, respectively. Note that Cu and Cv are not necessarily different. We now show that

IG[u,v](Z{z,z}(Z2)IG[z,z])V(Cu)V(Cv). (1)

Let P be a shortest uv path. To show (1), it suffices to show that either V(P)V(Cu)V(Cv) or V(P)V(P)V(Cu)V(Cv) for some shortest path P connecting (possibly the same) vertices z,zZ. If P does not visit any vertex in Z, then V(P)V(Cu) holds. Assume that P visits some vertices in Z. Let PZ be the maximal subpath of P such that the first and last vertices belong to Z. Note that PZ is a shortest path. Let Pu and Pv be the paths containing u and v, respectively, obtained from P by removing V(PZ). Since Z separates Cu from the rest of the graph, V(Pu)V(Cu) holds. By the same argument, we can see that V(Pv)V(Cv). Hence, V(P)V(PZ)V(Cu)V(Cv) holds. This implies (1).

Branching.

For each {u,v}T, we take a set J(u,v) and initialize it by IG[u,v]Z. (Recall that we already guessed and preprocessed the intersection of Z and the solution.) Now we set ={J(u,v){u,v}T}. We branch on the 2(|Z|2) candidates of the subset of (Z2) that S interrupts, which we call Y. That is, we assume that we are looking for a solution S such that SIG[u,v] for each {u,v}Y, and SIG[u,v]= for each {u,v}(Z2)Y. Thus, we update as follows.

  • For each {u,v}Y, let J(u,v)=IG[u,v]Z and add J(u,v) into .

  • For each {u,v}T and {u,v}Y, if J(u,v)J(u,v), then remove J(u,v) from .

  • For each {u,v}T and {u,v}(Z2)Y, if J(u,v)J(u,v), then update J(u,v) as J(u,v)J(u,v)J(u,v).

Let T={J(u,v){u,v}T} and Y={J(u,v){u,v}Y}. The condition (1) implies that, after the update above, J(u,v)V(Cu)V(Cv) holds for each J(u,v)T.

Reducing the size of each set in 𝓘𝑻.

Two vertices u and v are T-equivalent if u and v interrupt the same set of pairs in T. In other words, u and v are T-equivalent if, for each {x,y}T, either {u,v}IG[x,y] or {u,v}IG[x,y]= holds. Observe that the T-equivalence among vertices is an equivalence relation. Every inclusion-wise minimal solution for G,T,k includes at most one vertex of a T-equivalence class, and if it includes one vertex of a T-equivalence class, then taking any of them is equivalent. The partition of the vertices to the T-equivalence classes can be computed in polynomial time by first computing all-pairs shortest distance in G, and then iteratively refining the partition of the vertices with respect to the interruption relation to each pair {u,v}T.

Let V be a subset of V constructed by picking one vertex from each T-equivalence class. Using V, we further update by compressing each J(u,v) as J(u,v)J(u,v)V. We now show that this update allows us to upper-bound the size of each J(u,v)T by a function depending only on p+q. To this end, we prove the following claim.

Claim 4.3.

Let C be a connected component of GZ. If two vertices x,yV(C) are (Z(V(T)V(C))2)-equivalent, then they are T-equivalent.

Proof.

It suffices to show that if one of x and y interrupts a pair {a,b}T, then the other also interrupts {a,b}. By symmetry, we may assume that x interrupts {a,b}.

Let Pax be a shortest ax path and Pxb a shortest xb path. Since x interrupts {a,b}, the concatenation Pab(x)PaxPxb is a shortest ab path. Now we pick two vertices aV(Pax) and bV(Pxb) as follows: we set a=a if aV(C); otherwise, we set a to an arbitrary vertex in V(Pax)Z (such a vertex exists as Z separates C from the rest of the graph); analogously, we set b=b if bV(C); otherwise, we set b to an arbitrary vertex in V(Pxb)Z. By the definition, {a,b}Z(V(T)V(C)) holds.

Let Pab(x) be the subpath of Pab(x) from a to b. Since Pab(x) is a shortest ab path containing x, x interrupts {a,b}, and thus so does y by their (Z(V(T)V(C))2)-equivalence. Thus, there is a shortest ab path Pab(y) that passes through y. This implies that we can obtain a shortest ab path that visits y by replacing Pab(x) in Pab(x) with Pab(y). Hence, y interrupts {a,b}.

For every connected component C of GZ, the assumption on Z implies that |Z(V(T)V(C))|p+q. Thus, ˜4.3 implies that C intersects at most 2(|Z(V(T)V(C))|2)2(p+q2) T-equivalence classes, and thus, |VV(C)|2(p+q2). This implies that |J(u,v)|2(p+q2)+1 for each J(u,v)T since J(u,v)V(V(Cu)V(Cv)).

Reducing the size of 𝓘.

Now we shrink the size of T by a well-known application of the sunflower lemma [14] to d-Hitting Set, a variant of Hitting Set with each set having size at most d. There is a polynomial-time algorithm based on the sunflower lemma that, given an instance of d-Hitting Set, either

  • answers that admits no hitting set of size at most k, or

  • returns an instance of d-Hitting Set with at most kdd! sets such that and admit exactly the same (possibly empty) family of hitting sets of size at most k.

See [15, Section 9.1] or [8, Theorem 2.26]. By setting d=2(p+q2)+1, we apply this algorithm to T and obtain T with at most kdd! sets (or find that it is a no-instance). Finally, we set =TY. The discussion so far guarantees that and are equivalent. Since || (=|T|+|Y|kdd!+p2) depends only on k+p+q, we can find a minimum hitting set of by applying the standard fixed-parameter algorithm for Hitting Set parameterized by the number of sets (see Section 1.1).

4.2.2 Applications of the main algorithm

Theorem 4.2 requires a separator Z with special properties as part of the input. A natural question would be whether the original problem WHGI is fixed-parameter tractable parameterized by k+p+q. To this end, it suffices to show that finding Z is fixed-parameter tractable parameterized by p+q. Although we leave this general problem unsettled, we now observe that for our special cases finding Z is fixed-parameter tractable.

The vertex integrity of a graph G=(V,E), denoted 𝗏𝗂(G), is the minimum integer ι such that there is a set XV satisfying that ι=|X|+maxC𝖼𝖼(GX)|V(C)|, where 𝖼𝖼(GX) is the set of connected components of GX. For an n-vertex graph G with 𝗏𝗂(G)=ι, finding a set X satisfying ι=|X|+maxC𝖼𝖼(GX)|V(C)| can be done in time O(ιι+1n) [13]. Observe that such a set X satisfies the conditions of Z in Theorem 4.2 with p=q=ι. Thus we get the following result as a direct corollary.

Corollary 4.4.

Weighted Hitting Geodesic Intervals is fixed-parameter tractable parameterized by solution size k plus vertex integrity.

For a graph G=(V,E) and UV, a set XV is a vertex multiway cut for U if each connected component of GX contains at most one vertex of U. It is known that the problem of finding a vertex multiway cut of size r is fixed-parameter tractable parameterized by r [6, 22]. A multiway cut X for V(T) with size r satisfies the conditions of Z in Theorem 4.2 with p=r and q=1. Furthermore, X interrupts all pairs in T as no path can connect a pair in T without passing through X. Thus, we can assume that kr as otherwise we already have a desired solution (i.e., X). Now we apply Theorem 4.2 and get the following result.

Corollary 4.5.

Weighted Hitting Geodesic Intervals is fixed-parameter tractable parameterized by the minimum vertex multiway-cut size of the set of terminal vertices V(T).

As a final remark to this section, we note that the problem of finding Z in Theorem 4.2 is nonuniformly fixed-parameter tractable parameterized by p+q. This follows from the discussion by Marx [22, p. 396] on the case of q=1 (i.e., the vertex multiway cut problem), which directly applies to general q as well. Given G=(V,E) and RV, we construct an edge-colored graph G=(V,E) as follows: for each vR, add a vertex v and an edge {v,v}; color E in black and {{v,v}vR} in red. Now, there is ZV such that |Z|p and each connected component of GZ contains at most q terminal vertices if and only if there is ZV such that |Z|p and each connected component of GZ contains at most q red edges. Observe that the latter is a minor-closed property. More precisely, let 𝒢p,q be the family of graphs with black and red edges such that each graph H𝒢p,q admits a separator XV(H) such that |X|p and each connected component of HX contains at most q red edges. Then, 𝒢p,q is closed under the operation of taking minors. Thus, the edge-colored version of the graph minor theorem (see [12, Exercise 19.5.6]) implies that testing the membership to 𝒢p,q is fixed-parameter tractable parameterized by p+q.

5 Parameterized intractability beyond 𝒌

Since HGI parameterized by k belongs to W[2], both subcases handled in this section also belong to W[2]. Hence, we only prove the W[2]-hardness in each case.

For a graph G=(V,E) and a set T of vertex pairs, a set XV is a vertex multicut for T if no connected component of GX contains a pair in T. It is known that the problem of finding a vertex multicut is fixed-parameter tractable parameterized by its size [4, 23].

Observe that a vertex multiway cut for V(T) is a vertex multicut for T, but not vice versa. Observe also that a vertex multicut for T interrupts all pairs in T. Therefore, the minimum vertex multicut size is upper-bounded by the minimum vertex multiway-cut size, for which WHGI is fixed-parameter tractable (Corollary 4.5), and lower-bounded by the solution size k, for which HGI is W[2]-complete [2]. Thus, the following result sharpens the border of (in)tractability in this parameter hierarchy.

Theorem 5.1.

Hitting Geodesic Intervals is W[2]-complete parameterized by the minimum vertex multicut size of the terminal pairs T.

Proof.

Let U,,h be an instance of Hitting Set, where U={u1,,un} and ={F1,,Fm}2U. From this instance, we construct an equivalent instance G,T,h of HGI with G=(V,E) as follows (see Figure 5 (left)). Let W={wii[h+3]}.333For proving Theorem 5.1, it suffices to set |W|=h+1 instead of h+3. We use h+3 to make the proof of Theorem 5.2 simpler. We set V=UW. For uiU and Fj, we add {ui,Fj} into E if and only if uiFj. We then add all possible edges between U and W. We set T={{Fi,wj}i[m],j[h+3]}. We can see that W is a vertex multicut of T with size h+3.

Assume that U,,h is a yes-instance of Hitting Set. Let SU be a hitting set of with |S|h. Since S is a hitting set of , each Fi includes a member of S, say uj, and that member uj interrupts the pair {Fi,wp} for each p[h+3].

Assume that G,T,h is a yes-instance of HGI. We first claim that there is a solution for G,T,h that does not include any vertex in . To see this, observe that Fi interrupts all pairs {Fi,wp} for p[h+3] but no others, while each ujFi also interrupts them. Let S be a solution for G,T,h with S=. Since |S|h<|W|, there is a vertex wpWS. Since no other vertex wqW{wp} belongs to the geodesic interval IG[wp,Fi] for every i[m], the set SW (=SU) has to interrupt {wp,Fi} for every i[m]. This implies that, each Fi has a neighbor uj in SU, and thus, SU is a hitting set of .

Figure 5: The graphs G (left) and H (right) in Theorems 5.1 and 5.2, respectively.

We now modify the proof of Theorem 5.1 and show that HGI is W[2]-complete parameterized by k even if the structure formed by the terminal pairs is quite limited, i.e., T=(Q2) for some QV. In other words, we consider the setting where we want to hit pairwise geodesic intervals in a given vertex set Q. As this variant could be of independent interest, we define it as a separate problem as follows.

Problem:

Hitting Pairwise Geodesic Intervals (HPGI)

Input:

A graph G=(V,E), a set QV, and an integer k.

Question:

Is there SV with |S|k such that SIG[u,v] for each {u,v}(Q2)?

Theorem 5.2.

Hitting Pairwise Geodesic Intervals is W[2]-complete parameterized by solution size k.

Proof.

We first repeat the construction in the proof of Theorem 5.1 to obtain an instance G=(V,E),T,h of HGI from an instance U,,h of Hitting Set. From G,T,h, we construct an equivalent instance H,Q,h+2 of HPGI (see Figure 5 (right)): to obtain H from G, we add vertices F and w and a set X={xii[h+3]} of vertices, and then add all possible edges between F and X and between w and W; we set Q=V(H)U.

Assume that G,T,h is a yes-instance of HGI. Let SU be a solution for G,T,h. We set S=S{F,w}. We can see that S interrupts all pairs in (Q2): S interrupts all pairs in T={{Fi,wj}i[m],j[h+3]}; F interrupts all pairs involving a vertex in X and all pairs {Fi,Fj}; and w interrupts all pairs {wi,wj}.

Assume that H,Q,h+2 is a yes-instance of HPGI. Let S be a solution for G,Q,h. Observe that FS since otherwise we have to take all h+3 vertices of X into S. Similarly, we can see that wS. Since neither F nor w can interrupt pairs {Fi,wp}T and IG[Fi,wp]=IH[Fi,wp] for all i[m] and j[h+3], we can conclude that S{F,w} interrupts all pairs in T.

6 Concluding remarks

In this paper, we showed that Hitting Geodesic Intervals is intractable even on graphs with highly restricted structures, while combinations of the solution size k and some structural graph parameters make the problem fixed-parameter tractable (see Figure 1). As Figure 1 (right) shows, when k is part of the parameter, many cases remain unsettled. It would be interesting to further investigate these cases.

In one of our fixed-parameter algorithms (Theorem 4.2), we have a restriction that a certain kind of a separator is given as part of the input, and then we discussed that for our target cases it is actually not a restriction (Corollaries 4.4 and 4.5). We wonder if requiring such a separator in the input is not a restriction in general. More precisely, we would like to ask whether the following problem is fixed-parameter tractable parameterized by p+q.

Input:

A graph G=(V,E), a set of terminal vertices RV, and integers p and q.

Question:

Is there ZV with |Z|p such that each connected component C of GZ contains at most q terminal vertices (i.e., |V(C)R|q)?

Note that, as we discussed in the last paragraph of Section 4.2.2, the graph minor theorem gives a nonuniform fixed-parameter algorithm parameterized by p+q for this problem, while we are looking for a uniform one.

References

  • [1] Pankaj K. Agarwal, Sariel Har-Peled, Rahul Raychaudhury, and Stavros Sintos. Fast approximation algorithms for piercing boxes by points. In SODA 2024, pages 4892–4908, 2024. doi:10.1137/1.9781611977912.174.
  • [2] N. R. Aravind and Roopam Saxena. The parameterized complexity of terminal monitoring set. In WALCOM 2024, volume 14549 of Lecture Notes in Computer Science, pages 76–90, 2024. doi:10.1007/978-981-97-0566-5_7.
  • [3] Mustafa Atici. Computational complexity of geodetic set. Int. J. Comput. Math., 79(5):587–591, 2002. doi:10.1080/00207160210954.
  • [4] Nicolas Bousquet, Jean Daligault, and Stéphan Thomassé. Multicut is FPT. SIAM J. Comput., 47(1):166–207, 2018. doi:10.1137/140961808.
  • [5] Boštjan Brešar, Matjaž Kovše, and Aleksandra Tepeh. Geodetic sets in graphs. In Structural Analysis of Complex Networks, pages 197–218. Birkhäuser, 2011. doi:10.1007/978-0-8176-4789-6_8.
  • [6] Jianer Chen, Yang Liu, and Songjian Lu. An improved parameterized algorithm for the minimum node multiway cut problem. Algorithmica, 55(1):1–13, 2009. doi:10.1007/S00453-007-9130-6.
  • [7] Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms. MIT Press, 4th edition, 2022.
  • [8] Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
  • [9] Peter Damaschke. Parameterized enumeration, transversals, and imperfect phylogeny reconstruction. Theor. Comput. Sci., 351(3):337–350, 2006. doi:10.1016/J.TCS.2005.10.004.
  • [10] Aaron L. Douthat and Man C. Kong. Computing geodetic bases of chordal and split graphs. J. Comb. Math. Comb. Comput., 22:67–77, 1996.
  • [11] Rodney G. Downey and Michael R. Fellows. Parameterized Complexity. Springer, 1999. doi:10.1007/978-1-4612-0515-9.
  • [12] Rodney G. Downey and Michael R. Fellows. Fundamentals of Parameterized Complexity. Springer, 2013. doi:10.1007/978-1-4471-5559-1.
  • [13] Pål Grønås Drange, Markus S. Dregi, and Pim van ’t Hof. On the computational complexity of vertex integrity and component order connectivity. Algorithmica, 76(4):1181–1202, 2016. doi:10.1007/s00453-016-0127-x.
  • [14] Paul Erdős and Richard Rado. Intersection theorems for systems of sets. J. London Math. Soc., 35(1):85–90, 1960. doi:10.1112/jlms/s1-35.1.85.
  • [15] Jörg Flum and Martin Grohe. Parameterized Complexity Theory. Springer, 2006. doi:10.1007/3-540-29953-X.
  • [16] Robert J. Fowler, Mike Paterson, and Steven L. Tanimoto. Optimal packing and covering in the plane are NP-complete. Inf. Process. Lett., 12(3):133–137, 1981. doi:10.1016/0020-0190(81)90111-3.
  • [17] Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
  • [18] Frank Harary, Emmanuel Loukakis, and Constantine Tsouros. The geodetic number of a graph. Math. Comput. Model., 17(11):89–95, 1993. doi:10.1016/0895-7177(93)90259-2.
  • [19] Bart M. P. Jansen. On structural parameterizations of hitting set: Hitting paths in graphs using 2-SAT. J. Graph Algorithms Appl., 21(2):219–243, 2017. doi:10.7155/JGAA.00413.
  • [20] Bart M. P. Jansen and Céline M. F. Swennenhuis. Steiner tree parameterized by multiway cut and even less. In ESA 2024, volume 308 of LIPIcs, pages 76:1–76:16, 2024. doi:10.4230/LIPICS.ESA.2024.76.
  • [21] Leon Kellerhals and Tomohiro Koana. Parameterized complexity of geodetic set. J. Graph Algorithms Appl., 26(4):401–419, 2022. doi:10.7155/JGAA.00601.
  • [22] Dániel Marx. Parameterized graph separation problems. Theor. Comput. Sci., 351(3):394–406, 2006. doi:10.1016/J.TCS.2005.10.007.
  • [23] Dániel Marx and Igor Razgon. Fixed-parameter tractability of multicut parameterized by the size of the cutset. SIAM J. Comput., 43(2):355–388, 2014. doi:10.1137/110855247.
  • [24] Ross M. McConnell and Jeremy P. Spinrad. Modular decomposition and transitive orientation. Discrete Mathematics, 201(1-3):189–241, 1999. doi:10.1016/S0012-365X(98)00319-7.
  • [25] Rolf Niedermeier. Invitation to Fixed-Parameter Algorithms. Oxford University Press, 2006. doi:10.1093/ACPROF:OSO/9780198566076.001.0001.
  • [26] Johannes C. B. Schröder. Comparing graph parameters. Bachelor thesis, Technische Universität Berlin, 2019. URL: https://fpt.akt.tu-berlin.de/publications/theses/BA-Schr%C3%B6der.pdf.
  • [27] Manuel Sorge and Mathias Weller. The graph parameter hierarchy, 2019. URL: https://manyu.pro/assets/parameter-hierarchy.pdf.
  • [28] Prafullkumar Tale. Geodetic set on graphs of constant pathwidth and feedback vertex set number. CoRR, abs/2504.17862, 2025. doi:10.48550/arXiv.2504.17862.
  • [29] Duc Long Tran. Expanding the graph parameter hierarchy. Bachelor thesis, Technische Universität Berlin, 2022. URL: https://fpt.akt.tu-berlin.de/publications/theses/BA-Duc-Long-Tran.pdf.