A Parameterized Study of Secluded Structures in Directed Graphs
Abstract
Given an undirected graph and an integer , the Secluded -Subgraph problem asks you to find a maximum size induced subgraph that satisfies a property and has at most neighbors in the rest of the graph. This problem has been extensively studied; however, there is no prior study of the problem in directed graphs. This question has been mentioned by Jansen et al. [ISAAC’23].
In this paper, we initiate the study of Secluded Subgraph problems in directed graphs by incorporating different notions of neighborhoods: in-neighborhood, out-neighborhood, and their union. Formally, we call these problems {In, Out, Total}-Secluded -Subgraph, where given a directed graph and an integer , we want to find an induced subgraph satisfying of maximum size that has at most in/out/total-neighbors in the rest of the graph, respectively. We investigate the parameterized complexity of these problems for different properties . In particular, we prove the following parameterized results:
-
We design an FPT algorithm for the Total-Secluded Strongly Connected Subgraph problem when parameterized by .
-
We show that the Out-Secluded -Free Subgraph problem with parameter is W[1]-hard, where is a family of directed graphs except any subgraph of a star graph whose edges are directed towards the center. This result also implies that In/Out-Secluded DAG is W[1]-hard, unlike the undirected variants of the two problems, which are FPT.
-
We design an FPT-algorithm for In/Out/Total-Secluded -Bounded Subgraph when parameterized by , where -bounded graphs are a superclass of tournaments.
-
For undirected graphs, we improve the best-known FPT algorithm for Secluded Clique by providing a faster FPT algorithm that runs in time .
Keywords and phrases:
Secluded Subgraph, Parametrized Complexity, Directed Graphs, Strong ConnectivityCopyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithms ; Theory of computation Graph algorithms analysisEditors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Finding substructures in graphs that satisfy specific properties is a ubiquitous problem. This general class of problems covers many classical graph problems such as finding maximum cliques, Steiner trees, or even shortest paths. Another compelling property to look for in a substructure is its isolation from the remaining graph. This motivated Chechik et al. [1], to introduce the concept of secluded subgraphs. Formally, in the Secluded -Subgraph problem, given an undirected graph , the goal is to find a maximum size subset of vertices such that the subgraph induced on fulfills a property and has a neighborhood where is a natural number.
This problem has been studied extensively for various properties such as paths [23, 17, 8, 1], Steiner trees [1, 8], induced trees [7, 11], subgraphs free of forbidden induced subgraphs [11, 15], and more [22]. Most of these studies focus on the parameterized setting, due to the strong relation to vertex deletion and separator problems, which are foundational in parameterized complexity. Our problem fits in that category since the neighborhood can be considered a -separator.
While the undirected Secluded -Subgraph problem has been explored and widely understood in prior work [15, 11, 7], the directed variant has not yet been studied, although it is a natural generalization and was mentioned as an interesting direction by Jansen et al. [15]. Directed graphs naturally model real-world systems with asymmetric interactions, such as social networks with unidirectional follow mechanisms or information flow in communication systems. Furthermore, problems such as Directed Feedback Vertex Set, Directed Multicut, and Directed Multiway Cut underline how directedness can make a fascinating and insightful difference when it comes to parameterized complexity [2, 13, 19, 4]. These problems and their results provide a ground for studying directed secluded subgraph problems, motivating the need to investigate them systematically.
In this paper, we introduce three natural directed variants of the Secluded -Subgraph problem, namely Out-Secluded -Subgraph, In-Secluded -Subgraph, and Total-Secluded -Subgraph. These problems limit either the out-neighborhood of , its in-neighborhood, or the union of both. The out/in-neighborhood of a set is the set of vertices in reachable from via an outgoing/incoming edge. The problems corresponding to different types of neighborhoods can be encountered in real-life networks. In privacy-aware social network analysis, one might aim to identify a community with minimal external exposure. Similarly, robust substructures with limited connectivity to vulnerable components are critical in cybersecurity. These real-world motivations further emphasize the need to explore and formalize directed variants of the Secluded -Subgraph problem.
| Property | In- / Out-Secluded | Total-Secluded |
|---|---|---|
| WC -Free Subgraph | W[1]-hard Thm.˜2 | FPT∗ [15] |
| WC DAG | W[1]-hard Cor.˜3 | ? |
| -Bounded Subgraph | FPT Thm.˜4 | FPT Thm.˜5 |
| Strongly Connected Subgraph | ? | FPT Thm.˜1 |
| Clique | FPT in time Thm.˜6 | |
For any property , we formulate our general problem as follows. Notice that in-secluded and out-secluded are equivalent for all properties that are invariant under the transposition of the edges. For this reason, we mostly focus on total-neighborhood and out-neighborhood.
Parameter: An integer
Input: A directed graph with vertex weights and an integer
Output: An -X-secluded set of weight that satisfies , or report that none exists.
Our Contribution
In this subsection, we present the results we obtained for the problem. See Table 1 for an overview of the results we obtained in this paper.
Strongly Connected Subgraph.
We show that the Total-Secluded Strongly Connected Subgraph problem is fixed-parameter tractable when parameterized with . Precisely, we prove the following result:
Theorem 1.
Total-Secluded Strongly Connected Subgraph is solvable in time .
We design our FPT algorithm for Total-Secluded Strongly Connected Subgraph problem using recursive understanding, a technique introduced by [12] and recently used successfully for various parameterized problems [3, 11, 6, 16]. Specifically, [16] prove a meta-result stating that if a problem is FPT on highly-connected graphs and expressible in Counting Monadic Second-Order Logic, it is also FPT on general graphs. Thereby, this theorem allows to shortcut the analysis and algorithm for the breakable case of recursive understanding. However, it comes at the price of being nonconstructive and not giving a concrete bound on the runtime. For this reason, it is still valuable to apply recursive understanding directly. In future work, it could be promising to apply and generalize this theorem for directed graphs. We visualize the overall structure of the algorithm in Figure 1.
On a high level, recursive understanding algorithms work by first finding a small balanced separator of the underlying undirected graph. If no suitable balanced separator exists, the graph must be highly connected, which makes the problem simpler to solve. In the other case, we reduce and simplify one side of the separator while making sure to keep an equivalent set of solutions in the whole graph. By choosing parameters in the right way, this process reduces one side of the separator enough to invalidate the balance of the separator. Therefore, we have made progress and can iterate with another balanced separator or reach the base case.
In our case, looking for a separator of size at most makes the framework applicable. Crucially, this is because in any secluded subgraph , where , the neighborhood acts as a separator between and . Therefore, if no balanced separator of size at most exists, we can deduce that either itself or must have a small size. This observation makes the problem significantly easier to solve in this case, using the color coding technique developed in [3].
In the other case, we can separate our graph into two balanced parts, and , with a separator of size . Now, our goal is to solve the same problem recursively for one of the sides, say and replace that side with an equivalent graph of bounded size that only contains all necessary solutions. However, finding subsets of solutions is not the same as finding solutions; the solution for the whole graph could heavily depend on including some vertices in . That being said, the different options for this influence are limited. At most different subsets of could be part of the solution. For any such , the solution can only interact across in a limited number of ways. For finding strongly connected subgraphs, we have to consider for which pair there already is a --path in the -part of the complete solution . This allows us to construct a new instance for every such possibility by encoding and the existing paths into . These instances are called boundary complementations. We visualize the idea of this construction in Figure 2.
Fundamentally, we prove that an optimal solution for the original graph exists, that coincides in with an optimal solution to the boundary complementation graph in which is replaced. Hence, we restrict the space of solutions to only those whose neighborhood in coincides with the neighborhood of an optimal solution to some boundary complementation. The restricted instance consists of a bounded-size set of vertices that could be part of and components in that can only be included in completely or not at all. We introduce graph extensions to formalize when exactly these components play the same role in a strongly connected subgraph. Equivalent extensions can then be merged and compressed into equivalent extensions of bounded size. In total, this guarantees that is shrunk enough to invalidate the previous balanced separator, and we can restart the process.
-Free Subgraph.
For any family of graphs , a graph is called -Free if it does not contain any graph in as an induced subgraph. Depending on the context both and are either both undirected or both directed. The widely-studied Secluded -Free Subgraph problem on undirected graphs is FPT (with parameter ) using recursive understanding [11] or branching on important separators [15] when we restrict it to connected solutions. We study the directed version of the problem and surprisingly, it turns out to be W[1]-hard for almost all forbidden graph families even with respect to the parameter . Precisely, we prove the following theorem.
Theorem 2.
Let be a non-empty set of directed graphs such that no is a subgraph of an inward star. Then, Out-Secluded -Free Weakly Connected Subgraph is W[1]-hard with respect to the parameter for unit weights.
We establish an almost complete dichotomy that highlights the few cases of families for which the problem remains tractable. One of these exceptions is if contains an edgeless graph of any size, where we employ our algorithm for Out-Secluded -Bounded Subgraph. Theorem 2 also implies the following result for the directed variant of Secluded Tree problem.
Corollary 3.
Out-Secluded Weakly Connected DAG is W[1]-hard with parameter for unit weights.
-Bounded Subgraph & Clique.
In the undirected setting, the Secluded Clique problem is natural and has been studied specifically. There is an FPT-algorithm running in time through contracting twins [11]. The previous best algorithm however uses the general result for finding secluded -free subgraphs in time [15]. By using important separators, they require time at least . This property is naturally generalizable to directed graphs via tournament graphs. We go one step further.
The independence number of an undirected or directed graph is the size of the maximum independent set in (or its underlying undirected graph). If has independence number at most , we also call it -bounded. This concept has been used to leverage parameterized results from the simpler tournament graphs to the larger graph class of -bounded graphs [20, 10, 18]. We prove the following results:
Theorem 4.
Out-Secluded -Bounded Subgraph is solvable in time .
Theorem 5.
Total-Secluded -Bounded Subgraph is solvable in time .
We achieve the goal via a branching algorithm, solving Secluded -Bounded Subgraph for all neighborhood definitions in FPT time (Theorems 4 and 5). Our algorithm initially picks a vertex subset and looks only for solutions in the two-hop neighborhood of . A structural property of -bounded graphs guarantees that any optimal solution is found in this way. On a high level, the remaining algorithm depends on two branching strategies. First, we branch on forbidden structures in the two-hop neighborhood of , to ensure that it becomes -bounded. Second, we branch on farther away vertices to reach a secluded set.
Note that Theorem 5 is inherently also an undirected result. Furthermore, the ideas behind the algorithm can in turn be used for the simpler undirected Secluded Clique problem. By a closer analysis of these two high-level rules, we arrive at a branching vector of for Secluded Clique. This results in the following runtime, a drastic improvement on the previous barrier of .
Theorem 6.
Secluded Clique is solvable in time .
Organization.
We consider Total-Secluded Strongly Connected Subgraph and prove Theorem 1 in Section 2. The hardness result about Out-Secluded Weakly Connected Subgraph in Theorem 2 is proved in Section 3. In Section 4, we give the algorithm for Out-Secluded -Bounded Subgraph and prove Theorem 4. Due to space constraints, the algorithms and proofs of Theorems 5 and 6 can be found in the full version [21]. Proofs of statements marked with () are also deferred to the full version.
Notation.
Let be a directed graph. For a vertex , we denote the out-neighborhood by and the in-neighborhood by . The total-neighborhood is defined as . We use the same notation for sets of vertices as . Furthermore, for all definitions, we also consider their closed version that includes the vertex or vertex set itself, denoted by . For a vertex set , we write for the subgraph induced by or for the subgraph induced by . We also use instead of .
When we refer to a component of a directed graph, we mean a component of the underlying undirected graph, that is, a maximal set that induces a weakly connected subgraph. In contrast, a strongly connected component refers to a maximal set that induces a strongly connected subgraph. For standard parameterized definitions, we refer to [5].
2 Total-Secluded Strongly Connected Subgraph
In this section, we investigate the Total-Secluded Strongly Connected Subgraph problem, or TSSCS for short. First, we prove that the problem is NP-hard in general graphs, motivating analysis of its parameterized complexity.
Theorem 7 ().
TSSCS is NP-hard, even for unit weights.
The proof of Theorem 7 also shows that TSSCS is W[1]-hard when parameterized by , since in the proof also only depends on the parameter for Clique. In the following subsections, we describe the recursive understanding algorithm to solve TSSCS parameterized by . We follow the framework by [3, 11] and first introduce generalized problems in Section 2.1. In Section 2.2, we solve the case of unbreakable graphs. We introduce graph extensions in Section 2.3 as a framework to formulate our reduction rules and full algorithm in Section 2.4.
2.1 Boundaries and boundary complementations
In this subsection, we first define an additional optimization problem that is useful for recursion. Then, we describe a problem-specific boundary complementation. Finally, we define the auxiliary problem that our algorithm solves, which includes solving many similar instances from the optimization problem.
Input: A directed graph , subsets , a weight function , and an integer
Output: A set that maximizes subject to , , , , and strongly connected, or report that no feasible solution exists.
Note that this problem generalizes the optimization variant of TSSCS by setting and . However, Max TSSCS allows us to put more constraints on recursive calls, enforcing vertices to be included or excluded from the solution and neighborhood.
Definition 8 (Boundary Complementation).
Let be a Max TSSCS instance. Let be a set of boundary terminals with a partition and let be a relation on . Then, we call the instance a boundary complementation of and if
-
1.
is obtained from by adding vertices for every and edges , , and for every additionally ,
-
2.
,
-
3.
,
-
4.
for and for , and
-
5.
.
See Figure 2 for an example boundary complementation. The intuition here should be that if we take the union of with any other graph and only connect to at the vertices in , then encodes all possibilities of how a solution in could behave from ’s point of view. So, for any solution to Max TSSCS in , there is some boundary complementation for in which we can solve and exchange for that solution. Later, we prove a statement that is similar to this intuition.
To employ recursive understanding, we need a boundaried version of the problem. Intuitively, this problem is the same as the previous Max TSSCS but for a small part of the graph we want to try out every possibility, giving many very similar instances. This small part will later represent a separator to a different part of the graph.
Input: A Max TSSCS instance and a set of boundary terminals with
Output: A solution to Max TSSCS for each boundary complementation of and , or report that no solution exists.
To even have a chance to solve this problem, we need to make sure that there are not too many boundary complementations. The following lemma bounds that number in terms of .
Lemma 9 ().
For a Max TSSCS instance and , there are at most many boundary complementations, which can be enumerated in time .
2.2 Unbreakable Case
This subsection gives the algorithm for the base case of our final recursive algorithm, when no balanced separator exists. We start by giving the definitions of separations and unbreakability.
Definition 10 (Separation).
Given two sets with , we say that is a separation of order if there is no edge with one endpoint in and the other endpoint in .
Definition 11 (Unbreakability).
Let . An undirected graph is -unbreakable if for every separation of of order at most , we have or .
Due to space constraints, we defer any further details on the algorithm for the unbreakable case to the full version [21]. It uses standard color coding techniques from [3, 11].
Theorem 12 ().
Boundaried Max TSSCS on -unbreakable graphs can be solved in time .
2.3 Compressing Graph Extensions
Before we give the complete algorithm, we define a routine that compresses a part of the graph. We aim for two crucial properties in the compressed part. First, the part after compression should be equivalent to the part before compression in terms of which strongly connected components can be formed. Second, we want the size of the compressed part to be functionally bounded by the size of remaining graph.
To achieve this goal, we first formally define sufficient properties to reason about this equivalence and bound the number of equivalence classes. First, we define the notion of a graph extension, a way to extend one graph with another. The extension will play the role of the compressed part of the graph. This concept allows us to speak more directly about graph properties before and after exchanging a part of the graph with a different one.
Definition 13 (Extension).
Given a directed graph , we call a pair an extension of if is a directed graph and is a set of pairs between and . We name the graph , that can be created from the extension, extended by .
We use extensions to construct extended graphs. Intuitively, an extension of is a second graph together with an instruction on how to connect to .
Next, we identify three important attributes of extensions in our context. Later, we show that these give a sufficient condition on when two extensions form the same strongly connected subgraphs. For this, consider a directed graph with an extension . For , we write as a shorthand for , that is, all with for some . Define analogously. Write for the condensation of , where every strongly connected component of is contracted into a single vertex. Define such that
that is, for every strongly connected source component in , contains the set of all such that for some and analogously for . Furthermore, define
that is, all such that there is an --path in , whose intermediate vertices and edges belongs to D. Refer to Figure 3 for examples of extensions and the three sets.
Definition 14 (Equivalent Extensions).
Let be a directed graph. We say that two extensions and of are equivalent if
Clearly, extension equivalence defines an equivalence relation. The next statement reveals the motivation behind the definition of extension equivalence. It gives us a sufficient condition for two extensions being exchangeable in a strongly connected subgraph.
Lemma 15.
Let be a directed graph with two equivalent extensions and . Let be nonempty such that the extended graph is strongly connected. Then is also strongly connected.
Proof.
We construct a --path for all that only uses edges in , , and by case distinction.
- Paths .
-
Let . If there is a path from to in , this path also exists after exchanging to . If the path passes through , since , we can exchange all subpaths through by subpaths through .
- Paths .
-
Let . We construct a --path by first walking from to any sink component in . If there is no edge with that we can append, since , there must also be a sink component in with no outgoing edge to . However, this is a contradiction to the fact that is strongly connected with nonempty . Therefore, we can find a to append for some . From , there is already a path to , as proven in the first case.
- Paths .
-
Next, we construct a --path backwards by walking from backwards to a source in . Analogously, there is an edge for some since , which we append. From , there is a path to , as proven in the first case, which we prepend to the rest of the path.
- Paths .
-
Let . To construct a --path, we can just walk from to any and from there to as shown before.
Furthermore, observe that the union of two extensions creates another extension where source, sink and connection sets correspond exactly to the union of the previous sets. Hence, the union of two equivalent extensions will again be equivalent. This fact is formalized in the next observation and will turn out useful in later reduction rules.
Observation 16.
Let be a directed graph with two equivalent extensions and . Consider the extension defined by and . Then is equivalent to and .
Now, we finally define our compression routine, which compresses an extension to a bounded size equivalent extension. If an extension is strongly connected, it is easy to convince yourself that it is always possible to compress the extension to a single vertex. Otherwise, we add one source vertex per neighborhood set in as well as one sink vertex per neighborhood set in , realizing the same and . Then, we add vertices in between suitable source and sink vertices to realize exactly the same connections in without creating additional ones. The result of a compression is visualized in Figure 3. Now, we describe the procedure formally.
Let be a directed graph with an extension . Our compression routine returns an extension that we call compressed extension, denoted as .
Compression Routine.
-
If is strongly connected, we contract to one vertex and remove self-loops and multiple edges. We adjust by using instead of and removing multiple edges.
-
Otherwise, , where is an extension such that
To define , consider every source component and sink component in such that is reachable from in . Let and be the corresponding sets in and .
-
–
Add the edge to .
-
–
For every that satisfies and for every , add the edges and to .
-
–
Now we go on to prove the properties that are maintained while compressing. Then, we bound the size of a compressed extension and thus also the number of equivalence classes.
Lemma 17.
Let be a directed graph with an extension and let be the compressed extension of . Then, the following are true.
-
1.
If is weakly connected, then is also weakly connected.
-
2.
is strongly connected if and only if is strongly connected.
-
3.
is equivalent to .
Proof.
For the first property, assume that is weakly connected. We know by definition that every sink in is reached by at least one source. Consider a with . To show that is connected to some and , consider the path from to in that realizes this connection. There must be a source component and a sink component in such that is reachable from and is reachable from . Therefore, any vertex in can also reach and can reach every vertex in . By definition of compression, these two components ensure that is connected.
It remains to show that any source is reachable by any other source in the underlying undirected graph. Let be two sources in with corresponding source components , in . Since is weakly connected, there is a path from to in the underlying undirected graph. Whenever the undirected path uses an edge in a different direction than the one before, we extend the path to first keep using edges in the same direction until a source or sink component is reached and then go back to the switching point. This new path can directly be transferred to , where we only keep the vertices corresponding to source and sink components. By definition, this is still a path in that connects to , and is weakly connected
The second property is simple to verify, since strongly connected graphs are by definition compressed to single vertices. If is not strongly connected, will have at least one source and one sink that are not the same.
Regarding the equivalence, we create one source for every with the same set of incoming neighbors and create no other sources. Therefore, and follows analogously. For every connection , we create in that realizes this connection. Therefore, we know that . Since is only reachable from sources and reaches only sinks that do not give new connections, we arrive at .
We also bound the number of possible different compression outputs as well as their size.
Lemma 18 ().
For a directed graph , there can be at most different compressed extensions. Furthermore, every compressed extension has at most vertices.
In the past section, we have defined graph extensions and an equivalence relation on them that captures the role they can play in forming strongly connected subgraphs. We have presented a way to compress an extension such that its size only depends on the size of , while remaining equivalent. In the next section, we will use this theory to design reduction rules for Boundaried Max TSSCS. Crucially, we view components outside of the set as extensions, which allows us to keep only one compressed extension of each equivalence class.
2.4 Solving Boundaried Max TSSCS
We start by giving some reduction rules for a Boundaried Max TSSCS instance . Additionally, we assume that to ensure that we do not change when changing . This condition will always be satisfied in our algorithm. A () after a reduction rule denotes that its proof of safeness can be found in the full version [21].
The first reduction rule extends the sets and to whole components of . This is possible since no solution can include only part of a component without its neighborhood intersecting the component. Remember that components always refer to weakly connected components.
Reduction Rule 19 ().
Let be a component of . If , set . If , set . If both cases apply, the instance has no solution.
If this reduction rule is no longer applicable, every component in is either completely in , completely in , or intersects with none of the two.
From this point, we will use extensions from the previous section for components of . Namely, for a component of , let be all the edges with exactly one endpoint in and one in . Then, defines an extension of . For simplicity, we also refer to this extension as . Hence, we also use , , and , as well as for these extensions.
The next reduction rule identifies a condition under which a component can never be part of a solution, namely, if includes strongly connected components with no in-neighbors or no out-neighbors, which is exactly the case if the empty set is in or .
Reduction Rule 20 ().
Let be a component of such that is not strongly connected. If , include into .
Note that after Reduction Rules 19 and 20 have been applied exhaustively, every source in has incoming edges from , and every sink in has outgoing edges to . Finally, we have one more simple rule, which removes vertices . It relies on the fact that by Reduction Rule 19, we also have .
Reduction Rule 21.
If Reduction Rule 19 is not applicable, remove from .
The previous reduction rules were useful to remove trivial cases and extend and . From now on, we assume that the instance is exhaustively reduced by Reduction Rules 21, 20, and 19. Therefore, any component of is either contained in or does not intersect and .
The next two rules will be twin type reduction rules that allow us to bound the number of remaining components. If there are two components of that form equivalent extensions it is enough to keep one of them, since they fulfill the same role in forming a strongly connected subgraph. The reduction rules rely on Lemmas 15 and 16 to show that equivalent extensions can replace each other and can be added to any solution.
Reduction Rule 22.
Let be components of such that both and are not strongly connected and and are equivalent. Delete and increase the weight of some by . If , set .
Proof of Safeness.
By the previous reduction rules, components of can only be included as a whole or not at all. Notice that since and Reduction Rule 20, we get . Let be a solution to the old instance. We differentiate some cases.
If , we know that also . Therefore, the neighborhood size and strong connectivity of do not change in the new instance, and it is also a solution. If includes only one of and , assume without loss of generality , since is not strongly connected by itself, the solution must include vertices of . Because , the solution must also include , a contradiction. If includes both and , we claim that is a solution for the new instance. The neighborhood size and weight clearly remain unchanged. Strong connectivity follows by Observation 16 and Lemma 15. The last two cases also show that if a solution had to include at least one of and , that is, , any solution for the reduced instance must also include . Therefore, the adaptation to is correct.
Let be a solution to the reduced instance. Again, if does not include vertices from , then will immediately be a solution to the old instance. If , then will be a solution to the old instance by Observation 16 and Lemma 15.
For strongly connected components, the rule is different, since we have to acknowledge the fact that they can be a solution by themselves. For every such component we destroy strong connectivity of smaller-weight equivalent component, which can then be reduced by Reduction Rule 22.
Reduction Rule 23.
Let be components of that are also strongly connected with and equivalent and . Add a vertex with edges and , for all and . Set .
Proof of Safeness.
Let be a solution of the old instance. If , then is also a solution for the new instance. If includes only one of and , then we must have , so is a solution for the new instance with . If includes both and , adding to obviously gives a solution of the same weight.
For a solution of the reduced instance , we can simply remove if it is inside for a solution to the old instance.
Using both Reduction Rules 22 and 23 exhaustively makes sure that there are at most two components per extension equivalence class left. The last rule compresses the remaining components to equivalent components of bounded size.
Reduction Rule 24.
Let be a component of that is not equal to its compressed extension. Replace by its equivalent compressed extension and set the weight such that . If , set .
Proof of Safeness.
Since is not strongly connected, it can only be part of a solution that includes some vertices from . Thus, we can apply Lemmas 15 and 17, and the old instance and the new instance have exactly the same strongly connected subgraphs. Because of and Reduction Rule 20, we get . Since , the rule is safe.
This finally allows us to bound the size of . In the next lemma, we summarize the progress of our reduction rules and apply the bounds from the previous section. Note that we need the stronger bound using the neighborhood of the components instead of simply .
Lemma 25 ().
Let be a set of components of with total neighborhood size . Then we can reduce the instance, or there are at most vertices in in total.
Executing the reduction rules in the proposed order guarantees termination after applications. The total execution takes at most time.
Lemma 26 ([11, Lemma 3]).
Given an undirected graph , there is an algorithm with runtime that either finds a -separation of or correctly reports that is -unbreakable.
Now, we have all that it takes to solve our intermediate problem. The main idea of the algorithm is to shrink to a bounded size, by solving the problem recursively. Once is bounded, we apply our reduction rules by viewing components of as extensions, removing redundant equivalent extensions and compressing them. Thereby, we also bound the size and number of components of in terms of using Lemma 25. By choosing suitable constants, we can show that this decreases the total size of , which will make progress to finally reduce it to the unbreakable case.
Theorem 27 ().
Boundaried Max TSSCS can be solved in time .
Proof.
Let be our Boundaried Max TSSCS instance. See Algorithm 1 for a more compact description of the algorithm. A high level display of the approach can be found in Figure 1. Define for a constant . We later show that a suitable must exist.
First, we run the algorithm from Lemma 26 on the underlying undirected graph of with and . If it is -unbreakable, we solve the instance directly using the algorithm from Theorem 12.
Therefore, assume that we have a -separation . Without loss of generality, since we can assume that . Thus, we can construct a new instance to solve the easier side of the separation. Take , write for the restriction of to , and set . Since , also holds and is a valid instance, which we solve recursively.
Let be the set of solutions found in the recursive call. For , define . Define .
We now restrict in to use only vertices in the neighborhood that have been neighbors in a solution in , that is, only vertices in . Define . We now replace in our instance with and apply all our reduction rules exhaustively to arrive at the instance . Finally, we also solve this instance recursively and return the solutions after undoing the reduction rules.
Correctness.
We already proved that the reduction rules and the algorithm for the unbreakable case are correct. The main statement we have to show is that we can replace with without throwing away important solutions. That means that the instances and are equivalent in the sense that any solution set for one instance can be transformed to a solution set to the other instance with at least the same weights. This justifies solving instead of . Consider the boundary complementation and that are caused by the same . To show the claim, we consider the two directions. Any solution for is immediately a solution for the same boundary complementation for since the only difference is that we limit the possible neighborhood to a subset of .
For the other direction, consider a solution to , and we want to show that there is a solution to using only vertices of in the neighborhood with . If , then is also immediately a solution for . Therefore, assume . Define , , and . Let be the set of such that there is an --path in . Finally, let . Thus, we can construct a boundary complementation instance from . One can easily verify that is a feasible solution to this instance. Furthermore, the maximum solution to this instance gives a new set that has at least the same weight as . We also know that and . See Figure 2 for a visualization of the construction corresponding to a solution .
All that remains is to verify that is strongly connected. For , we can simply use the --path in , replacing subpaths via for with the actual paths in . If and , we can walk to any which must have a path to in , in which may need to replace subpaths via . This can be done, since connects all pairs of that are not connected via . The two remaining cases follow by symmetry, justifying the replacement of with .
Finally, we have to show that the recursion terminates for the right choice of ; that is, both recursively solved instances have strictly smaller sizes than the original graph. For the first recursive call, note that the boundary complementation adds at most vertices to . Since , we have .
For the second recursive call, since and by Lemma 9, we have for constants and . After applying all our reduction rules, by Lemma 25 for a suitable choice of and we get
Since before the reductions, we had , the reduced graph also has fewer vertices than . Therefore, this recursive call also makes progress and the recursion terminates.
Runtime.
We follow the analysis of [3]. With Lemma 26, we can test if the undirected version of is unbreakable in time . If the graph turns out to be unbreakable, the algorithm of Theorem 12 solves it in time . Executing the reduction rules takes polynomial time in by Lemma 25.
All that is left to do is analyze the recursion. Let . By the separation property, we know that . From the correctness section, we get . Note that the recursion stops when the original graph is -unbreakable, which must be the case if . We arrive at the recurrence
Notice that appears in every summand of the expanded recurrence and can be ignored here and multiplied later. Furthermore, is bounded from above by a convex polynomial. Therefore, it is enough to consider the extremes of the maximum expression. For , the first recursive call evaluates to . The second call only introduces an additional factor of . For , the second expression evaluates to which is clearly also bounded by . Thus, we arrive at the final runtime of .
Finally, we can use Boundaried Max TSSCS to solve TSSCS. Since in our original problem every vertex could be part of the solution or its neighborhood, we initially set and . Furthermore, we only want to consider the boundary complementation that changes nothing, which we achieve by setting .
Theorem 1. [Restated, see original statement.]
Total-Secluded Strongly Connected Subgraph is solvable in time .
3 Secluded -Free subgraph and Secluded DAG
In this section, we show that Out-Secluded -Free Subgraph is W[1]-hard for almost all choices of , even if we enforce weakly connected solutions. Except for a few missing cases, we establish a complete dichotomy when Out-Secluded -Free Weakly Connected Subgraph (Out-Secluded -Free WCS) is hard and when it is FPT. This is a surprising result compared to undirected graphs and shows that out-neighborhood behaves completely different. The same problem was studied before in undirected graphs, where it admits FPT-algorithms using recursive understanding [11] and branching on important separators [15]. For total neighborhood, both algorithms still work efficiently since the seclusion condition acts exactly the same as in undirected graphs. However, the result changes when we look at out-neighborhood, where we show hardness in Theorem 2 for almost all choices of . To formalize for which kind of the problem becomes W[1]-hard, we need one more definition.
Definition 28 (Inward Star).
We say that a directed graph is an inward star, if there is one vertex such that , that is, the underlying undirected graph of is a star and all edges are directed towards the center.
Due to the nature of the construction, we show that if no inward star contains any as a subgraph, the problem becomes W[1]-hard. Besides this restriction, the statement holds for all non-empty , even families with only a single forbidden induced subgraph. Later, we explain how some other cases of can be categorized as FPT or W[1]-hard.
Theorem 2. [Restated, see original statement.]
Let be a non-empty set of directed graphs such that no is a subgraph of an inward star. Then, Out-Secluded -Free Weakly Connected Subgraph is W[1]-hard with respect to the parameter for unit weights.
Proof Sketch.
Let . We give a reduction from Clique, inspired by [9]. Given an undirected graph , , and , consider the incidence graph, which we modify in the following. We add copies of and a single vertex . For every edge , we add the edges , , and . Furthermore, we add an edge from every vertex to every vertex in every copy of . For two different copies and of , we add edges in both directions between every vertex and in . Denote this newly constructed graph by . Finally, set and .
The proof follows by showing that a clique of size corresponds exactly to an out-secluded -free weakly connected subgraph in with parameters and . More details can be found in the full version [21].
Note that Theorem 2 is very general and excludes many properties immediately from admitting FPT-algorithms. Another interesting example is finding secluded DAGs, a very natural extension of secluded trees, studied in [11, 7]. There we choose to be the set of all directed cycles. Although this set is not finite, hardness follows from Theorem 2.
Corollary 3. [Restated, see original statement.]
Out-Secluded Weakly Connected DAG is W[1]-hard with parameter for unit weights.
Finally, we analyze some of the more remaining cases in the following paragraphs.
Trivial Cases.
If contains the graph with only a single vertex, the empty set is the only -free solution. If contains two vertices connected by a single edge, weakly connected solutions can only consist of a single vertex or contain bidirectional edges and for . Both of these problems are clearly solvable in FPT-time, the second one via our algorithm for Secluded Clique. Additionally, if , we can clearly choose the maximum weight component of as the solution.
Independent Sets.
An independent set is a subgraph of an inward star. One kind of graph that cannot be included in such that Theorem 2 shows hardness are independent sets. Surprisingly, the problem becomes FPT if includes an independent set of any size. First, notice that independent sets that are part of can be ignored if there is a smaller independent set in . Suppose the size of the smallest independent set is . This means that any solution must be an -bounded graph, i.e., a graph without an independent set of size .
We have shown already how these can be enumerated efficiently with the algorithm in the proof of Theorem 4. For every enumerated subgraph, we can simply check if it is -free in time . Therefore, this case is also FPT with parameter if is finite.
Theorem 29.
Let be a finite family of directed graphs that contains an independent set. Then Out-Secluded -Free WCS is solvable in time .
Inward Stars.
Consider what happens when contains an inward star with two leaves. Then, the weakly connected -free graphs are exactly the rooted trees where the root could be a cycle instead of a single vertex, with potentially added bidirectional edges. For , we do not have a solution, but we conjecture that the FPT branching algorithm for Secluded Tree by [7] can be transferred to the directed setting.
If for a star with more than two leaves, the problem remains W[1]-hard. We can slightly modify the construction in the proof of Theorem 2 such that there is not one extra vertex , but one extra vertex for every . We connect all internally in a directed path. A solution for Out-Secluded -Free WCS can then include the whole extra path and the edges encoding the clique. This avoids inward star structures with more than two leaves, showing hardness in this case. For only one single forbidden induced subgraph , we therefore conjecture, that Out-Secluded -Free WCS is FPT with parameter if and only if has no edges or is an inward star with at most two leaves. For all other cases, we have proven W[1]-hardness with parameter for unit weights.
Remaining Cases.
The previous paragraphs resolve almost all possible cases for , except for a few cases which are difficult to characterize. For example, we could have , where is an inward star and is a path, which makes a new connecting construction instead of and the necessary. The above characterization is still enough to give an understanding of which cases are hard and which are FPT for all natural choices of .
4 Secluded Subgraphs with Small Independence Number
In this section, we consider a generalization of the undirected Secluded Clique problem to directed graphs. We generalize this property in the following way.
Definition 30 (-Bounded).
A directed graph is called -bounded if includes no independent set of size , that is, for all with , the graph includes at least one edge.
Our problem of interest will be the Out-Secluded -Bounded Subgraph problem (Out-Secluded -BS). Note that is part of the problem and therefore a constant. In the directed case, is analogous to the Out-Secluded Tournament problem, except that tournaments cannot include more than one edge between a pair of vertices.
In this section, we show how to solve Out-Secluded -BS with a branching algorithm. The general nature of these branching rules allows us to transfer and optimize them, to significantly improve the best known runtime for the Secluded Clique problem to in the full version.
Our branching algorithm starts by selecting one part of the solution and then relies on the fact that the remaining solution has to be close around the selected part. More concretely, we start by picking an independent set that is part of the solution and build the remaining solution within its two-hop neighborhood. The following lemma justifies this strategy. The proof of this lemma was sketched on Mathematics Stack Exchange [14], we give an inspired proof again for completeness.
Lemma 31.
In every directed graph , there is an independent set , such that every vertex in is reachable from an via a path of length at most .
Proof.
We prove the statement by induction on . For , it clearly holds. Assume the statement holds for all graphs with fewer than vertices, we want to prove it for . Let be a vertex. If reaches every other vertex via at most 2 edges, is our desired independent set. Otherwise, is non-empty. Since , we can apply the induction hypothesis. So, let be an independent set in that reaches every vertex of via at most two edges. We consider the edges between and .
Since , there cannot be an edge for any . If there is an edge for some , then is also a solution for since can reach via at most 2 edges. Finally, if there is no edge between and , then is an independent set. Also reaches by definition all of via at most 2 edges.
For -bounded graphs, all independent set have size at most , so trying every subset of of size at most allows us to find a set that plays the role of in Lemma 31 in our solution. Hence, the first step of our algorithm will be iterate over all such sets. From then on, we only consider solutions .
Then, our algorithm uses two branching rules. Both rules have in common that in contrast to many well-known branching algorithms [5, Chapter 3], we never include vertices into a partial solution. Instead, due to our parameter, we only decide that vertices should be part of the final neighborhood. This means that we remove the vertex from the graph and decrease the parameter by 1. Our first branching rule branches on independent sets of size in , to ensure that becomes -bounded. The second rule is then used to decrease the size of the neighborhood of , until it becomes secluded.
To formalize which vertices exactly to branch on, we use some new notation. For a vertex and a vertex set , pick an arbitrary shortest path from to if there exists one. Define to be the vertices on that path including but excluding the first vertex . Note that after removing vertices from the graph, might change.
Now, we can give our algorithm for finding secluded -bounded graphs.
Theorem 4. [Restated, see original statement.]
Out-Secluded -Bounded Subgraph is solvable in time .
Proof.
Let be an instance of Out-Secluded -BS. We guess a vertex set that should be part of a desired solution . Furthermore, we want to find a solution to the instance such that , that is, every should be reachable from via at most two edges. We give a recursive branching algorithm that finds the optimal solution under these additional constraints. The algorithm is also described in Algorithm 2.
When deciding that a vertex should be part of the final neighborhood, we can simply delete it and decrease by one. In case decreases below 0, there is no solution. If is a solution to the instance, we return it. Otherwise we apply the following branching rules and repeat the algorithm for all non-empty independent sets of size at most .
- Case 1. is not -bounded.
-
In this case, there must be an independent set of size . Clearly, not all of can be part of the solution, so there is a vertex . This means that either or a vertex on every path from to must be in . The set is one such path of length at most 2. Thus, one of must be part of the out-neighborhood of and we branch on all of these vertices. For one vertex, delete it and decrease by 1.
- Case 2. is -bounded, but has additional neighbors.
-
Consider one of these neighbors . Since is not reachable from via at most two edges, we should not include it in the solution. Now, is a path of length 3, and one of its vertices must be in . We again branch on all options, delete the corresponding vertex and decrease by 1.
By Lemma 31, there is a suitable choice of for every solution. Therefore, if we can find the maximum solution containing if one exists in every iteration with our branching algorithm, the total algorithm is correct. Also notice that the branching rules are a complete case distinction; if none of the rules apply, the algorithm reaches a base case. The remaining proof of correctness follows from a simple induction.
We initially have to consider all subsets of of size at most while rejecting subsets that are not an independent set in time . To bound the runtime of the branching algorithm, notice that in each case we branch and make progress decreasing by 1. In the first cases, the independent set has size for every , the path includes at most 2 vertices. Hence, there are at most branches in this case. The second case gives exactly 3 branches and is thus dominated by the first rule. This gives the claimed runtime and concludes the proof.
References
- [1] Shiri Chechik, Matthew P Johnson, Merav Parter, and David Peleg. Secluded connectivity problems. Algorithmica, 79:708–741, 2017. doi:10.1007/s00453-016-0222-z.
- [2] Jianer Chen, Yang Liu, Songjian Lu, Barry O’sullivan, and Igor Razgon. A fixed-parameter algorithm for the directed feedback vertex set problem. Journal of the ACM, 55:1–19, 2008. doi:10.1145/1411509.1411511.
- [3] Rajesh Chitnis, Marek Cygan, Mohammad Taghi Hajiaghayi, Marcin Pilipczuk, and Michał Pilipczuk. Designing fpt algorithms for cut problems using randomized contractions. SIAM Journal on Computing, 45:1171–1229, 2016. doi:10.1137/15M1032077.
- [4] Rajesh Chitnis, MohammadTaghi Hajiaghayi, and Dániel Marx. Fixed-parameter tractability of directed multiway cut parameterized by the size of the cutset. SIAM Journal on Computing, 42:1674–1696, 2013. doi:10.1137/12086217X.
- [5] 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.
- [6] Marek Cygan, Daniel Lokshtanov, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Minimum bisection is fixed-parameter tractable. SIAM Journal on Computing, 48:417–450, 2019. doi:10.1137/140988553.
- [7] Huib Donkers, Bart M.P. Jansen, and Jari J.H. de Kroon. Finding k-secluded trees faster. Journal of Computer and System Sciences, 138:103461, 2023. doi:10.1016/j.jcss.2023.05.006.
- [8] Fedor V. Fomin, Petr A. Golovach, Nikolay Karpov, and Alexander S. Kulikov. Parameterized complexity of secluded connectivity problems. Theory of Computing Systems, 61:795–819, 2017. doi:10.1007/s00224-016-9717-x.
- [9] Fedor V Fomin, Petr A Golovach, and Janne H Korhonen. On the parameterized complexity of cutting a few vertices from a graph. In Mathematical Foundations of Computer Science, pages 421–432, 2013. doi:10.1007/978-3-642-40313-2_38.
- [10] Alexandra Fradkin and Paul Seymour. Edge-disjoint paths in digraphs with bounded independence number. Journal of Combinatorial Theory, Series B, 110:19–46, 2015. doi:10.1016/j.jctb.2014.07.002.
- [11] Petr A. Golovach, Pinar Heggernes, Paloma T. Lima, and Pedro Montealegre. Finding connected secluded subgraphs. Journal of Computer and System Sciences, 113:101–124, 2020. doi:10.1016/j.jcss.2020.05.006.
- [12] Martin Grohe, Ken-ichi Kawarabayashi, Dániel Marx, and Paul Wollan. Finding topological subgraphs is fixed-parameter tractable. In Proceedings of the Forty-Third Annual ACM Symposium on Theory of Computing (STOC 2011), pages 479–488, 2011. doi:10.1145/1993636.1993700.
- [13] Meike Hatzel, Lars Jaffke, Paloma T Lima, Tomáš Masařík, Marcin Pilipczuk, Roohani Sharma, and Manuel Sorge. Fixed-parameter tractability of directed multicut with three terminal pairs parameterized by the size of the cutset: twin-width meets flow-augmentation. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3229–3244, 2023. doi:10.1137/1.9781611977554.ch123.
- [14] Sera Gunn (https://math.stackexchange.com/users/437127/sera gunn). Independent set of vertices in a directed graph. Mathematics Stack Exchange, 2017. URL: https://math.stackexchange.com/q/2292101.
- [15] Bart M. P. Jansen, Jari J. H. de Kroon, and Michał Włodarczyk. Single-exponential FPT algorithms for enumerating secluded f-free subgraphs and deleting to scattered graph classes. In 34th International Symposium on Algorithms and Computation (ISAAC 2023), pages 42:1–42:18, 2023. doi:10.4230/LIPIcs.ISAAC.2023.42.
- [16] Daniel Lokshtanov, M. S. Ramanujan, Saket Saurabh, and Meirav Zehavi. Reducing CMSO Model Checking to Highly Connected Graphs. In 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018), volume 107, pages 135:1–135:14, 2018. doi:10.4230/LIPIcs.ICALP.2018.135.
- [17] Max-Jonathan Luckow and Till Fluschnik. On the computational complexity of length-and neighborhood-constrained path problems. Information Processing Letters, 156:105913, 2020. doi:10.1016/j.ipl.2019.105913.
- [18] Pranabendu Misra, Saket Saurabh, Roohani Sharma, and Meirav Zehavi. Sub-exponential time parameterized algorithms for graph layout problems on digraphs with bounded independence number. Algorithmica, 85:2065–2086, 2023. doi:10.1007/s00453-022-01093-w.
- [19] Marcin Pilipczuk and Magnus Wahlström. Directed multicut is W[1]-hard, even for four terminal pairs. ACM Transactions on Computation Theory, 10:1–18, 2018. doi:10.1145/3201775.
- [20] Abhishek Sahu and Saket Saurabh. Kernelization of arc disjoint cycle packing in -bounded digraphs. Theory of Computing Systems, 67:221–233, 2023. doi:10.1007/s00224-022-10114-8.
- [21] Jonas Schmidt, Shaily Verma, and Nadym Mallek. A parameterized study of secluded structures in directed graphs. arXiv preprint arXiv:2502.06048, 2025. doi:10.48550/arXiv.2502.06048.
- [22] René van Bevern, Till Fluschnik, George B. Mertzios, Hendrik Molter, Manuel Sorge, and Ondřej Suchý. The parameterized complexity of finding secluded solutions to some classical optimization problems on graphs. Discrete Optimization, 30:20–50, 2018. doi:10.1016/j.disopt.2018.05.002.
- [23] René van Bevern, Till Fluschnik, and Oxana Yu Tsidulko. Parameterized algorithms and data reduction for the short secluded s-t-path problem. Networks, 75(1):34–63, 2020. doi:10.1002/NET.21904.
