Abstract 1 Introduction 2 Preliminaries 3 Graphs of bounded pathwidth 4 Approximation of (s,z,β„“)-Temporal Separator 5 Tractability and approximation of (s,z,β„“)-Temporal Cut 6 Conclusion References

Novel Complexity Results for Temporal Separators with Deadlines

Riccardo Dondi ORCID UniversitΓ  degli Studi di Bergamo, Italy Manuel Lafond ORCID UniversitΓ© de Sherbrooke, Canada
Abstract

We consider two variants, (s,z,β„“)-Temporal Separator and (s,z,β„“)-Temporal Cut, respectively, of the vertex separator and the edge cut problem in temporal graphs. The goal is to remove the minimum number of vertices (temporal edges, respectively) in order to delete all the temporal paths that have time travel at most β„“ between a source vertex s and target vertex z. First, we solve an open problem in the literature showing that (s,z,β„“)-Temporal Separator is NP-hard even when the underlying graph has pathwidth bounded by four. We complement this result showing that (s,z,β„“)-Temporal Separator can be solved in polynomial time for graphs of pathwidth bounded by three. Then we consider the approximability of (s,z,β„“)-Temporal Separator and we show that it cannot be approximated within factor 2Ω⁒(log1βˆ’Ξ΅β‘|V|) for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P (V is the vertex set of the input temporal graph) and that the strict version is approximable within factor β„“βˆ’1 (we show also that it is unliklely that this factor can be improved). Then we consider the (s,z,β„“)-Temporal Cut problem, we show that it is APX-hard and we present a 2⁒log2⁑(2⁒ℓ) approximation algorithm.

Keywords and phrases:
Temporal Graphs, Graph Algorithms, Graph Separators, Parameterized Complexity, Approximation Complexity
Copyright and License:
[Uncaptioned image] © Riccardo Dondi and Manuel Lafond; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation β†’ Parameterized complexity and exact algorithms
; Theory of computation β†’ Graph algorithms analysis ; Mathematics of computing β†’ Graph theory
Editors:
Pat Morin and Eunjin Oh

1 Introduction

A central problem in checking network robustness is finding the minimum number of vertices or edges that need to be removed in order to disconnect the network. In classic (static) graphs this is modeled by computing a minimum cut or a minimum vertex separator between a source vertex s and a target vertex z. The static graph model however does not consider how a network may change over time. In transportation networks, for example, the time schedule is a fundamental aspect that has to be taken into account for analyzing several properties, like connectedness and robustness. The need to incorporate time information of edge availability has led to the introduction of the temporal graph modelΒ [12, 9, 16, 10], where edges are assigned timestamps in a discrete set that define when each edge is available (thus when a specific transport is available in a transportation network).

The robustness problems (minimum cut and minimum vertex separator) have been considered also for temporal graphs, where the paths to be removed have to be temporal, that is they have to satisfy a time constraint. Given a source s and a target z, the (s,z)-Temporal Cut problem asks for the minimum number of temporal edges that have to be removed so that s and z are disconnected, while (s,z)-Temporal Separator asks for the minimum number of vertices that have to be removed so that s and z are disconnected. (s,z)-Temporal Cut is known to be in solvable in polynomial timeΒ [2], (s,z)-Temporal Separator is known NP-hardΒ [12, 17], and its fixed-parameter tractability and approximability (and variants thereof) have been studiedΒ [7, 15, 8, 14, 11].

A variant of the (s,z)-Temporal Separator problem that has been considered inΒ [8] to model the robustness of transportation system, defines s and z as separated if the time needed to move from s to z is above a time threshold. The motivation is that if the time to move from s to z is increased considerably, then this makes the possibility of moving from s to z unlikely. This is modeled inΒ [8] by defining the (s,z,β„“)-Temporal Separator problem, that asks for a smallest subset of vertices whose removal deletes each temporal path that takes at most time β„“ between s and z. Several results have been given for (s,z,β„“)-Temporal Separator inΒ [8]. The (s,z,β„“)-Temporal Separator problem is NP-hard when β„“=1 and the temporal graph is defined over (at least) two timestamps. On the other hand, the problem is solvable in polynomial time when the underlying graph is a tree (after deleting s and z), or it has branchwidth at most two. As for the approximation complexity, it is shown to be not approximable within factor Ω⁒(ln⁑|V|+ln⁑τ) assuming that NPβŠ„DTIME(|V|log⁑log⁑|V|) (V is the set of vertices of the temporal graph, Ο„ the number of timestamps); moreover, a Ο„2-approximation algorithm is presented (also a Ο„-approximation algorithm for (s,z)-Temporal Separator). Finally, it is shown that solving (s,z,β„“)-Temporal Separator when the underlying graph has bounded pathwidth is at least as difficult as solving a problem called Discrete Segment Covering, whose complexity is unsolvedΒ  [1]. In SectionΒ 3, we settle the status of (s,z,β„“)-Temporal Separator on graphs of bounded pathwidth: we show that the decision version of problem is NP-hard even with β„“=1 and when the underlying graph has pathwidth at most 4, and we give a polynomial-time algorithm when the pathwidth is at most 3. Then in SectionΒ 4, we show that (s,z,β„“)-Temporal Separator cannot be approximated within factor 2Ω⁒(log1βˆ’Ξ΅β‘|V|) for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P and we present an β„“βˆ’1-approximation algorithm for the strict variant of (s,z,β„“)-Temporal Separator111In the strict variant a temporal path must uses temporal edges with increasing timestamps. We show also that improving this factor is a challenging problem, since the strict variant of (s,z,β„“)-Temporal Separator is hard to approximate as Vertex Cover k-Uniform Hypergraph, where k=β„“βˆ’1. In SectionΒ 5, we consider the (s,z,β„“)-Temporal Cut problem and we show that it is APX-hard, which contrasts with the polynomial-time solvability of the problem when deadlines are not considered, and we present a 2⁒log2⁑(2⁒ℓ)-approximation algorithm. In SectionΒ 2 we give some definitions and we formally define the two problems we are interested into. Some of the proofs are omitted due to space constraint.

2 Preliminaries

