Robust Temporal Cut
Abstract
In this paper we introduce the Robust Temporal Cut problem (RTC) defined as follows: For a given temporal graph with designated source node and destination node , and parameters and , remove a minimum number of time edges so that, even if an adversary can adjust the time labels of up to of the remaining time edges by adding or subtracting values bounded by , no temporal - path exists. We study the classical and parameterized complexity of RTC. In particular, we show for both strict and non-strict temporal paths that RTC is NP-complete for any combination of and and -hard for parameter solution size or vertex interval membership width plus pathwidth of the underlying graph. Furthermore, we give approximation algorithms and FPT algorithms for parameters including temporal neighborhood diversity plus solution size, timed vertex cover size, and vertex cover size of the underlying graph plus solution size.
Keywords and phrases:
temporal graphs, minimum cut, parameterized complexity, FPT algorithmsFunding:
Nils Morawietz: Supported by the French ANR, project ANR-22-CE48-0001 (TEMPOGRAL).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithmsAcknowledgements:
The authors would like to thank David C. Kutner for helpful discussions regarding the design of an FPT algorithm with respect to temporal neighborhood diversity.Editors:
George B. Mertzios and Andréa W. RichaSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The minimum - cut problem is a classical combinatorial optimization problem that can be solved in polynomial time [1]. It is concerned with removing a minimum number of edges (or edges of minimum total capacity) from a given graph so that no path from to remains. One way of defining a variant of this problem for temporal graphs, i.e., graphs whose edge set changes over time, is to ask for the removal of a minimum number of time edges so that no journey (time-respecting path) from to remains. The resulting temporal minimum - cut problem can be solved in polynomial time by reducing it to a standard minimum - cut problem in the time-expansion of the temporal graph [2].
We are interested in a setting where the time labels of some time edges of the given temporal graph may not be fully accurate. This could be either due to unforeseen events (e.g., train delays) or due to an adversary that has the power to adjust the time labels of some edges. We assume that there are positive integers and that bound the number and magnitude of time label adjustments: The adversary can adjust the time labels of up to remaining time edges, and each adjustment is the addition or subtraction of an integer bounded by to/from the time label of the time edge. Then, it is interesting to study the problem of removing a minimum number of time edges from the given temporal graph so that, even after an adversary makes adjustments to the remaining time edges in the way mentioned above, there is no journey from to in the resulting temporal graph. We call the decision version of this problem the Robust Temporal Cut problem (RTC) and its minimization version the Minimum Robust Temporal Cut problem (MinRTC).
Our Contribution.
In this paper, we introduce and study the classical and parameterized complexity of RTC. In Section 3, we show that RTC is NP-complete even if and . In other words, even if the adversary can only modify a single time edge by changing its time label by , RTC is NP-complete. We also show -hardness for the parameter solution size and for the parameter vertex interval membership width plus pathwidth. Then, in Section 4, we present FPT algorithms for several parameters: vertex cover number of the underlying graph plus solution size, timed vertex cover number, and temporal neighborhood diversity plus solution size. In Section 5, we consider approximation algorithms for MinRTC. We show that there is a -approximation algorithm for the case where is so large that the adversary can modify an arbitrary number of time labels and a -approximation algorithm for arbitrary and . Our results hold for directed and undirected temporal graphs, and regardless of whether strict or non-strict journeys are being considered. The proofs of statements marked with () have been omitted due to space restrictions.
Related Work.
Akrida et al. [2] study maximum temporal - flows and minimum temporal - cuts in temporal graphs. They show that a maximum - flow can be computed in polynomial time, even if the nodes have finite buffer capacities, either by solving a linear program or by computing a standard maximum flow in the time-expanded network. For the case that the nodes have infinite buffers, they show that the capacity of a minimum temporal - cut (the sum of the capacities of the time edges in the cut) equals the value of a maximum temporal - flow, and both can be computed in polynomial time by running a standard maximum flow or minimum cut algorithm in the time-expanded network. In this paper, we generalize the notion of minimum temporal - cuts to the robust setting where an adversary can change the time labels of some edges.
Zschoche et al. [17] study the problem of finding a smallest - separator in a temporal graph, i.e., a smallest set of vertices of the underlying graph whose removal destroys all - journeys. They assume that all time labels are positive integers and show that the problem is NP-hard except when the lifetime of the given temporal graph is very small (at most for strict paths and at most for non-strict paths). They also consider the case that the underlying graph is planar or the temporal core has constant size. Fluschnik et al. [11] show that the problem is polynomial if the underlying graph has bounded treewidth but NP-hard for various other restrictions on the underlying graph. Other questions in relation to temporal cuts and disjoint temporal paths have also been studied, see e.g. [5, 14, 15].
Settings where time labels of the given temporal graph can be modified have recently been studied by several authors: Füchsle et al. [12] consider the problem of identifying a temporal - path that remains a journey even if an adversary changes up to time labels or traversal times by up to . They show that the problem is NP-hard and present W[1]-hardness results and FPT algorithms for different parameters. Enright et al. [10] study reachability questions in this setting. In particular, they show that the following problem is NP-complete: Given a temporal graph and positive integers , is it possible to change the time labels of at most time edges by adding a value in the range in such a way that the resulting temporal graph has a vertex that can reach at least vertices via temporal paths? Kutner and Sommer [16] consider a temporal graph given together with a number of passenger requests (specifying start vertex, end vertex, and desired arrival time) and study the problem of deciding whether it is possible to delay some time edges by at most in such a way that all passenger requests can be satisfied. They show that the problem is polynomial if the underlying graph is a tree but NP-hard in general.
A problem in static graphs that turns out to be related to the RTC problem is Length-Bounded Cut: Given a graph with designated source and destination as well as a length bound , remove a minimum number of edges (or vertices) so that the resulting graph has no - path of length at most . Baier et al. [3] show that the problem is NP-hard and APX-hard for for edge cuts and for for vertex cuts, no matter whether is directed or undirected. Golovach and Thilikos [13] study the parameterized complexity of Length-Bounded Cut problems. They show parameterized hardness for the parameter (the size of the cut) and give an FPT algorithm in the parameter ; their results apply to both directed and undirected graphs. Additionally, Dvořák and Knop [8] show W[1]-hardness with respect to the pathwidth of the (undirected) input graph. We adapt the hardness results for Length-Bounded Cut from [3, 13, 8] to derive hardness results for RTC.
2 Preliminaries
Consider a temporal graph with underlying graph . We denote by the number of vertices of . If an edge is present at time , we call a time edge and refer to the integer as its time label. We use to denote the set of time edges of , and we write to make this explicit. Alternatively, we can consider a labeling function that assigns to each edge the set of time steps during which it is present and write . The lifetime of is defined as the length of the unique smallest interval that contains all time labels used by . We often write for if the temporal graph is clear from the context. If the smallest assigned time label is then the largest assigned time label is equal to the lifetime .
For a subset , we use to denote the temporal graph with the same vertex set as whose set of time edges is .
Let . A non-strict journey (or non-strict temporal path) from to is a sequence of time edges such that is a path from to in and . For a strict journey (or strict temporal path) from to , the latter condition is changed to .
Let and be non-negative integers. A -modification of a time edge is a time edge with . In other words, changing the time step during which a time edge is present by adding or subtracting an integer bounded by gives a -modification of the time edge.
Definition 1.
For a temporal graph , a temporal graph on the same vertex set is a -modification if is identical to except for replacing up to time edges by -modifications of those time edges.
Note that the time labels of a -modification of lie in the range from to if those of lie in the range from to .
Definition 2.
A temporal graph with is -safe if no -modification of contains a journey from to .
We may consider the journeys in Definition 2 in a strict or non-strict setting, and a temporal graph might be -safe with respect to strict journeys but not -safe with respect to non-strict journeys. It will always be clear from the context whether we consider strict or non-strict journeys when we refer to the property of being -safe.
We study the problem of making a temporal graph -safe by removing a minimum number of time edges. The decision version of this problem can be stated as follows:
Robust Temporal Cut (RTC)
Input: A temporal graph , vertices , and non-negative integers , , and .
Question: Does there exist a set of at most time edges of such that is -safe?
An instance of RTC is specified by a tuple and we refer to as the solution size. A set with the property that is -safe is called a robust cutset. In the minimization version of RTC, denoted by MinRTC, the goal is to compute a robust cutset of minimum cardinality. An instance of MinRTC is given by a tuple .
We can consider RTC or MinRTC for undirected or directed temporal graphs and for strict or non-strict journeys. All our lemmas and theorems apply to all four variants of RTC or MinRTC unless specified otherwise.
For ease of presentation, we assume throughout that the size of the representation of a temporal graph on vertices with lifetime is between and . In the following lemma, we show that we can assume that the values of and do not exceed specific values.
Lemma 3 ().
Let be an instance of RTC and let and be the lifetime of and the number of vertices, respectively. Then, is a yes-instance of RTC if and only if is a yes-instance of RTC with , and .
Consequently, we can assume that is bounded by a polynomial in the size of the input. Next, we consider the subproblem of deciding whether a given temporal graph is -safe.
Lemma 4.
There is a polynomial-time algorithm for deciding if a given temporal graph with source node and destination node is -safe. If it is not -safe, the algorithm outputs a sequence of time edges that can be turned into an - journey via a -modification.
Proof.
Assume that the time labels of lie in . Construct a dynamic programming table with entries for , , and . At the end of the computation, an entry has value if can be reached before time by a journey from that contains at most -modified time edges, and value otherwise.
First, consider the case of directed temporal graphs and strict temporal paths. We initialize for all and and set all other entries to . In each round, we update the table entries as follows:
-
For every time edge and every with such that , set for all with . This update corresponds to using a journey containing up to -modified time edges to reach before time and then following the time edge .
-
For every time edge and every with and every with such that , set for all with . This update corresponds to using a journey containing -modified time edges to reach before time and then following the -modified time edge .
As no journey can consist of more than time edges, the entries of are correct after at most rounds. The input is -safe if and only if for all .
If for some , a sequence of time edges that can be turned, by a -modification, into an - journey can be determined using traceback.
The proof for undirected temporal graphs and/or non-strict journeys is similar.
Lemma 4 implies that RTC is contained in NP. Therefore, all problem variants that we prove to be NP-hard in the remainder of this paper are in fact NP-complete.
An FPT algorithm for a decision problem parameterized by a parameter is an algorithm that solves the problem in time, where is a computable function and denotes the size of the input. Showing a parameterized problem to be W[1]-hard is considered strong evidence that the problem does not admit an FPT algorithm. We refer to standard textbooks (e.g., [7]) for further information on parameterized complexity.
An algorithm for a minimization problem is a -approximation algorithm if it runs in polynomial time and always outputs a solution whose objective value is at most a factor of larger than that of the optimal solution.
Relevant (Temporal) Graph Parameters.
A path decomposition [7] of an undirected graph is a sequence of bags such that:
-
for each , ,
-
for each edge , there is at least one index , such that , and
-
for each vertex , the subsequence of bags that contain is consecutive, that is, for each with and .
The width of a path decomposition is defined as the size of the largest bag minus one, that is, . The pathwidth of a graph is the minimum width of any path decomposition of .
A vertex cover of an undirected graph is a set of vertices, such that for each edge , at least one endpoint is in , that is, . The vertex cover number of is the size of the smallest vertex cover of .
For an undirected temporal graph with time labels in , a pair of a vertex and a time step with is called a time vertex. A timed vertex cover of is a set of time vertices with the property that for every time edge , either or . Note that this requires at least one time vertex from each time step at which there are active edges, and so the size of a timed vertex cover is typically lower bounded by the lifetime of a temporal graph. The timed vertex cover number of a temporal graph is the size of a smallest timed vertex cover. It is equal to the sum of the vertex cover numbers of the graphs present in each time step of .
Let be a temporal graph of lifetime . For each vertex , we define the activity interval of as the interval of time steps , where and are the first and last time steps respectively in which has an incident time edge. The vertex-interval-membership width (vim width) [6] of is the size of a largest set of vertices , such that all of them are active at some common time step, that is, .
The timed neighborhood of a vertex in an undirected temporal graph is defined as the set . For a set with , the timed neighborhood of outside is defined as the set .
For a vertex in an undirected temporal graph with lifetime , the (open) neighborhood of at time is . The temporal neighborhood diversity [9] of is defined as the minimum number of parts in a partition of for which every part satisfies the following property: At every time , for all . In other words, all vertices in have the same timed neighborhood outside , and the subgraph induced by is either a clique or an independent set in each time step. The temporal neighborhood diversity of can be computed in polynomial time [9].
3 Complexity Lower-Bounds for RTC
Before showing hardness results, we note that the special case of RTC with or is the problem of removing a minimum number of time edges so that the resulting temporal graph has no journey from to . This problem can be solved in polynomial time by constructing the time-expanded network of and solving a standard minimum - cut problem in it [2].
We obtain our hardness results from Length-Bounded Cut [3] which is sometimes also called Shortest Path Most Vital Edges [4]. Our reductions either directly reduce from Length-Bounded Cut or use an adaptation of a construction that was used to show hardness of Length-Bounded Cut.
Length-Bounded Cut
Input: An (un)directed graph , two distinct vertices and of , and positive integers and .111To avoid confusion with parameter of RTC, we deviate from the literature, which usually used identifier for the integer parameter instead.
Question: Does there exist a set of at most edges such that there is no path of length at most from to in ?
Note that there is a close relation between the tasks of both RTC and Length-Bounded Cut: In both problems, we want to remove (time-)edges to ensure that cannot reach over constrained paths in the resulting (temporal) graph. This allows us to exploit hardness results and gadgets used for Length-Bounded Cut also for RTC.
First, observe the following very simple general reduction:
The Natural Extension Reduction.
Let be an instance of Length-Bounded Cut. Let be the graph obtained by
-
adding a new vertex to and
-
connecting with by vertex-disjoint paths of length with new vertices.
We call the natural extension of .
Now, consider any edge labeling that assigns one label per edge of such that
-
1.
no edge receives a label in ,
-
2.
for each path , the labels of the edges are strictly increasing going from to , and
-
3.
all labels assigned to any other edge (that is, the edges of ), are larger than any label assigned to any edge of any .
We call such a labeling a natural extension labeling of .
Lemma 5.
Let be an instance of Length-Bounded Cut and let be the natural extension of . Then, for each natural extension labeling of , is a yes-instance of Length-Bounded Cut if and only if is a yes-instance of RTC.
Note that can be assumed to be at most plus the largest label assigned by due to Lemma 3, so that we in fact have an integer value for .
Proof.
Let be a set of at most edges such that there is no path of length at most from to in . Then, as each edge only receives a single label under , we can remove all occurrences of all edges of in by removing at most time edges. Let be the resulting temporal graph. We show that is -safe. Assume towards a contradiction that there is a -modification of that contains an --journey . By construction, each path from to in starts with a path from to in and ends with a path . In particular, this implies that in , there is a temporal --path that can be decomposed like this. As each path has length at least , at least one edge of was not modified. Since each label assigned to any edge of is larger than each label assigned to edges of , this implies that all edges of the path from to were modified. This, however, contradicts the fact that there is no path of length at most from to in . Hence, is -safe.
Let be a set of at most time edges such that is -safe. Let . We show that there is no path of length at most from to in . Assume towards a contradiction that there is a path of length from to in . We denote the th edge of by . As there are more than edge-disjoint paths from to , one of these paths is completely part of . By definition of the natural extension labeling, the label of the first edge of is at least (Condition 1). Now, consider the modification of , where we change the label of edge of to for each . As and is sufficiently large, this is possible within the budget . Hence, in the resulting temporal graph, there is a temporal path from to that ends at time . Combining this path with the path , we obtain a temporal --path in the resulting temporal graph, which contradicts the fact that is -safe. As a consequence, we conclude that contains no path of length at most , which shows that is a yes-instance of Length-Bounded Cut.
Observe that it is immaterial in the arguments above whether we consider strict or non-strict journeys and that is directed or undirected depending on whether is a directed or undirected instance of Length-Bounded Cut. This reduction has several implications: First of all, we obtain hardness of RTC in general, as Length-Bounded Cut is NP-hard [3] and W[1]-hard when parameterized by (the number of edges to remove) [13].
Theorem 6.
RTC is NP-hard and W[1]-hard when parameterized by the solution size .
Moreover, as a natural extension labeling has nearly no restrictions on the labels of the edges of , we can use this to show hardness also when parameterized by interval-membership width parameters. This is due to the fact that Length-Bounded Cut is W[1]-hard when parameterized by the pathwidth of the graph [8], which has a natural relation to the vertex-interval-membership width .
Theorem 7.
Undirected RTC is W[1]-hard when parameterized by the vim width plus the pathwidth of the underlying graph.
Proof.
Let be an instance of Length-Bounded Cut. We show that there is a natural extension labeling that has a vim width bounded by a linear function in the pathwidth of the underlying graph. In the same argument, we will also show the bound on the pathwith of the natural extension.
Let be a path decomposition of the input graph of minimal width . We will use this path decomposition to define the natural extension labeling with a small vim width. To this end, we first define a sequence of vertex subsets , where , such that for each , contains (a superset of) all vertices for which . Here, is the activity interval of , that is, and are the smallest and largest label incident with vertex .
Note that immediately gives a path decomposition of the underlying graph. Each set will contain the vertices . The first sets will contain only the vertices and no edge will receive any label from , thus satisfying Condition 1 for a natural extension labeling. In the following sets, we will deal with the internal vertices from the paths . That is, , where is the th edge of path . Moreover, edge then receives label . No other set will contain an internal vertex of any of the paths . This ensures that Condition 2 for a natural extension labeling is satisfied.
It remains to deal with all edges of . To this end, recall that is a path decomposition of . We define as for each , and we assign label to all edges of that have not yet received a label. This implies that each edge of receives a label strictly larger than the largest label assigned to any edge of any path , which ensures that Condition 3 for a natural extension labeling is satisfied.
Hence, the resulting labeling is in fact a natural extension labeling, and the sets verify that both the pathwidth and the vim width of the temporal graph do not exceed . The W[1]-hardness for RTC for these parameters then follows by Lemma 5 and the fact that Length-Bounded Cut is W[1]-hard when parameterized by the pathwidth [8].
We can derive hardness results for constant values of by the natural extension reduction, but we will show a clear dichotomy for the values of and in the following by reducing from Vertex Cover. In these reductions, we adapt the gadget used by Baier et al. [3] to show hardness for Length-Bounded Cut.
Theorem 8.
RTC for strict journeys is NP-hard for and each . This holds for both directed and undirected temporal graphs. In the directed case, it holds even if the underlying graph is a DAG.
Proof.
First, consider directed temporal graphs. We give a reduction from Vertex Cover.
Vertex Cover
Input: A graph and an integer .
Question: Is there a vertex cover of size at most for ?
Let be an instance of Vertex Cover and let . Moreover, let be arbitrary. We construct an instance of RTC as follows (see Fig. 1 for an illustration). The underlying graph has the following vertices: a vertex , a vertex , vertices for every in , and vertices for every . The edge set contains the following edges: For each , it contains the directed edges ,, , and (referred to as the vertex path for ) as well as and (referred to as shortcuts of ). For every , it contains the directed edges and as well as and (referred to as cross paths between and ). Note that is a DAG. The vertex path of together with the shortcuts of is called the vertex gadget of .
The time labels of the edges on the vertex paths are set to and those of the cross paths to (in the order of the paths). The shortcut edges with tail have time label , and the shortcut edges with head have time label .
We claim that is a yes-instance of RTC if and only if is a yes-instance of Vertex Cover.
Let be a vertex cover of with size at most . Consider the set of time edges that contains for every the two shortcuts of and for every the time edge . has size . We claim that is a robust cutset. First, observe that the vertex gadget of every vertex is -safe: If , the gadget contains no - path in the underlying graph. If the two shortcuts of are in , the only - path in the gadget has three consecutive edges with time label , and thus replacing a single time edge by a -modification cannot create a strict - journey. The only potential journeys that do not lie inside a vertex gadget are journeys that start in one vertex gadget, then follow a cross path to another vertex gadget, and finally reach in that vertex gadget. Consider such a journey that starts in the vertex gadget of and ends in the vertex gadget of . A cross path between these two vertex gadgets exists only if . As is a vertex cover, at least one of and is in , and therefore contains the shortcuts of at least one of and . If contains the shortcuts of , the suffix of the last four edges of has labels , and again it is clear that replacing a single time edge by a -modification cannot create a strict journey. If contains the shortcuts of , the prefix of the first four edges of has labels , and again it is clear that replacing a single time edge by a -modification cannot create a strict journey. Therefore, is indeed a robust cutset of size at most , and hence is a yes-instance of RTC.
Let be a robust cutset of size at most . As the vertex gadget of every vertex contains a strict --journey via just the vertices and , it is clear that must contain at least one time edge from each of the vertex gadgets. If contains exactly one time edge from the vertex gadget for some vertex , that time edge must be : It cannot be a different time edge from the vertex path, as then the journey using the two shortcuts has not been cut; it cannot be any of the two shortcuts either, as then modifying the time label of to or would produce an - journey via the other shortcut.
If , it is impossible that contains only a single time edge from both the vertex gadget of and that of , because then it would have to contain and as argued above, and thus the journey via just the vertices , and would not be cut. Thus, must contain at least two time edges from one of the two vertex gadgets. If we define to be the set of all vertices for which contains at least two time edges of the vertex gadget for , is therefore a vertex cover. As and , we have , and hence is a yes-instance of Vertex Cover.
This completes the proof for directed temporal graphs. For undirected temporal graphs, we can use the same construction and simply replace directed edges by undirected edges. For the underlying graph of the resulting temporal graph, the - paths that lie inside one vertex gadget or follow a single cross path of the form or from one vertex gadget to another are isomorphic to those in the directed temporal graph discussed earlier. The additional - paths enabled by making all edges undirected either use a cross path in reverse direction or use two or more cross paths, and one can easily check that no such path can be turned into a journey by modifying the time label of a single edge. Hence, the analysis for directed temporal graphs works also for undirected temporal graphs.
Corollary 9.
RTC for strict journeys is NP-hard for any combination of constants and . This holds for both directed and undirected temporal graphs. In the directed case, it holds even if the underlying graph is a DAG.
Proof.
For and any , the result was proved in Theorem 8. Let . Let be an instance of RTC with . We construct a new instance of RTC with as follows: Shift all time labels of by adding . Then add a new source node and edge-disjoint parallel paths from to , each consisting of edges. We refer to these paths as the new paths. In each of these new paths, the -th edge is present in time step . For example, if , then a new paths consist of six edges present at time , respectively. The resulting temporal graph is . A cutset of size at most for cannot contain a time edge from each of the new paths, and hence can be assumed not to contain any time edge from some new path. Any of the new paths can be made a strict journey by subtracting from the time label of the -th edge for all odd . These are modifications, and it is not possible to turn any of the new paths into a strict journey with fewer modifications. Hence, for any subset of at most time edges of , we have that is -safe with respect to if and only if is -safe with respect to . As can be constructed in polynomial time, RTC is also NP-hard for and . The construction works for the directed and undirected case.
We now move to the non-strict case. The proof of the following theorem is similar to the proof of Theorem 8, but uses vertex gadgets and cross paths with the time labels illustrated in Figure 2 for . (For , the labels are multiplied with .)
Theorem 10 ().
RTC for non-strict journeys is NP-hard for and any . This holds for both directed and undirected temporal graphs. In the directed case, it holds even if the underlying graph is a DAG.
Corollary 11.
RTC for non-strict journeys is NP-hard for any combination of constants and . This holds for both directed and undirected temporal graphs. In the directed case, it holds even if the underlying graph is a DAG.
Proof.
The proof is similar to the proof of Corollary 9, but the time label of the -th edge of a new path is now set to if is odd and if is even. For example, if , the time labels of a new path are . Again, a new path can be turned into a non-strict journey with label modifications (e.g., subtracting one from the time label of the -th edge for odd ), but not with fewer label modifications. The remainder of the argument is then the same as in the proof of Corollary 9.
4 FPT Algorithms
Next we turn our attention to parameterized tractability, and consider three parameterizations: vertex cover number of the underlying graph plus solution size, timed vertex cover number, and temporal neighborhood diversity plus solution size. We consider undirected temporal graphs. The FPT algorithms we present work for both strict journeys and non-strict journeys.
4.1 Vertex Cover Number + Solution Size
If the underlying graph has a vertex cover of size , then any - path has length at most , as all paths must hit a member of the vertex cover at least every other vertex. Because this path length is bounded as a function of the parameter, we can use a bounded-search-tree approach to show that vertex cover number plus solution size suffices as a parameter: First, find a sequence of time edges originating at and finishing at that can be turned into an - journey with at most label adjustments (this can be done in polynomial time by Lemma 4). Then branch on the choice of time edge to remove, building this tree to depth of at most solution size. Thus:
Theorem 12.
There is an FPT algorithm for undirected RTC with vertex cover number of the underlying graph plus solution size as parameter.
The same approach works for any parameter with the property that the length of an - path in the underlying graph is bounded by a function of that parameter. Indeed, we will see a similar argument below for temporal neighborhood diversity.
4.2 Timed Vertex Cover Number
Recall that a timed vertex cover is a set of time vertices that hit all time edges. We now consider the size of a smallest timed vertex cover as a parameter.
The following lemma will be useful both for timed vertex cover and for temporal neighborhood diversity, and essentially argues that when there are temporal twins in an instance of RTC, they can be treated the same when forming a solution.
Lemma 13.
Let be an instance of undirected MinRTC and let be a set of vertices that all have the same timed neighborhood outside . There exists a robust cutset of minimum size with the following property: contains no time edges between vertices of , and for every vertex and time , contains either all time edges between and members of at time , or none of them.
Proof.
Recall that a temporal graph is -safe if it contains no --path even after modifying the labels of up to time edges by up to time steps each. We will argue that certain modifications to the temporal graph preserve the -safeness (they would not necessarily preserve the converse). First, observe that if a temporal graph is -safe, then it remains -safe after removing any vertex.
Next, we argue that if a temporal graph is -safe and is an arbitrary vertex, then adding to the graph a set of temporal twins of produces a -safe temporal graph, regardless of the timed adjacencies within this set of twins including : essentially, this is true because if any of the twins (say ) lay upon an - path that could be made temporal by modifying time edges by at most , then could also serve the same role in a path that differs only in replacing by , and thus the original temporal graph cannot have been -safe, a contradiction.
Now, let be a minimum robust cutset. Let be the vertex in such that the number of time edges in that are incident with and a vertex is minimum among all vertices in . Let be the set of time vertices with such that . Note that contains time edges between and and, by choice of , at least time edges between every other vertex of and . Change into by removing all time edges between vertices of and letting contain for every exactly the time edges in . Note that . Furthermore, can be obtained from by first removing all vertices in , then adding temporal twins of , and possibly adding some time edges between vertices of . If was not -safe, it would have to contain a sequence of time edges that can be turned into an - journey via a -modification. As all the vertices in have the same timed neighborhood outside in , can be assumed to contain at most one vertex from , and that vertex can be assumed to be . But then is also contained in , a contradiction to being a robust cutset. Hence, is a robust cutset, and by construction it satisfies the properties stated in the lemma.
This lemma will let us reason with respect to a bounded number of classes of vertices when our graph has either small timed vertex cover or small temporal neighborhood diversity.
Let be temporal graph with time labels in and a timed vertex cover . Let and observe that . Call .
Let be the set of vertices at least one of whose time vertices is in , and let be the set of vertices none of whose time vertices are in . Note that there cannot be any time edge between vertices of . Then can be partitioned into at most classes of temporal twins in which all vertices in each class have time edges to the same subset of . Note that each class of satisfies the condition of Lemma 13.
This allows us to classify the time edges into at most categories: The category of time edges incident with a vertex is determined by the class of and the time vertex in it is incident with. As , there are at most such categories. The category of a time edge with both endpoints in is determined by the two endpoints and the time label – such categories contain a single time edge each. There are at most such categories, because there are fewer than pairs of time vertices in and the number of distinct time labels of is also bounded by (if contains a time edge with time label , then must contain at least one time vertex with time label ).
For each of the at most categories of the former type, it follows from Lemma 13 that an optimal robust cutset contains either all time edges in the category or none. For the at most categories of the latter type, the same conclusion holds trivially as these categories contain a single time edge each. In time we can enumerate all possibilities for selecting the categories from which we delete all time edges. For each possibility, we can check whether the resulting set of time edges is a robust cutset. In the end, we output the smallest robust cutset found. Being able to determine the smallest robust cutset obviously also solves the decision problem of whether a robust cutset of size at most exists.
Theorem 14.
There is an FPT algorithm for undirected RTC with timed vertex cover number as parameter.
Corollary 15.
There is an FPT algorithm for undirected RTC with vertex cover number of the underlying graph plus number of non-empty time steps as parameter.
Proof.
If the underlying graph has vertex cover number and the number of time steps with at least one time edge is , then the timed vertex cover number is at most . Therefore, the FPT algorithm from Theorem 14 is also an FPT algorithm for the parameter stated in this corollary.
4.3 Temporal Neighborhood Diversity + Solution Size
A temporal neighborhood decomposition of a temporal graph is a partition of the vertex set such that every induces either a clique or an independent set at each time step, and for every pair of vertices the timed neighborhood outside is identical. That is, for every , and time , we have that if and only if . We refer to the parts of as blocks. Recall that the temporal neighborhood diversity of a temporal graph is the minimum such that there is a temporal neighborhood decomposition with blocks.
We derive an FPT algorithm for RTC with respect to the parameter . A temporal neighborhood decomposition with parts can be computed in polynomial time [9]. We remove and from their blocks and let them form singleton blocks, thus obtaining a new temporal neighborhood decomposition of size at most . For a time edge such that and with , the category of is the set of all time edges with and . By Lemma 13, we have that there is an optimal robust cutset that contains either all or none of the time edges between two blocks of at each time. In other words, a time edge is included in the cutset if and only if all time edges in the category of are included in the cutset. For a set of time edges with this property, if there is a temporal - journey in after at most time edge modifications, there is such a journey that visits each block at most once. As we construct such a set of time edges, in order to ensure that it is a robust cutset we only need to hit all sequences of time edges that visit at most one vertex of each block and can be turned into an - journey via a -modification. These sequences have length at most . We can thus obtain an FPT algorithm based on the bounded-search-tree technique as follows: Find a sequence of at most time edges that visits at most one vertex from each block and can be turned into an - journey via a -modification (this can be done along the lines of Lemma 4). For each time edge of that sequence, branch on all time edges from the category of that time edge being removed. The width of the search tree is , and the depth is at most . Thus, this gives an FPT algorithm in parameter .
Theorem 16.
There is an FPT algorithm for undirected RTC with temporal neighborhood diversity plus solution size as parameter.
If we restrict further to temporal graphs in which each edge appears in at most one time step (simple temporal graphs), we can remove the solution size from the parameter: The number of categories of time edges is then , and it suffices to enumerate all possibilities for the categories to include in the cutset. This gives an FPT algorithm for RTC in simple temporal graphs with temporal neighborhood diversity as parameter.
5 Approximation Algorithms
In this section, we consider MinRTC, the optimization problem of computing a robust cutset of minimum cardinality. First, we consider the case where is so large that the adversary can modify an arbitrary number of time edges.
Theorem 17.
For the special case of , where is the number of time edges of the input temporal graph, there is a polynomial-time -approximation algorithm for MinRTC.
Proof.
Let be the given instance of MinRTC. First, assume that is a directed temporal graph and consider strict journeys. We create a time-expanded network of that contains also edges corresponding to all possible -modifications of time edges. Let and and be the vertex set and set of time edges and lifetime of , respectively. Assume that the time labels of lie in . The vertex set of contains a vertex for every and . For every time edge , add edges for to . These edges have capacity and are referred to as the edges corresponding to . Note that may contain parallel edges. Furthermore, add to the edges for all and . These edges have capacity . Note that every - journey in a -modification of corresponds to a path from to in in the obvious way. Now compute a standard minimum - cut in [1]. Let be the set of time edges of for which at least one corresponding edge in is included in . Output as the solution.
is a robust cutset because any sequence of time edges of that can be turned into an - journey via an -modification would imply the existence of an - path in , a contradiction to the definition of .
Let be an optimal solution to MinRTC. Define to be the set of all edges of that correspond to a time edge in . Observe that is an - cut in of size . As is a minimum - cut in , we have . As , the claimed approximation ratio follows.
If is an undirected temporal graph, we change the construction of the directed graph slightly: If is an undirected time edge, we add for every with the following edges with capacity to : , , , , . Here, and are new vertices (different new vertices for every choice of and ). Now, cutting the single edge corresponds to cutting the undirected -modified time edge , and the remainder of the argument goes through as before.
If we consider non-strict instead of strict journeys, the edges corresponding to time edges or -modified time edges are inserted within a time layer of , i.e., going from to rather than to . The remainder of the argument stays the same.
Corollary 18.
For , there is a polynomial-time -approximation algorithm for MinRTC.
Proof.
The case is equivalent to the case because no journey uses more than time edges, and hence a temporal graph is -safe if and only if it is -safe.
Next, we consider the case of arbitrary .
Theorem 19.
There is a polynomial-time -approximation algorithm for MinRTC.
Proof.
Let be the given instance of MinRTC. First, consider directed temporal graphs and strict journeys. We create copies of the time-expanded network of (constructed as in the proof of Theorem 17). Let denote the copy of in the -th time-expanded network. Each of the time-expanded networks contains only one edge for each time edge of : If is a time edge, the -th copy of the time-expanded network contains the edge . For each -modified time edge, add edges connecting the -th copy to the -th copy. More precisely, if is a time edge and satisfies , we add the edge for all . Attach a new sink node with infinite-capacity edges for . Call the resulting graph . For each time edge of , there are now edges of capacity in that correspond to it: one edge in each of the copies of the time-expanded network, and edges from each copy to the next.
Observe that - journeys in a -modification of that has modified the labels of exactly time edges correspond to paths from to via in , and thus every - journey in a -modification of corresponds to an - path in .
Now compute a standard minimum - cut in [1]. Let be the set of time edges of for which at least one corresponding edge in is included in . Output as the solution.
is a robust cutset because any sequence of time edges of that can be turned into an - journey via a -modification would imply the existence of an - path in , a contradiction to the definition of .
Let be an optimal solution to MinRTC. Define to be the set of all edges of that correspond to a time edge in . Observe that is an - cut in of size . As is a minimum - cut in , we have . As , the claimed approximation ratio follows.
The adaptation to undirected temporal graphs and/or non-strict paths is analogous to the proof of Theorem 17.
6 Conclusions
In this paper, we have introduced the RTC problem and studied its classical and parameterized complexity, presenting hardness results, FPT algorithms, and approximation algorithms. We note that our approach for graphs of bounded temporal neighborhood diversity did not depend on the internal time edges of any part in the decomposition: it could be that this approach would work for a more general type of decomposition in which the parts need not be cliques or independent sets, provided that and are in different parts.
There are a range of interesting questions for future work: Does RTC admit an FPT algorithm in parameter ? Does it admit FPT algorithms in the parameter vertex cover number of the underlying graph or temporal neighborhood diversity (i.e., without having solution size included in the parameter)? Does the problem admit approximation algorithms with an approximation ratio that is a constant independent of and ?
References
- [1] Ravindra K. Ahuja, Thomas L. Magnanti, and James B. Orlin. Network flows: theory, algorithms, and applications. Prentice-Hall, Inc., USA, 1993.
- [2] Eleni C. Akrida, Jurek Czyzowicz, Leszek Gasieniec, Lukasz Kuszner, and Paul G. Spirakis. Temporal flows in temporal networks. J. Comput. Syst. Sci., 103:46–60, 2019. doi:10.1016/J.JCSS.2019.02.003.
- [3] Georg Baier, Thomas Erlebach, Alexander Hall, Ekkehard Köhler, Petr Kolman, Ondrej Pangrác, Heiko Schilling, and Martin Skutella. Length-bounded cuts and flows. ACM Trans. Algorithms, 7(1):4:1–4:27, 2010. doi:10.1145/1868237.1868241.
- [4] Cristina Bazgan, Till Fluschnik, André Nichterlein, Rolf Niedermeier, and Maximilian Stahlberg. A more fine-grained complexity analysis of finding the most vital edges for undirected shortest paths. Networks, 73(1):23–37, 2019. doi:10.1002/NET.21832.
- [5] 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<125::AID-NET1>3.0.CO;2-P.
- [6] Benjamin Merlin Bumpus and Kitty Meeks. Edge exploration of temporal graphs. Algorithmica, 85(3):688–716, 2023. doi:10.1007/S00453-022-01018-7.
- [7] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [8] Pavel Dvorák and Dusan Knop. Parameterized complexity of length-bounded cuts and multicuts. Algorithmica, 80(12):3597–3617, 2018. doi:10.1007/S00453-018-0408-7.
- [9] Jessica A. Enright, Samuel D. Hand, Laura Larios-Jones, and Kitty Meeks. Structural parameters for dense temporal graphs. In 49th International Symposium on Mathematical Foundations of Computer Science (MFCS 2024), volume 306 of LIPIcs, pages 52:1–52:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.MFCS.2024.52.
- [10] Jessica A. Enright, Laura Larios-Jones, Kitty Meeks, and William Pettersson. Reachability in temporal graphs under perturbation. In Rastislav Královic and Vera Kurková, editors, SOFSEM 2025: Theory and Practice of Computer Science - 50th International Conference on Current Trends in Theory and Practice of Computer Science, SOFSEM 2025, Bratislava, Slovak Republic, January 20-23, 2025, Proceedings, Part I, volume 15538 of Lecture Notes in Computer Science, pages 255–269. Springer, 2025. doi:10.1007/978-3-031-82670-2_19.
- [11] 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.
- [12] Eugen Füchsle, Hendrik Molter, Rolf Niedermeier, and Malte Renken. Delay-robust routes in temporal graphs. In Petra Berenbrink and Benjamin Monmege, editors, 39th International Symposium on Theoretical Aspects of Computer Science, STACS 2022, Marseille, France (Virtual Conference), March 15-18, 2022, volume 219 of LIPIcs, pages 30:1–30:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.STACS.2022.30.
- [13] Petr A. Golovach and Dimitrios M. Thilikos. Paths of bounded length and their cuts: Parameterized complexity and algorithms. Discret. Optim., 8(1):72–86, 2011. doi:10.1016/J.DISOPT.2010.09.009.
- [14] Allen Ibiapina, Raul Lopes, Andrea Marino, and Ana Silva. Menger’s theorem for temporal paths (not walks). CoRR, abs/2206.15251, 2022. doi:10.48550/arXiv.2206.15251.
- [15] Allen Ibiapina and Ana Silva. Snapshot disjointness in temporal graphs. Theor. Comput. Sci., 1009:114690, 2024. doi:10.1016/J.TCS.2024.114690.
- [16] David C. Kutner and Anouk Sommer. Better late, then? The hardness of choosing delays to meet passenger demands in temporal graphs. In Kitty Meeks and Christian Scheideler, editors, 4th Symposium on Algorithmic Foundations of Dynamic Networks, SAND 2025, Liverpool, UK, June 9-11, 2025, volume 330 of LIPIcs, pages 7:1–7:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.SAND.2025.7.
- [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.