For an integer n, we use the notation [n]={1,2,…,n}. A temporal graph G=(V,E,Ο„) is defined over a set V of vertices and a set EβŠ†VΓ—VΓ—[Ο„] of temporal edges, where Ο„βˆˆβ„•. An undirected edge in a temporal graph is then a triple (u,v,t), where u,v∈V and t∈[Ο„] is a timestamp222As in [8] we assume that (u,v,t) is a temporal edge of G if and only if (v,u,t) is a temporal edge of G.. Note that we denote by u⁒v an edge in an undirected (static) graph and (u,v) an arc in a directed (static) graph.

We say that u,v are neighbors in G if they share some temporal edge, and denote the set of neighbors of u by NG⁒(u) (we drop the subscript if it is clear from the context). Given a set Vβ€²βŠ†V, we denote by G⁒[Vβ€²] the subgraph induced by Vβ€², which contains vertex set Vβ€² and every temporal edge whose two endpoints are in Vβ€². We also denote by Gβˆ’Vβ€²=G⁒[Vβˆ–Vβ€²] the temporal graph obtained by removing each vertex in Vβ€². Given a set Eβ€²βŠ†E, we denote by Gβˆ’Eβ€² the temporal graph obtained by removing each temporal edge in Eβ€².

An interval [t1,t2], with t1,t2∈[Ο„] and t1≀t2, is the sequence of consecutive timestamps between t1 and t2, including t1 and t2. Given interval [t1,t2], G⁒([t1,t2]) is the temporal subgraph of G that has temporal edges having timestamps in [t1,t2].

A temporal path P in a temporal graph G is a sequence of temporal edges such that

P=[(u1,v1,t1),(u2,v2,t2),…,(uh,vh,th)],

with vi=ui+1 and ti≀ti+1, for each i∈[hβˆ’1], and uiβ‰ uj, viβ‰ vj, for each i,j∈[h] with iβ‰ j; P is called an (u1,v1)-temporal path, since it starts from vertex u1 and ends in vertex vh. If ti<ti+1, with i∈[hβˆ’1], then the temporal path is strict. Given two vertices s and z Given a temporal path P=[(u1,v1,t1),(u2,v2,t2),…,(uh,vh,th)], the travelling time t⁒t⁒(P) of P is defined as t⁒t⁒(P)=thβˆ’t1+1. The set of vertices of a temporal path P is denoted by V⁒(P). We may refer to a temporal path of travelling time at most β„“ as an β„“-temporal path. Two temporal paths are temporal edge disjoint if they don’t share any temporal edge.

Given a temporal graph G=(V,E,Ο„), we assume that there are two special vertices s,z∈V, which are the source and the target vertex of G. A set Vβ€²βŠ†(Vβˆ–{s,z}) is an (s,z)-temporal separator ((s,z)-strict temporal separator, respectively) in G if there is no temporal path (strict temporal path, respectively) in G⁒[Vβˆ–Vβ€²] between s and z. Given β„“βˆˆ[Ο„], a set Vβ€²βŠ†(Vβˆ–{s,z}) is an (s,z,β„“)-temporal separator ((s,z,β„“)-strict temporal separator, respectively) in G if there is no temporal path (strict temporal path, respectively) between s and z in G⁒[Vβˆ–Vβ€²] of travelling time at most β„“.

A set Eβ€²βŠ†E of temporal edges is an (s,z)-temporal cut ((s,z)-strict temporal cut, respectively) in G if there is no temporal path (strict temporal path, respectively) in Gβˆ’Eβ€² between s and z. Given β„“βˆˆ[Ο„] a set Eβ€²βŠ†E is an (s,z,β„“)-temporal cut ((s,z,β„“)-strict temporal cut, respectively) in G if there is no temporal path (strict temporal path, respectively) in Gβˆ’Eβ€² between s and z of travelling time at most β„“.

Now, we are ready to define the combinatorial problems we are interested in. The first, introduced inΒ [8], is the following.

Problem 1 ((s,z,β„“)-Temporal Separator).
Input:

a temporal graph G=(V,E,Ο„), two vertices s,z∈V, a positive integer β„“βˆˆ[Ο„].

Output:

An (s,z,β„“)-temporal separator Vβ€²βŠ†(Vβˆ–{s,z}) in G of minimum size.

We denote by (s,z,β„“)-Strict Temporal Separator the variant of (s,z,β„“)-Temporal Separator where we look for an (s,z,β„“)-strict temporal separator.

We consider now the second problem we are interested into.

Problem 2 ((s,z,β„“)-Temporal Cut).
Input:

a temporal graph G=(V,E,Ο„), two vertices s,z∈V, a positive integer β„“βˆˆ[Ο„].

Output:

An (s,z,β„“)-temporal cut Eβ€²βŠ†E in G of minimum size.

Note that if β„“=Ο„, then (s,z,β„“)-Temporal Separator ((s,z,β„“)-Temporal Cut, respectively) is exactly the (s,z)-Temporal Separator problem (the (s,z)-Temporal Cut) problem, respectively) where we look for an (s,z)- temporal separator ((s,z)-temporal cut, respectively) in G.

3 Graphs of bounded pathwidth

Let us first recall the notion of pathwidth. A nice path decomposition of a graph G is a sequence of set of vertices (X1,…,Xq), with each XiβŠ†V⁒(G) referred to as a bag, such that all of the following holds:

  • β– 

    X1=Xq=βˆ…;

  • β– 

    for i∈{2,…,q}, either Xi=Xiβˆ’1βˆͺ{v}, with vβˆ‰Xiβˆ’1, in which case Xi is called an introduce bag; or Xi=Xiβˆ’1βˆ–{v}, with v∈Xiβˆ’1, in which case Xi is a forget bag.

  • β– 

    for every pair of vertices u and v that share an edge in G, some bag Xi contains both u and v (regardless of the time of the edge).

  • β– 

    for every vertex v∈V⁒(G), there are i,j∈[qβˆ’1] such that the set of bags that contain v is precisely Xi,Xi+1,…,Xj.

The width of the nice path decomposition is maxi∈[qβˆ’1]⁑(|Xi|βˆ’1). The pathwidth of G is the minimum width of a nice path decomposition of G.

Figure 1: Top left: main structure of the reduction: there is a vertex-chossing phase leading to paths to r, followed by an edge vertification phase (note, not all edges are shown). Middle: a Vi gadget, with tg⁒r⁒e⁒e⁒n edges in green, tr⁒e⁒d edges in red, and tu edges in blue. Right: an edge gadget for e=u⁒v, with tg⁒r⁒e⁒e⁒n edges in green and tu,tv edges in blue.

We show that (s,z,β„“)-Temporal Separator is NP-hard even on graphs of pathwidth 4 and when β„“=1. Our reduction is from the Multicolored Independent Set problem, where we are given a (static) graph G and a partition {V1,…,Vk} of V⁒(G) into k sets. The Vi sets are called color classes. The question is whether there is an independent set I of G such that |I∩Vi|=1 for each i∈[k], that is, we must choose one vertex per color class to form an independent set. Note that this problem is typically used to prove W[1]-hardness, but it is also NP-hardΒ [6]333Note that the problem considered inΒ [6], Multicolored Clique, is equivalent to Multicolored Independent Set if we consider complementary relations (edges and no edges) between vertices of different color classes of the input graph..

Let G be an instance of Multicolored Independent Set, with vertex partition V1,…,Vk. We assume, without loss of generality, that |Vi|=n for every i∈[k].

Let us construct from G an instance of the (s,z,β„“)-Temporal Separator problem consisting of temporal graph H, vertices s and z to separate, and β„“=1. In the construction, we assign to temporal edges of H a time in the set T={tg⁒r⁒e⁒e⁒n,tr⁒e⁒d}βˆͺ{tu:u∈V⁒(G)}, with the understanding that all elements of T correspond to a distinct integer. Since β„“=1, one can view the temporal edges as being colored by an element of T and the problem as having to destroy all monochromatic paths – so the subscripts of the elements of T can be seen as colors. So from G, first add to V⁒(H) the vertices s,z, and a new vertex r. We then have vertex-choosing gadgets and edge-verification gadgets (see FigureΒ 1 for an illustration).

Vertex-choosing gadgets.

For each i∈[k], build a gadget for Vi as follows. For every u∈Vi, add to H two vertices uβˆ’ and u+. Then add a temporal path at time tg⁒r⁒e⁒e⁒n from s to z formed by the temporal edges (s,uβˆ’,tg⁒r⁒e⁒e⁒n),(uβˆ’,u+,tg⁒r⁒e⁒e⁒n),(u+,z,tg⁒r⁒e⁒e⁒n). Also add a temporal path at time tu from s to r formed by the temporal edges (s,u+,tu),(u+,r,tu).

To complete the gadget, add a new vertex pi, then add temporal edges so that there is a path with a time of tr⁒e⁒d from s to z that first goes through pi, then through all the uβˆ’ vertices exactly once. More precisely, denote Vi={u1,…,un}, where the ordering is arbitrary. Then, add the temporal edges (s,pi,tr⁒e⁒d),(pi,u1βˆ’,tr⁒e⁒d) and (unβˆ’,z,tr⁒e⁒d), and for each h∈[nβˆ’1], add the temporal edge (uhβˆ’,uh+1βˆ’,tr⁒e⁒d).

Edge verification gadgets.

Next, we construct gadgets to verify that the chosen vertices correspond to an independent set of G. For each edge e=u⁒v of G, where u∈Vi and v∈Vj such that i<j, add to H two vertices wue and wve. Add a temporal path at time tg⁒r⁒e⁒e⁒n from s to z formed by the temporal edges (s,wue,tg⁒r⁒e⁒e⁒n),(wue,wve,tg⁒r⁒e⁒e⁒n), and (wve,z,tg⁒r⁒e⁒e⁒n), enforcing the deletion of at least one of the two vertices. Next, add a temporal path at time tu formed by the temporal edges (r,wue,tu),(wue,z,tu). Finally, add a new vertex qe and a temporal path at time tv going from r to z formed by the temporal edges (r,wve,tv),(wve,qe,tv),(qe,z,tv).

Lemma 1.

The graph H constructed from G as described above has pathwidth at most 4.

The idea is that we can get a path decomposition by putting s,z,r in every bag. Then, the Vi and the u⁒v gadgets are easy to construct using two extra vertices per bag. We next show that NP-hardness holds.

Lemma 2.

The graph G has a multicolored independent set if and only if H has an (s,z,1)-temporal separator of size |V⁒(G)|+|E⁒(G)|.

Proof sketch.

Let I={u1,…,uk} be a multicolored independent set of G, with each ui∈Vi. In H, in the Vi gadget, delete every u+ vertex, except ui+, and delete uiβˆ’ instead. This removes all the tg⁒r⁒e⁒e⁒n and the tr⁒e⁒d temporal paths, but s can reach r with a temporal path at time tui. Then for each edge e=u⁒v of G, in the u⁒v gadget, delete wue if s reaches r with time tu, and delete wve otherwise. This removes the tg⁒r⁒e⁒e⁒n temporal path, and since we delete at least one of u+ or v+, there remains no temporal path at time tu or tv going through the gadget.

Conversely, suppose there is an (s,z,1)-temporal separator in H of size |V⁒(G)|+|E⁒(G)|. The tg⁒r⁒e⁒e⁒n temporal paths enforce deleting, for each u∈V⁒(G), one of uβˆ’ or u+, and also for each e=u⁒v∈E⁒(G) one of wue or wve. There is no room for other deletions. Because of the tr⁒e⁒d temporal path in the Vi gadget, some uβˆ’ is deleted and some u+ is kept. Also, we cannot keep u+ and v+ from different Vi,Vj gadgets if u⁒v∈E⁒(G), as otherwise there will be a tu or tv temporal path going through the u⁒v gadget. Hence, the kept u+ vertices correspond to a multicolored independent set. β—€

Theorem 3.

The (s,z,β„“)-Temporal Separator problem is NP-hard, even with β„“=1 and on temporal graphs of pathwidth at most 4, and even if each edge is present in only one timestamp.

We mention that it should be possible to modify the proof to prove a similar hardness for the strict variant of the problem, for larger values of β„“, as it suffices to replace each label tg⁒r⁒e⁒e⁒n,tr⁒e⁒d,tu with time intervals that are far enough from each other. This modification requires a large value of β„“ as the red path in our construction traverses n+1 vertices, in addition to s and z. We leave the details for a future version, and the complexity of the strict variant for fixed pathwidth and β„“ remains open.

Graphs of pathwidth πŸ‘

Here we show that (s,z,β„“)-Temporal Separator can be solved in polynomial time on graphs of pathwidth 3, for any β„“, which shows that the above hardness is tight, assuming Pβ‰ N⁒P. Note that now, we allow temporal edges to have multiple activation times, and we allow them to be directed or not. Let G be a temporal graph. We first apply two reduction rules, which can easily seen to be safe, that is, a solution of size at most k exists in the temporal graph before the application of the rule if and only if it exists also after its application.

Rule 1.

If G has a vertex v such that (s,v,t)⁒(v,z,tβ€²) is an β„“-temporal path, then delete v.

Rule 2.

If Gβˆ’{s,z} has multiple connected components C1,C2,…,Cp, then solve each subgraph G⁒[C1βˆͺ{s,z}],…,G⁒[Cpβˆͺ{s,z}] separately.

We say that G is clean if none of the above rules is applicable to G. Note that for n=|V⁒(G)| and m=|E⁒(G)| (note that E⁒(G) is the set of temporal edges of G), one can determine in time O⁒(n+m) whether one of the rules applies, and each rule can be applied at most n times, and so a graph can be made clean in time O⁒(n2+n⁒m). Note, for RuleΒ 1 we assume that the time between the consecutive temporal arcs (s,v,t),(v,z,tβ€²) can be compared in constant time, and Rule 2 does not use arc times, so there is no time dependency on Ο„.

We now turn to (clean) graphs of pathwidth at most 3. We assume that we have checked that G has pathwidth at most 3 and we can compute a decomposition of G in O⁒(n) timeΒ [3]. The idea is to first check whether there is an (s,z)-separator of size at most 3 (so, a separator that ignores edge times). If there is one, then there is an (s,z,β„“)-temporal separator of size at most 3. In this case we can compute a solution by trying every combination of at most three vertices. If there is no such separator, we can rely on the structural lemma below, which is illustrated in FigureΒ 2. First, we can show that there is a sequence of bags that contain both s and z; this allows to find B, consisting of the vertices introduced and forgotten within this sequence. This B induces a caterpillar444Recall that a caterpillar is a tree in which there is a main path w1βˆ’β€¦βˆ’wk, and every vertex not on that path is a leaf adjacent to a vertex of the path. , as removing s and z from these bags yields a subgraph of pathwidth at most 2. The vertices other than s or z in bags that precede this sequence form A, and the vertex s or z introduced last has at most one neighbor in A (e.g., in FigureΒ 2, z has only y as a neighbor in A). Analogously, C contains vertices of bags that occur after the sequence.

Figure 2: An illustration of the structure described by LemmaΒ 4. The top part shows the temporal graph, the bottom part shows the bags that contain both s and z (the left and right areas represent A and C, and the middle box represents B).
Lemma 4.

Suppose that G is clean, has pathwidth at most 3, and has no (s,z)-separator of size 3 or less. Then in O⁒(n4⁒m) time we can compute a partition of V⁒(G)βˆ–{s,z} into three non-empty sets A,B,C such that all of the following holds:

  • β– 

    either s has at most one neighbor in A (resp. C), or z has at most one neighbor in A (resp. C).

  • β– 

    the subgraph induced by B is a caterpillar with main path w1βˆ’w2βˆ’β€¦βˆ’wk. Moreover, w1 is the only vertex of BβˆͺC whose neighborhood can intersect with A, and wk is the only vertex of BβˆͺA whose neighborhood can intersect with C.

One can infer from this structure that β€œmost” deletions occur on the caterpillar path.

Lemma 5.

Suppose that G is clean and that V⁒(G)βˆ–{s,z} can be partitioned into the sets A,B,C as in LemmaΒ 4. Then there exists a minimum (s,z,β„“)-temporal separator in which at most one vertex of A is deleted, at most one vertex of C is deleted, and all other deleted vertices are on the main path w1βˆ’β€¦βˆ’wk of the B caterpillar.

Algorithm 1 Main algorithm.

Our algorithm proceeds as follows. We first make G clean, possibly handling multiple connected components of Gβˆ’{s,z} separately, and construct the sets A,B,C from LemmaΒ 4. We then run AlgorithmΒ 1, which first guesses every way that a solution could delete at most one vertex from A and at most one vertex from C, noting that such a solution exists by LemmaΒ 5. There are O⁒(n2) possible guesses, and for each of them, we solve a restricted version of the problem where we can only delete vertices from the caterpillar B.

This is done by the e⁒x⁒t⁒e⁒n⁒d⁒S⁒e⁒p⁒a⁒r⁒a⁒t⁒o⁒r function, which attempts to extend the guess by finding the minimum number of deletions to do on the main B path w1βˆ’β€¦βˆ’wk, traversing it from left to right. When at a specific wi, we restrict the graph to G⁒[Wi]βˆ’D, where D contains the deletions made so far and Wi contains A, wi and the predecessors of wi, and their neighbors. In a greedy manner, we delete wi only if it creates a temporal path in this restricted graph, considering the deletions D applied so far. We can apply a greedy approach, since we can show that no vertex in N⁒(wi) is removed, if needed wi is removed instead. This ensures that there is no temporal path that goes through the wi’s in increasing order (possibly going in A as well), and we make one last check at the end to ensure that no temporal path goes through C and then on the path in the reverse order (if so, we delete wk to prevent that).

Theorem 6.

The (s,z,β„“)-Temporal Separator problem can be solved in time O⁒(n4⁒m) on graphs on pathwidth at most 3, where n=|V⁒(G)| and m=|E⁒(G)|.

Note that the above algorithm works for the strict variant of the problem. Indeed, the algorithm only needs to query whether a forbidden path exists, so it suffices to have access to a routine that determines whether a strict β„“-temporal path exists. Again we leave the details for a future version.

4 Approximation of (s,z,β„“)-Temporal Separator

4.1 Hardness of Approximation

In this section we strengthen the inapproximability of (s,z,β„“)-Strict Temporal Separator (and later we extend the inapproximability to (s,z,β„“)-Temporal Separator). We prove the result by giving an approximation preserving reduction from Directed Multicut to (s,z,β„“)-Strict Temporal Separator. Directed Multicut is known to be inapproximable within factor 2Ω⁒(log1βˆ’Ξ΅β‘|N|), for any constant Ξ΅>0, even for a directed acyclic graph with a set N of vertices, unless N⁒PβŠ†Z⁒P⁒PΒ [4]. We recall here that Directed Multicut (we consider it is defined on a directed acyclic graph).

Problem 3 (Directed Multicut).
Input:

given a directed acyclic graph D=(N,A), a set R of pairs (s1,z1),…,(sh,zh) of vertices, with si,zi∈N, i∈[h].

Output:

asks for a minimum cardinality subset Aβ€²βŠ†A so that each pair (si,zi), i∈[h], is disconnected in Dβˆ’Aβ€².

Note that we assume that, for each (si,zi)∈R, i∈[h], it holds that siβ‰ ti, otherwise the pair cannot be separated by edge removal. Given an instance (D,R) of Directed Multicut, the vertices that belong to a pair in R are called terminals; the set RS (RZ, respectively) contains those terminals v such that v=si and (si,zj)∈R (v=zj and (si,zj=v)∈R, respectively).

Consider an instance (D,R) of Directed Multicut, in the following we construct a corresponding instance of (s,z,β„“)-Strict Temporal Separator. We first present the idea of the construction. Essentially G contains |A|+1 copies of each vertex, plus one vertex for each arc in A, in addition to s and z. This ensures that only the vertices associated with arcs will be removed, as removing |A|+1 copies of each vertex of D requires to delete too many vertices. As for the temporal edges of G, for each arc from u to v in D, there is a path of length two, consisting of a temporal edge from the vertex associated with u to vertex associated with arc (u,v) and a temporal edge from the vertex associated with arc (u,v) to the vertex associated with v. Each vertex vi is associated with a interval of β„“ timestamps [β„“β‹…(2⁒iβˆ’2),β„“β‹…(2⁒iβˆ’1)βˆ’1]. The timestamps are assigned to temporal edges of G so that if there exists a path in D from vi to vj, then there exists a temporal path from two corresponding vertices of G, that is xi,q to xj,r, q,r∈[|A|+1], with timestamps in the interval [β„“β‹…(2⁒iβˆ’2),β„“β‹…(2⁒iβˆ’1)βˆ’1].

Now, we present the formal definition of the instance of (s,z,β„“)-Strict Temporal Separator. First, β„“=2⁒|N|. Given N={v1,…,v|N|}, since D is a DAG, we assume that the vertices of D are sorted according to a topological sorting of D, that is for (vi,vj)∈A, i,j∈[|N|], it holds that i<j. We define the set V of vertices:

V={xi,q:vi∈N,q∈[|A|+1]}βˆͺ{yi,j:(vi,vj)∈A,i<j}βˆͺ{s,z}.

Now, we define the set of temporal edges. For a vertex vi∈N, i∈[|N|], R⁒e⁒a⁒c⁒h⁒(D,vi) denotes the set of vertices that can be reached with a path that starts from vi in D.
E={(s,xi,q,β„“β‹…(2⁒iβˆ’2)):vi∈RS,q∈[|A|+1]}βˆͺ{(xj,q,z,β„“β‹…(2⁒iβˆ’1)βˆ’1):vj∈RZ,vj∈R⁒e⁒a⁒c⁒h⁒(D,vi),βˆƒ(vi,vj)∈R,q∈[|A|+1]}βˆͺ{(xi,q,yi,j,β„“β‹…(2⁒hβˆ’2)+2⁒iβˆ’1):vi∈N,vi∈R⁒e⁒a⁒c⁒h⁒(D,vh),(vi,vj)∈A,h∈[i],q∈[|A|+1]}βˆͺ{(yi,j,xj,q,β„“β‹…(2⁒hβˆ’2)+2⁒(jβˆ’1)):vj∈N,vj∈R⁒e⁒a⁒c⁒h⁒(D,vh),(vi,vj)∈A,h∈[i],q∈[|A|+1]}
Now, we prove the relations between Directed Multicut and (s,z,β„“)-Strict Temporal Separator.

Lemma 7.

Consider an instance (D,R) of Directed Multicut and a the instance (G,s,t,β„“) of (s,z,β„“)-Strict Temporal Separator, computed by the construction above. Then (1) given a solution Aβ€² of Directed Multicut on instance (D,R) consisting of k arcs we can compute in polynomial time a solution of (s,z,β„“)-Strict Temporal Separator on instance (G,s,t,β„“) consisting of k vertices; (2) given a solution of (s,z,β„“)-Strict Temporal Separator on instance (G,s,z,β„“) consisting of k vertices we can compute in polynomial time a solution Aβ€² of Directed Multicut on instance (D,R) consisting of most k arcs.

Proof sketch.

For (1), given a solution Aβ€² of Directed Multicut on instance (D,R) consisting of k arcs, we can compute in polynomial time a solution of (s,z,β„“)-Strict Temporal Separator on the corresponding instance (G,s,t,β„“) as follows: Vβ€²={yi,j:(vi,vj)∈Aβ€²}. Indeed, if G⁒[Vβˆ–Vβ€²] contains a strict temporal path p it must pass through two vertices xi,r,xj,r and there is a path between the corresponding vertices vi, vj of Dβˆ’Aβ€² such that (vi,vj)∈R. For (2), given a solution Vβ€² of (s,z,β„“)-Strict Temporal Separator on instance (G,s,t,β„“), where |Vβ€²|=k, first we can show that that there is a solution Vβˆ— of (s,z,β„“)-Strict Temporal Separator on instance (G,s,t,β„“), with |Vβˆ—|≀k, that contains only vertices yi,j. We can define a solution Aβ€² of Directed Multicut on instance (D,R) as follows Aβ€²={(vi,vj):yi,j∈Vβˆ—}. β—€

It follows from Lemma 7 that we have designed an approximation preserving reduction from Directed Multicut to (s,z,β„“)-Strict Temporal Separator. Since Directed Multicut is not approximable within factor 2Ω⁒(log1βˆ’Ξ΅β‘|N|), for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P [4], we have the following result.

Theorem 8.

The (s,z,β„“)-Strict Temporal Separator problem is 2Ω⁒(log1βˆ’Ξ΅β‘|V|)-hard to approximate for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P.

The same result holds also for (s,z,β„“)-Temporal Separator, we need to slightly modify the input temporal graph so that each β„“-temporal path is forced to be strict.

Corollary 9.

The (s,z,β„“)-Temporal Separator problem is 2Ω⁒(log1βˆ’Ξ΅β‘|V|)-hard to approximate for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P.

4.2 Approximating (s,z,β„“)-Strict Temporal Separator

We consider now the (s,z,β„“)-Strict Temporal Separator problem and we present an (β„“βˆ’1)-approximation algorithm for it. First, we prove the following easy claim.

Claim 10.

A strict β„“-temporal path between s and z contains at most β„“βˆ’1 vertices different from s and z.

Now, we present the approximation algorithm (AlgorithmΒ 2). The algorithm greedily looks for a strict β„“-temporal path P between s and z. If there exists such a P, AlgorithmΒ 2 removes all the vertices of P from G, except for s and z, and adds its vertices to the vertex separator Vβ€². If there exists no such path, then the algorithm stops and return Vβ€².

Algorithm 2 The approximation algorithm for (s,z,β„“)-Strict Temporal Separator.

AlgorithmΒ 2 has approximation factor β„“βˆ’1 since the β„“-temporal paths considered in each iteration are vertex-disjoint, thus any solution of (s,z,β„“)-Strict Temporal Separator contains at least one vertex for each of these temporal path.

Theorem 11.

Algorithm 2 is an (β„“βˆ’1)-approximation algorithm for (s,z,β„“)-Strict Temporal Separator.

Next, we prove that, using an approximation preserving reduction from Vertex Cover k-Uniform Hypergraph similar to the one presented inΒ [8] from Set Cover, improving this approximation factor is a challenging problem. In particular, Vertex Cover k-Uniform Hypergraph is not approximable within factor kβˆ’Ξ΅, for any positive constant Ξ΅, assuming the Unique Game ConjectureΒ [13].

Corollary 12.

(s,z,β„“)-Strict Temporal Separator is hard to approximate within factor (β„“βˆ’1)βˆ’Ξ΅, for any positive constant Ξ΅, assuming the Unique Game Conjecture.

5 Tractability and approximation of (s,z,β„“)-Temporal Cut

In this section we consider the (s,z,β„“)-Temporal Cut problem. First, we prove the APX-hardness of the problem, then we present a 2⁒log2⁑(2⁒ℓ)-approximation algorithm.

5.1 Hardness of (s,z,β„“)-Temporal Cut

We show the APX-hardness of (s,z,β„“)-Temporal Cut, by presenting an approximation preserving reduction from the Multiway Cut problem, which is APX-hardΒ [5]. In this latter problem, the input is an undirected graph G with kβ‰₯3 distinguished vertices v1,…,vk called terminals. The goal is to remove the minimum number of edges from G to cut all paths between terminals, that is, compute FβŠ†E⁒(G) of minimum size such that in Gβˆ’F there is no path between vi and vj for every distinct i,j∈[k].

Consider an instance (G,v1,…,vk) of Multiway Cut and construct a temporal graphΒ H as follows. First define β„“=kβˆ’1. We assume that some edges of H are undeletable. This can easily be achieved by replacing an undeletable edge (u,v,t) with a large number of parallel paths between u and v at time t. We construct H as follows. First, start with a copy of G in which every temporal edge is defined at time β„“, and every such temporal edge is deletable: for each u⁒v∈E⁒(G) we add (u,v,β„“) to H. Then add vertices s and z, and add the following undeletable edges:

(s,v1,1),(v1,z,β„“+1);(s,v2,2),(v2,z,β„“+2);…
(s,vkβˆ’1,kβˆ’1),(vkβˆ’1,z,β„“+kβˆ’1);(vk,z,β„“).

In other words we add (s,vi,i) and (vi,z,β„“+i) for i∈[kβˆ’1], and add (vk,z,β„“). Note that s is a neighbor of every vi except vk. Also observe that the edge (vkβˆ’1,z,β„“+kβˆ’1) is useless, but we include it to preserve the pattern.

Theorem 13.

The (s,z,β„“)-Temporal Cut problem is APX-hard, even for β„“=2.

Proof sketch.

Let FβŠ†E⁒(G) be a multiway cut of G, so that all viβˆ’vj paths are removed in Gβˆ’F. In H, remove the set Fβ€²={(u,v,β„“):u⁒v∈F}. Note that s needs to use two distinct vi and vj terminals to reach z, because it first needs to use some (s,vi,i) temporal edges, but cannot use the temporal edge (vi,z,i+β„“). But Fβ€² cuts any path between two terminals, so Fβ€² is a temporal cut of H.

Conversely, any temporal cut Fβ€²βŠ†E⁒(H) contains only deletable edges which are copied from G. Consider F={u⁒v∈E⁒(G):(u,v,β„“)∈Fβ€²}. A case analysis shows that if Gβˆ’F has a path between vi and vj, then Hβˆ’Fβ€² has an β„“-temporal path from s to z, going through vi then vj or vice-versa using that path. Thus F must be a multiway cut for G. β—€

Note for β„“=1, (s,z,β„“)-Temporal Cut is in P: the subgraphs that occur at different times can be treated independently, and thus β„“=1 can be solved by computing a minimum edge cut for each possible time.

Also note that unlike most of our previous results, there is no obvious extension of the above reduction to the the strict variant, where one must delete a minimum number of edges to remove all strict temporal paths of travel time at most β„“. We leave the complexity of latter as an open problem.

5.2 A 𝟐⁒π₯𝐨𝐠𝟐⁑(πŸβ’β„“)-Approximation for (s,z,β„“)-Temporal Cut

We present a 2⁒log2⁑(2⁒ℓ)-approximation algorithm for (s,z,β„“)-Temporal Cut. We start by recalling a generalization of Menger’s Theorem on temporal graphsΒ [2].

Theorem 14.

The maximum number of edge-disjoint (s,z)-temporal paths in a temporal graph G equals the size of a minimum temporal (s,z)-cut of G.

Also given a temporal graph G, it is possible to compute in polynomial time a minimum temporal (s,z)-cut of GΒ [2] and we denote such algorithm by πšƒπšŽπš–πš™π™²πšžπšβ’(G). We present now a result that will be useful to prove the approximation factor.

Lemma 15.

Given t∈[2,Ο„βˆ’1], consider temporal graph G⁒([t,t+β„“βˆ’1]) and let Etβ€² be an (s,z)-cut of G⁒([t,t+β„“βˆ’1]). Consider a temporal path p of G⁒([t+i,t+β„“+iβˆ’1])βˆ’Etβ€², for some i>0, and a temporal path pβ€² of G⁒([tβˆ’j,tβˆ’j+β„“βˆ’1])βˆ’Etβ€², for some j>0. Then p and pβ€² are temporal edge disjoint.

We describe now an algorithm that has approximation factor log2⁑τ, then we show how to use it to achieve approximation factor 2⁒log2⁑(2⁒ℓ). We assume for simplicity that β„“ is even.

Algorithm 3 log2⁑τ-approximation algorithm for (s,z,β„“)-Temporal Cut.

The algorithm is recursive: given an interval [a,b], at each step if the difference bβˆ’a is at least β„“βˆ’1, thus [a,b] contains at least β„“ timestamps, it defines a timestamp t that partitions in two (almost) equal parts the intervals of length β„“ contained in [a,b]. Then it computes a minimum temporal cut of G⁒[tβˆ’β„“/2,t+β„“/2βˆ’1] and recursively computes a solution on the first part of intervals and a solution on the second part of intervals (independently). Since the number of intervals of length β„“ is bounded by Ο„βˆ’β„“<Ο„, and each recursive call partitions in two equal parts this set of intervals, it follows that after log2⁑τ levels of recursion, the size of an interval is at most β„“, thus there can be at most log2⁑τ levels of recursion.

Denote by h the number of recursion levels and by wi the number of timestamps defined (as t in the pseudocode) at level i, i∈[h]. Denote by ti,j the j-th timestamp chosen by the algorithm at the i-th level of the recursion, i∈[h] and j∈[wi]. Now, consider an approximate solution Eβ€² and optimal solution O⁒p⁒t of (s,z,β„“)-Temporal Cut. We partition Eβ€² and O⁒p⁒t as follows. Given a timestamp ti,j, i∈[h] and j∈[wi], we denote by E′⁒(ti,j) the set of temporal edges added to Eβ€² by the approximation algorithm when it defines t=ti,j. By construction and by Lemma 15, the sets E′⁒(ti,j), i∈[h], j∈[wi], define a partition of Eβ€². Similarly, we define O⁒p⁒t⁒(ti,j), i∈[h], j∈[wi], as the set of temporal edges e∈O⁒p⁒t such that (1) there is an β„“-temporal path in G⁒([ti,jβˆ’β„“/2,ti,j+β„“/2βˆ’1]) from s to z that contains e and (2) e does not belong to any O⁒p⁒t⁒(tr,q), with r<i for some q∈[wr]. Note that by LemmaΒ 15 this is indeed a partition, and in particular for each i∈[h] it holds that O⁒p⁒t⁒(ti,j)∩O⁒p⁒t⁒(ti,q)=βˆ… for each j,q∈[wi] and jβ‰ q.

Since each temporal edge e∈O⁒p⁒t belongs to exactly one set O⁒p⁒t⁒(ti,j) and since O⁒p⁒t⁒(ti,j)∩O⁒p⁒t⁒(ti,q)=βˆ…, for each j,q∈[wi], we have that

O⁒p⁒t=⋃i∈[h],j∈[wi]O⁒p⁒t⁒(ti,j)

and

|O⁒p⁒t|=βˆ‘i∈[h],j∈[wi]|O⁒p⁒t⁒(ti,j)|.

Now, we prove the following result.

Lemma 16.

Consider E′⁒(ti,j), i∈[h], j∈[wi], the set of temporal edges cut by AlgorithmΒ 3 when it defines t=ti,j. For each level i∈[h] of the recursion, it holds that

βˆ‘j∈[wi]|E′⁒(ti,j)|β‰€βˆ‘j∈[wi]|O⁒p⁒t⁒(ti,j)|+βˆ‘r∈[h]:r<i,q∈[wr]|O⁒p⁒t⁒(tr,q)|.

Based on the previous lemma, since the number of recursion levels is bounded by log2⁑τ, we can prove the following.

Theorem 17.

Algorithm 3 returns an (s,z,β„“)-temporal cut of size at most log2⁑τ⋅O⁒p⁒t.

Next we prove that the previous approximation algorithm can be used to obtain an approximation algorithm of factor 2⁒log2⁑(2⁒ℓ) for (s,z,β„“)-Temporal Cut. We assume that Ο„ is a multiple of 2⁒ℓ (if not, increase Ο„ to the next multiple of 2⁒ℓ, with no temporal edges existing in the extra times appended). Consider the time domain [1,Ο„] and computes the following sets of disjoint intervals of [1,Ο„]:

  • β– 

    P1={[1,2⁒ℓ],[2⁒ℓ+1,4⁒ℓ],…,[Ο„βˆ’2⁒ℓ+1,Ο„]};

  • β– 

    P2={[β„“,3⁒ℓ],[3⁒ℓ+1,5⁒ℓ],…,[Ο„βˆ’3⁒ℓ,Ο„βˆ’β„“]}.

Each interval of length β„“ is contained in at least one element of P1 or P2. and, moreover, two graphs defined on distinct intervals of a set Pi are temporal edge disjoint. Recall that G⁒(I) is the temporal graph defined on interval I.

Lemma 18.

Consider the sets P1 and P2, then (1) for each I=[t,t+β„“βˆ’1] of length β„“, there is an interval of P1 or P2 that contains it; (2) Given I and Iβ€² be two distinct interval of Pi, then a temporal path of G⁒(I) and a temporal path of G⁒(Iβ€²) are temporal edge disjoint.

Now, we run Algorithm 3 on each G⁒(I), with I∈Pi and we compute a feasible solution since by Lemma 18 each interval I of length β„“ is contained in an interval of P1 or P2. The 2⁒log2⁑(2⁒ℓ)-approximation factor is due to the fact that each interval I has length 2⁒ℓ and we approximate each with a factor of log2⁑(2⁒ℓ). Then by Lemma 18 two intervals I and Iβ€² of Pi, are temporal edge disjoint, thus each temporal edge removed by an optimal solution belongs to at most one interval of P1 and at most one interval of P2. Because we remove edges from both the intervals in P1 and P2, our approximation factor is multiplied by two.

Corollary 19.

(s,z,β„“)-Temporal Cut admits a 2⁒log2⁑(2⁒ℓ)-approximation algorithm.

6 Conclusion

We have studied (s,z,β„“)-Temporal Separator and (s,z,β„“)-Temporal Cut, two variants of the vertex separator and the edge cut problem in temporal graphs. We have shown that (s,z,β„“)-Temporal Separator is NP-hard even when the underlying graph has pathwidth bounded by four and it can be solved in polynomial time for graphs of pathwidth bounded by three. We have shown that (s,z,β„“)-Temporal Separator cannot be approximated within factor 2Ω⁒(log1βˆ’Ξ΅β‘|V|) for any constant Ξ΅>0, unless N⁒PβŠ†Z⁒P⁒P, and that the strict version is approximable within factor β„“βˆ’1; moreover, we have shown that it is unliklely that this factor can be improved. Finally, We have shown that (s,z,β„“)-Temporal Cut is APX-hard and that it is approximable within factor 2⁒log2⁑(2⁒ℓ).

We conclude the paper with a few open problems:

  • β– 

    Is the (s,z,β„“)-Temporal Separator problem NP-hard on graphs of treewidth at most three?

  • β– 

    Is there a O⁒(β„“)-approximation for (s,z,β„“)-Temporal Separator (non strict variant)?

  • β– 

    Is there a O⁒(1)-approximation for the (s,z,β„“)-Temporal Cut problem?

  • β– 

    Is the strict variant of the (s,z,β„“)-Temporal Cut NP-hard?

References

  • [1] Dan Bergren, Eduard Eiben, Robert Ganian, and Iyad Kanj. On covering segments with unit intervals. SIAM J. Discret. Math., 36(2):1200–1230, 2022. doi:10.1137/20M1336412.
  • [2] KennethΒ A. Berman. Vulnerability of scheduled networks and a generalization of menger’s theorem. Networks, 28(3):125–134, 1996. doi:10.1002/(SICI)1097-0037(199610)28:3\%3C125::AID-NET1\%3E3.0.CO;2-P.
  • [3] HansΒ L Bodlaender and Ton Kloks. Efficient and constructive algorithms for the pathwidth and treewidth of graphs. Journal of Algorithms, 21(2):358–402, 1996. doi:10.1006/JAGM.1996.0049.
  • [4] Julia Chuzhoy and Sanjeev Khanna. Polynomial flow-cut gaps and hardness of directed cut problems. J. ACM, 56(2):6:1–6:28, 2009. doi:10.1145/1502793.1502795.
  • [5] Elias Dahlhaus, DavidΒ S Johnson, ChristosΒ H Papadimitriou, PaulΒ D Seymour, and Mihalis Yannakakis. The complexity of multiway cuts. In Proceedings of the twenty-fourth annual ACM symposium on Theory of computing, pages 241–251, 1992.
  • [6] MichaelΒ R Fellows, Danny Hermelin, Frances Rosamond, and StΓ©phane Vialette. On the parameterized complexity of multiple-interval graph problems. Theoretical computer science, 410(1):53–61, 2009. doi:10.1016/J.TCS.2008.09.065.
  • [7] Till Fluschnik, Hendrik Molter, Rolf Niedermeier, Malte Renken, and Philipp Zschoche. Temporal graph classes: A view through temporal separators. Theor. Comput. Sci., 806:197–218, 2020. doi:10.1016/J.TCS.2019.03.031.
  • [8] HovhannesΒ A. Harutyunyan, Kamran Koupayi, and Denis Pankratov. Temporal separators with deadlines. In Satoru Iwata and Naonori Kakimura, editors, 34th International Symposium on Algorithms and Computation, ISAAC 2023, December 3-6, 2023, Kyoto, Japan, volume 283 of LIPIcs, pages 38:1–38:19. Schloss Dagstuhl – Leibniz-Zentrum fΓΌr Informatik, 2023. doi:10.4230/LIPICS.ISAAC.2023.38.
  • [9] Petter Holme. Modern temporal network theory: a colloquium. The European Physical Journal B, 88(9):234, 2015.
  • [10] MohammadΒ Mehdi Hosseinzadeh, Mario Cannataro, PietroΒ Hiram Guzzi, and Riccardo Dondi. Temporal networks in biology and medicine: a survey on models, algorithms, and tools. Netw. Model. Anal. Health Informatics Bioinform., 12(1):10, 2023. doi:10.1007/S13721-022-00406-X.
  • [11] Allen Ibiapina and Ana Silva. Mengerian graphs: Characterization and recognition. J. Comput. Syst. Sci., 139:103467, 2024. doi:10.1016/J.JCSS.2023.103467.
  • [12] David Kempe, JonΒ M. Kleinberg, and Amit Kumar. Connectivity and inference problems for temporal networks. J. Comput. Syst. Sci., 64(4):820–842, 2002. doi:10.1006/jcss.2002.1829.
  • [13] Subhash Khot and Oded Regev. Vertex cover might be hard to approximate to within 2- Ξ΅. Journal of Computer and System Sciences, 74(3):335–349, 2008.
  • [14] Nina Klobas, GeorgeΒ B. Mertzios, Hendrik Molter, Rolf Niedermeier, and Philipp Zschoche. Interference-free walks in time: temporally disjoint paths. Auton. Agents Multi Agent Syst., 37(1):1, 2023. doi:10.1007/S10458-022-09583-5.
  • [15] Nicolas Maack, Hendrik Molter, Rolf Niedermeier, and Malte Renken. On finding separators in temporal split and permutation graphs. J. Comput. Syst. Sci., 135:1–14, 2023. doi:10.1016/J.JCSS.2023.01.004.
  • [16] Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Math., 12(4):239–280, 2016. doi:10.1080/15427951.2016.1177801.
  • [17] Philipp Zschoche, Till Fluschnik, Hendrik Molter, and Rolf Niedermeier. The complexity of finding small separators in temporal graphs. J. Comput. Syst. Sci., 107:72–92, 2020. doi:10.1016/J.JCSS.2019.07.006.