Destroying Bicolored $P_3$s by Deleting Few Edges
Niels Gr\"uttemeier, Christian Komusiewicz, Jannik Schestag, Frank, Sommer

TL;DR
This paper investigates the computational complexity of removing edges to eliminate bicolored $P_3$ subgraphs in a graph with red and blue edges, providing hardness results, polynomial cases, and efficient algorithms.
Contribution
It introduces the Bicolored $P_3$ Deletion problem, proves its NP-hardness, explores special cases with polynomial solutions, and offers fixed-parameter algorithms and kernelization results.
Findings
NP-hardness of Bicolored $P_3$ Deletion
Polynomial-time solvability for graphs without bicolored triangles
Fixed-parameter algorithm with $O(1.84^k)$ time complexity
Abstract
We introduce and study the Bicolored Deletion problem defined as follows. The input is a graph where the edge set is partitioned into a set of red edges and a set of blue edges. The question is whether we can delete at most edges such that does not contain a bicolored as an induced subgraph. Here, a bicolored is a path on three vertices with one blue and one red edge. We show that Bicolored Deletion is NP-hard and cannot be solved in time on bounded-degree graphs if the ETH is true. Then, we show that Bicolored Deletion is polynomial-time solvable when does not contain a bicolored , that is, a triangle with edges of both colors. Moreover, we provide a polynomial-time algorithm for the case that contains no blue , red , blue , and red . Finally, we show that Bicolored …
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\publicationdetails
2320211146108
Destroying Bicolored s by Deleting Few Edges
Niels Grüttemeier
Christian Komusiewicz
Jannik Schestag
Frank Sommer FS was supported by the DFG, project MAGZ (KO 3669/4-1). Fachbereich Mathematik und Informatik, Philipps-Universität Marburg, Marburg, Germany
(2020-02-17; 2021-04-09; 2021-05-07)
Abstract
We introduce and study the Bicolored Deletion problem defined as follows. The input is a graph where the edge set is partitioned into a set of red edges and a set of blue edges. The question is whether we can delete at most edges such that does not contain a bicolored as an induced subgraph. Here, a bicolored is a path on three vertices with one blue and one red edge. We show that Bicolored Deletion is NP-hard and cannot be solved in time on bounded-degree graphs if the ETH is true. Then, we show that Bicolored Deletion is polynomial-time solvable when does not contain a bicolored , that is, a triangle with edges of both colors. We also provide a polynomial-time algorithm for the case that contains no blue , red , blue , and red . Finally, we show that Bicolored Deletion can be solved in time and that it admits a kernel with vertices, where is the maximum degree of .
keywords:
NP-hard problem, graph modification, edge-colored graphs, parameterized complexity, graph classes
Acknowledgment
We would like to thank the reviewers of Discrete Mathematics and Theoretical Computer Science for their helpful comments and Michał Pilipczuk (University of Warsaw) for pointing out the connection to Gallai colorings and their characterization. A preliminary version of this work appeared in Proceedings of the 15th Conference on Computability in Europe (CiE ’19), volume 11558 of Lecture Notes in Computer Science, pages 193–204. The full version contains all missing proofs and an improved running time analysis of the fixed-parameter algorithm. Some of the results of this work are also contained in the third author’s Bachelor thesis [25].
1 Introduction
Graph modification problems are a popular topic in computer science. In these problems, one is given a graph and wants to apply a minimum number of modifications, for example edge deletions, to obtain a graph that fulfills some graph property .
An important reason for the popularity of graph modification problems is their usefulness in graph-based data analysis. A classic problem in this context is Cluster Editing where we may insert and delete edges and is the set of cluster graphs. These are exactly the graphs that are disjoint unions of cliques and it is well-known that a graph is a cluster graph if and only if it does not contain a , a path on three vertices, as induced subgraph. Cluster Editing has many applications [4], for example in clustering gene interaction networks [3] or protein sequences [30]. The variant where we may only delete edges is known as Cluster Deletion [26]. Further graph-based data analysis problems that lead to graph modification problems for some graph property defined by small forbidden induced subgraphs arise in the analysis of biological [8, 18] or social networks [6, 24].
Besides the application, there is a more theoretical reason why graph modification problems are very important in computer science: Often these problems are NP-hard [23, 31] and thus they represent interesting case studies for algorithmic approaches to NP-hard problems. For example, by systematically categorizing graph properties based on their forbidden subgraphs one may outline the border between tractable and hard graph modification problems [2, 22, 31].
In recent years, multilayer graphs have become an increasingly important tool for integrating and analyzing network data from different sources [21]. Formally, multilayer graphs can be viewed as edge-colored (multi-)graphs, where each edge color represents one layer of the input graph. With the advent of multilayer graphs in network analysis it can be expected that graph modification problems for edge-colored graphs will arise in many applications as it was the case in uncolored graphs.
One example for such a problem is Module Map [27]. Here, the input is a simple graph with red and blue edges and the aim is to obtain by a minimum number of edge deletions and insertions a graph that contains no with two blue edges, no with a red and a blue edge, and no a triangle, called , with two blue edges and one red edge. Module Map arises in computational biology [1, 27]; the red layer represents genetic interactions and the blue layer represents physical protein interactions [1].
Motivated by the practical application of Module Map, an edge deletion problem with bicolored forbidden induced subgraphs, we aim to study such problems from a more systematic and algorithmic point of view. Given the importance of -free graphs in the uncolored case, we focus on the problem where we want to destroy all bicolored s, that is, all s with one blue and one red edge, by edge deletions.
Bicolored Deletion (BPD)
Input: A two-colored graph and an integer .
Question: Can we delete at most edges from such that the remaining graph contains no bicolored as induced subgraph?
We use to denote the set of all edges of , to denote the number of vertices in , and to denote the number of edges in .
Bicolored s are closely connected to Gallai colorings of complete graphs [14, 17]. A Gallai coloring is an edge-coloring such that the edges of every triangle receive at most two different colors. When we view nonedges of as edges with a third color, say green, then a bicolored is the same as a triangle that violates the property of Gallai colorings. Thus, BPD is essentially equivalent to the following problem: Given a complete graph with an edge-coloring with the colors red, blue, and green that is not a Gallai coloring, can we transform the coloring into a Gallai coloring by recoloring at most blue or red edges with the color green?
Our Results.
We show that BPD is NP-hard and that, assuming the Exponential-Time Hypothesis (ETH) [20], it cannot be solved in a running time that is subexponential in the instance size. We then study two different aspects of the computational complexity of the problem.
First, we consider special cases that can be solved in polynomial time, motivated by similar studies for problems on uncolored graphs [7]. We are in particular interested in whether or not we can exploit structural properties of input graphs that can be expressed in terms of colored forbidden subgraphs. We show that BPD can be solved in polynomial time on graphs that do not contain a certain type of bicolored s as induced subgraphs, where bicolored s are triangles with edges of both colors. Moreover, we show that BPD can be solved in polynomial time on graphs that contain no s with one edge color and no s with one edge color as induced subgraphs.
Second, we consider the parameterized complexity of BPD with respect to the natural parameter . We show that BPD can be solved in time and that it admits a problem kernel with vertices, where is the maximum degree in . As a side result, we show that BPD admits a trivial problem kernel with respect to .
2 Preliminaries
We consider undirected simple graphs with vertex set and edge set , where is partitioned into a set of blue edges and a set of red edges, denoted by . For a vertex , denotes the open neighborhood of and denotes the closed neighborhood of . For a vertex set , denotes the open neighborhood of and denotes the closed neighborhood of . The degree of a vertex is the size of its open neighborhood. We let denote the second neighborhood of . For any two vertex sets , we denote by the set of edges between and in and write . In each context we may omit the subscript if the graph is clear from the context.
For any , denotes the subgraph induced by . We say that some graph is an induced subgraph of if there is a set , such that is isomorphic to , otherwise is called -free. Two vertices and are connected if there is a path from to in . A connected component is a maximal vertex set such that each two vertices are connected in . A clique in a graph is a set of vertices such that in each pair of vertices is adjacent. The graph is called bicolored . We say that a vertex is part of a bicolored in if there is a set with such that is a bicolored . Furthermore, we say that two edges and form a bicolored if is a bicolored . An edge is part of a bicolored if there exists some other edge such that and form a bicolored . For any edge set we denote by the graph we obtain by deleting all edges in . As a shorthand, we write for an edge . An edge deletion set is a solution for an instance of BPD if is bicolored--free and .
A branching rule for some problem is a computable function that maps an instance of to a tuple of instances of . A branching rule is called correct if is a yes-instance for if and only if there is some such that is a yes-instance of . The application of branching rules gives rise to a search tree whose size is analyzed using branching vectors; for more details refer to the textbook of Fomin and Kratsch [13]. A reduction rule for some problem is a computable function that maps an instance of to an instance of such that is a yes-instance if and only if is a yes-instance.
Parameterized Complexity is the analysis of the complexity of problems depending on the input size and a problem parameter [9, 10]. A problem is called fixed-parameter tractable if there exists an algorithm with running time for some computable function that solves the problem. An important tool in the development of parameterized algorithms is problem kernelization. Problem kernelization is a polynomial-time preprocessing by reduction rules: A problem admits a problem kernel if, given any instance of with parameter , one can compute an equivalent instance of with parameter in polynomial time such that and the size of is bounded by some computable function only depending on . The function is called kernel size. The Exponential Time Hypothesis (ETH) is a standard complexity theoretical conjecture used to prove lower bounds. It implies that 3-SAT cannot be solved in time where denotes the input formula [20].
3 Bicolored Deletion is NP-hard
In this section we prove the NP-hardness of BPD. This motivates our study of polynomial-time solvable cases and the parameterized complexity in Sections 4 and 5, respectively.
Theorem 3.1**.**
BPD* is NP-hard even if the maximum degree of is .*
Proof.
We present a polynomial-time reduction from the NP-hard (3,4)-SAT problem where one is given a 3-CNF formula where each variable occurs in at most four clauses, and the question is if there is a satisfying assignment for [29].
Let be a 3-CNF formula with variables and clauses with four occurrences per variable. For a given variable that occurs in a clause we define the occurrence number as the number of clauses in where occurs. Intuitively, means that the th occurrence of variable is the occurrence in clause . Since each variable occurs in at most four clauses, we have .
Construction: We describe how to construct an equivalent instance of BPD from .
For each variable we define a variable gadget as follows. The variable gadget of consists of a central vertex and two vertex sets and . We add a blue edge from to every vertex in and a red edge from to every vertex in .
For each clause we define a clause gadget as follows. The clause gadget of consists of three vertex sets , , and . We add blue edges such that the vertices in form a clique with only blue edges in . Moreover, for each , we add a blue edge and a red edge for every . Observe that there are no edges between , , and ; all other vertex pairs are connected either by a red edge or a blue edge.
We connect the variable gadgets with the clause gadgets by identifying vertices in with vertices in as follows. Let be a clause containing variables , and . For each we set
[TABLE]
Now, for every variable each vertex in is identified with at most one vertex . Figure 1 shows an example of a clause gadget and its connection with the variable gadgets. To complete the construction of the BPD instance we set .
Intuition: Before showing the correctness of the reduction, we describe its idea. For each variable we have to delete all blue edges in or all red edges in in the corresponding variable gadget. Deleting the edges in assigns true to the variable while deleting the edges in assigns false to . Since we identify vertices in with vertices in the information of the truth assignment is transmitted to the clause gadgets. We will be able to make a clause-gadget bicolored--free with edge deletions if and only if there is at least one vertex in which is incident with a deleted edge of its variable gadget.
Correctness: We now show the correctness of the reduction by proving that there is a satisfying assignment for if and only if is a yes-instance of BPD.
Let be a satisfying assignment for . In the following, we construct a solution for .
For each variable , we add to if and we add to if . Note that for each variable we add exactly four edges to . For each we add the following edges: Since is satisfying, contains a variable such that satisfies . By the construction of there is exactly one such that if occurs as a positive literal in or if occurs as a negative literal in . For both we add to . Note that since we add exactly edges per clause. Thus, we have an overall number of edges in .
Let . It remains to show that there is no bicolored in . Let . We first show that no edge in is part of a bicolored in . For any two vertices it holds that . Hence, no edge in is part of an induced in and therefore no edge in is part of a bicolored in . It remains to show that no edge in is part of a bicolored in . Without loss of generality assume that and . Thus, the only possible edges in that might form a bicolored in are the edges in . We show for every that is not part of an induced bicolored in . Since is a clique in , the edge may only form a bicolored with an edge , where is the central vertex of the variable gadget of a variable occurring in . By the construction of it follows that for exactly one variable . Since , the assignment satisfies clause by the construction of . If , then and therefore is not an edge of . Analogously, if , then is not an edge of . Hence, no edge in is part of a bicolored in .
Let . We show that no edge in is part of a bicolored in . Since either or , all edges in have the same color. Hence, there is no bicolored in consisting of two edges from one variable gadget. Since there is no vertex in that is adjacent to two vertices of distinct variable gadgets, an edge may only form a bicolored with an edge in for some clause . However, since no edge in is part of a bicolored in as shown above, does not form a bicolored with an edge from a clause gadget. Therefore, no edge in is part of a bicolored . It follows that does not contain any bicolored .
Conversely, let be a solution for . For every variable we have since every edge in forms a bicolored with every edge in .
Before we define a satisfying assignment for , we take a more detailed look at the edges of the clause gadgets that need to be in . Let be a clause and let be the induced subgraph of the corresponding clause gadget. We show that edge deletions are necessary and sufficient to transform into a bicolored--free graph. Obviously, for pairwise distinct , deleting the edges in transforms into a bicolored--free graph, since is a clique in . Hence, deleting edges is sufficient. It remains to show that when deleting less than edges there are still bicolored s in . To this end, we show that either one of the vertices in is not incident with an edge deletion in or we need more than edge deletions to transform into a bicolored--free graph. We consider three vertices representing the endpoints of deleted edges incident with , , and , respectively. Let . The following claim gives a lower bound on the number of edge deletions in after deleting .
Claim 1**.**
There are at least edge-disjoint bicolored s in .
Proof**.**
We define three sets , , and containing bicolored s and show that the union contains at least edge-disjoint bicolored s in . Here, we represent bicolored s by edge sets of size two. For each we set
[TABLE]
Let . Since , and , it follows that every set is a bicolored in . Obviously, the bicolored s in are edge-disjoint and .
We now show that the union contains at least edge-disjoint bicolored s in . To this end, consider the following subset
[TABLE]
where
[TABLE]
Obviously, and . It remains to show that all bicolored s in are edge-disjoint. Assume towards a contradiction that there are with and . Since every contains edge-disjoint bicolored s, it follows that and for some . Without loss of generality assume . Since for every , the edges are not part of any bicolored in and, conversely, the edges are not part of any bicolored in it follows that . We conclude .
Consider the case and . Then, . Analogously, if and , then , and if and , then . In every case we have which contradicts the assumption . Hence, there are no bicolored s in that share an edge and therefore contains at least edge-disjoint bicolored s as claimed.
Claim 1 implies that if every vertex in is incident with an edge in , we have . We now show that deleting for distinct are the only three possible ways to transform into a bicolored--free graph with less than edge deletions. By Claim 1, we can assume without loss of generality that . We show that this implies that all edges incident with and in are deleted by .
Claim 2**.**
If , then for and for .
Proof**.**
First, note that no edge with is an element of , since otherwise and form a bicolored in which contradicts the fact that is bicolored--free. Next, consider . Clearly, is an element of , since otherwise and form a bicolored in which contradicts the fact that is bicolored--free.
It remains to show that . Assume towards a contradiction that there exists an edge in with . If , the edges and form a bicolored in . Otherwise, if the edges and form a bicolored in . Both cases contradict the fact that is bicolored--free and therefore as claimed.
We conclude from Claim 2 that deleting the edges in for distinct are the only three possible ways to destroy all bicolored s in with at most edge deletions.
This fact combined with the fact that we need at least edge deletions per variable gadget and implies that for each clause and for each variable .
We now define a satisfying assignment for by
[TABLE]
The assignment is well-defined since in each variable gadget either all red or all blue edges belong to .
Let be some clause in . It remains to show that is satisfied by . Since there are distinct such that . Without loss of generality assume and . Therefore . By the construction of we know that there is a variable occurring in such that either or . We show that clause is satisfied by the assignment .
For all , contains the red edge . Moreover, contains the blue edge . Since no vertex in is adjacent to we conclude that since otherwise is part of a bicolored in which contradicts the fact that is bicolored--free. If , then variable occurs as a positive literal in by the construction of . Then, . We conclude from that and therefore . Analogously, if , then . From we conclude . In both cases, the assignment satisfies which completes the correctness proof. ∎
Note that for any instance of (3,4)-SAT it holds that . Thus, in the proof of Theorem 3.1 we constructed a graph with edges, , and therefore for the dual parameter . Considering the ETH [20] and the fact that there is a reduction from 3-SAT to (3,4)-SAT with a linear blow-up in the number of variables [29] this implies the following.
Corollary 3.2**.**
If the ETH is true, then BPD cannot be solved in time even if the maximum degree in is .
4 Polynomial-Time Solvable Cases
Since BPD is NP-hard, there is little hope to find a polynomial-time algorithm that solves BPD on arbitrary instances. In this section we provide polynomial-time algorithms for two special cases of BPD that are characterized by colored forbidden induced subgraphs.
4.1 BPD on Bicolored -free Graphs
Our first result is a polynomial-time algorithm for BPD, when does not contain a certain type of bicolored s.
Definition 4.1**.**
Three vertices form a bicolored if contains exactly three edges such that exactly two of them have the same color. A bicolored is endangered in if at least one of the two edges with the same color is part of a bicolored in .
A bicolored on vertices can be seen as an induced subgraph of , such that after one edge deletion in one might end up with a new bicolored containing the vertices , and . This happens, if we delete one of the two edges with the same color. If the bicolored is endangered, it might be necessary to delete one of these two edges to transform into a bicolored--free graph. Intuitively, a graph that contains no (endangered) bicolored can be seen as a graph from which we can delete any edge that is part of a bicolored without producing a new one. Note that the following result also implies that BPD can be solved in polynomial time on triangle-free graphs and thus also on bipartite graphs.
Theorem 4.2**.**
BPD* can be solved in time if contains no endangered bicolored .*
Proof.
We prove the theorem by reducing BPD to Vertex Cover on bipartite graphs which can be solved in polynomial time since it is equivalent to computing a maximum matching.
Vertex Cover
Input: A graph and an integer .
Question: Is there a vertex cover of size at most in , that is, a set with such that every edge has at least one endpoint in ?
Let be an instance of BPD where contains no endangered bicolored . We define an instance of Vertex Cover as follows. Let be the graph with vertex set and edge set E^{\prime}:=\{\{e_{1},e_{2}\}\subseteq E_{b}\cup E_{r}\mid e_{1}\text{ and }e_{2}\text{ form a bi\-colored\leavevmode\nobreak\ P_{3}\leavevmode\nobreak\ in }G\}. That is, contains a vertex for each edge of and edges are adjacent if they form a in . Moreover, let . The graph is obviously bipartite with partite sets and .
We now show that is a yes-instance for BPD if and only if is a yes-instance for Vertex Cover.
Let be a solution for . Note that the edges of are vertices of by construction and therefore . We show that is a vertex cover in . Assume towards a contradiction that there is an edge with . By the definition of , the edges and form a bicolored in . This contradicts the fact that is bicolored--free. Hence, is a vertex cover of size at most in .
Let with be a minimal vertex cover of . Note that the vertices of are edges of by construction and therefore . We show that is bicolored--free. Assume towards a contradiction that there are edges and forming a bicolored in . Then, and do not form a bicolored in since otherwise there is an edge , which has no endpoint in the vertex cover . It follows that there is an edge in that is not present in . Consequently, . Obviously, the vertices form a bicolored . Since and form a bicolored in , one of these edges has the same color as . Since and is minimal, it follows that is an endpoint of an edge in and thus is part of a bicolored in . Therefore, forms an endangered bicolored in which contradicts the fact that contains no endangered bicolored . This proves the correctness of the reduction.
For a given instance of BPD, the Vertex Cover instance can be computed in time by computing all bicolored s of . Since Vertex Cover can be solved in time on bipartite graphs [19] and since and , we conclude that BPD can be solved in time on graphs without endangered s. ∎
4.2 BPD on Graphs without Monochromatic s and s
We now show a second polynomial-time solvable special case that is characterized by four colored forbidden induced subgraphs: the two monochromatic s, these are the s where all three edges have the same color, and the two monochromatic s, these are the s where both edges have the same color. Observe that a graph that does not contain these forbidden induced subgraphs may still contain s or s.
We provide two reduction rules that lead to a polynomial-time algorithm for this special case. These rules can also be applied to general instances of BPD and thus their running time bound is given for general graphs. We will later show that on graphs without monochromatic s and s we can apply them exhaustively in time.
Reduction Rule 1**.**
- a)
Remove all bicolored--free components from . 2. b)
If contains a connected component of size at most five, then compute the minimum number of edge deletions to make bicolored--free, remove from , and set .
Lemma 4.3**.**
Reduction Rule 1 is correct and can be exhaustively applied in time.
Proof.
The correctness of Reduction Rule 1 is obvious. Part a) can be exhaustively applied in time as follows: First compute the connected components of in via breadth-first search. Then, enumerate all bicolored s and label the vertices that are not part of any bicolored in time. Finally, remove all connected components without labeled vertices in time. Part b) of Reduction Rule 1 can be applied exhaustively in time since we only need to find and remove connected components of constant size. ∎
The second reduction rule involves certain bridges that may be deleted greedily. An edge is a bridge if the graph has more connected components than .
Reduction Rule 2**.**
- a)
Remove all bridges from that are not contained in any bicolored . 2. b)
If contains a bridge such that
- •
the connected component containing in is bicolored--free and
- •
forms a bicolored with some edge of in ,
then remove from and set .
Lemma 4.4**.**
Reduction Rule 2 is correct and can be applied exhaustively in time.
Proof.
Let be the original instance and be the instance after the application of the rule. We first show the correctness of the two parts of the rule. For part a), observe that for every subgraph of , any bridge that is removed by the rule is not part of a bicolored . Thus, any solution for is a solution for and vice versa. For part b), observe first that if has a solution , then is a solution for and thus is also a yes-instance. It remains to show that if is a yes-instance, then so is . Consider a solution with for . Observe that or . This implies . Finally, observe that since , is a solution of size at most for .
The running time can be seen as follows: We compute in time the bridges of [28]. Given the bridges, one can compute in the block-cut-forest of . The vertices of are maximal 2-edge-connected components of and the edges correspond to the bridges of . Then in time, we enumerate all bicolored s. Using the set of bicolored s, we can compute for each 2-edge-connected component whether it contains a bicolored . Moreover, for each bridge and each incident 2-edge-connected component , we can compute whether forms a bicolored with some edge of . Finally, we can compute for each bridge the set of edges with which it forms a conflict. This additional information can be computed in time. We incorporate this information into the block-cut-forest as follows: A vertex of is colored black if the corresponding 2-edge-connected component contains a bicolored , otherwise it is colored white.
The exhaustive application of the rule is now performed on the block-cut-forest via the following algorithm. First, remove all white singletons from and . Then, remove all bridges of from and that are not part of in any bicolored in . Checking whether one of these two conditions is fulfilled can be performed in time per removed edge and vertex. In the following, we assume that these removals have been applied exhaustively.
To describe the final part of the reduction, we denote for each vertex of the 2-edge-connected component of containing by . Note that is a vertex of . Now we check for each vertex of whether it is incident with a bridge that fulfills the condition of part b) of the rule.
To do this efficiently, we characterize such bridges as follows.
Claim 3**.**
A bridge and a vertex fulfill the condition of Reduction Rule 2 b) if and only if
- •
* forms a bicolored with some edge of or some bridge that is incident with ,*
- •
* is white,*
- •
* contains only white leaf-vertices, and*
- •
all other bridges incident with some vertex of form a bicolored with and are not part of any further bicolored .
Proof**.**
Let denote the connected component containing after the deletion of . Clearly, the stated conditions are sufficient for and to fulfill the requirements of the rule. For most conditions it is also clear that they are necessary for to be bicolored -free. The only non-obvious condition is that contains only leaf-vertices. This condition is necessary since, otherwise, would contain some bridge that is not incident with a vertex of . This bridge is part of some bicolored , since it has not been removed previously. This bicolored would also be contained in since and are not incident.
This characterization gives us now a way to check in time whether contains some bridge that fulfills the condition of Reduction Rule 2 b). This check is done as follows. We consider each vertex of . At most two bridges incident with some vertex of are candidates for fulfilling the conditions of the claim: all incident bridges must be incident with the same vertex of for the conditions to be fulfilled and an edge must be the only incident bridge of its color if the conditions are fulfilled. For each candidate edge, we check in time whether the conditions of the claim are fulfilled using the precomputed information about the conflicts in . Thus, the total running time for this final check is linear in the number of edges of and thus in . Note that after removing some edge in this way, the remaining vertices of are removed via the previous two checks.
Altogether, applying the rules using needs time per removed vertex and edge. Since each application removes some vertex or bridge of , there are in total applications. Moreover, after removing all isolated vertices from , we have and thus the overall running time of for the application of the rule follows. ∎
As we will show later, any graph without monochromatic s and monochromatic s to which the above reduction rules do not apply has maximum degree two. These graphs can be solved in linear time as we see in the following lemma.
Lemma 4.5**.**
Let be an instance of BPD such that has maximum degree . Then, can be solved in time.
Proof.
In the following, we construct a solution for . If has maximum degree , then each connected component of is either a path or a cycle. The algorithm first deals with cycles and then considers the remaining paths. Observe that every connected component of size at most can be solved within time. For the rest of the proof we assume that every connected component has size at least .
First, we consider each connected component of which is a cycle. We either transform into one or two paths or solve directly. First, assume that contains three subsequent edges , and of the same color, then edge is not part of any bicolored . Hence can be removed without decreasing . The remaining connected component is a path and will be solved in the second step. Second, assume that contains two subsequent edges and with the same color. Recall that we may assume that . Further, let be the other edge that is incident with and let be the other edge that is incident with . According to our assumption, and form a bicolored and and form a bicolored . Hence, either or and either or . Since and have the same color and no further edges are incident with and , we may assume that . The remaining connected components are paths and will be solved in the second step. Third, consider the case that contains no two subsequent edges of the same color. Then consists of edges and each two subsequent edges form a bicolored . Thus, contains a set of edge-disjoint bicolored s: and contains exactly blue edges. Thus, deleting the blue edges of is optimal.
In a second step, we consider each connected component that is a path. Let be a path consisting of vertices . Visit the edges for increasing starting at . For each edge, check whether it is part of some bicolored . Let be the first encountered edge that is in a bicolored . Then, delete , decrease by one, and continue with if it exists. First, observe that exists since does not form a bicolored with . Second, observe that the deletion of is simply an application of Reduction Rule 2 and therefore correct. Clearly, this greedy algorithm runs in time.
In altogether time, we can consider each cycle and either solve or delete one or two edges, which transforms into one or two paths. The greedy algorithm for paths runs in time on all paths. Thus, the remaining instance can be solved in time. The overall running time follows. ∎
We have now all ingredients to present the polynomial-time algorithm for graphs without monochromatic and monochromatic . In order to prove the correctness of the algorithm and the linear running time, we make the following observation about such graphs.
Lemma 4.6**.**
Let be a graph that contains no monochromatic and no monochromatic as induced subgraphs. Then, the maximum blue degree and the maximum red degree in are 2.
Proof.
We show the proof only for the blue degree, the bound for the red degree can be shown symmetrically. Assume towards a contradiction that contains a vertex with at least three blue neighbors , , and . Since contains no blue , the subgraph has three edges. Moreover, since contains no monochromatic not all of the three edges in are red. Assume without loss of generality that is blue. Then is a blue , a contradiction. ∎
Theorem 4.7**.**
BPD* can be solved in time if contains no monochromatic and no monochromatic .*
Proof.
The algorithm first applies Reduction Rule 1 exhaustively. Afterwards, Reduction Rule 2 is applied on all bridges with or . Thus, let be the graph after the applications of Reduction Rules 1 and 2 as described above. We show that has maximum degree at most . Afterwards, Lemma 4.5 applies and the remaining instance can be solved in time. Observe that by Lemma 4.6, the maximum degree in is . For an illustration of the small uncolored graphs used in this proof see Figure 2.
First, assume that the maximum degree of is and let be a vertex of degree . We show that is a connected component of . This implies that is removed by Reduction Rule 1 in this case. By Lemma 4.6, the vertex has exactly two blue neighbors , and exactly two red neighbors , . Since contains no monochromatic and no monochromatic , is red and is blue. Now assume towards a contradiction, that one of these four vertices has a neighbor in .
Without loss of generality assume that this vertex is . See Figure 3 (a) for an example. Then, is red because otherwise is a blue . This implies that is blue because otherwise is a red or a red . Then, however, is a blue , a contradiction. Altogether, this implies that is a connected component of . Hence, if is reduced with respect to Reduction Rule 1, then contains no vertices of degree .
Second, assume that the maximum degree of is and let be a vertex of degree . If is a , then is a connected component of and is removed by Reduction Rule 1. Next, assume is a diamond, and let , , and denote the neighbors of where is the other vertex that has degree three in . See Figure 3 (b) for an example. Assume without loss of generality that is a blue neighbor of . Then, by Lemma 4.6, one of and , say , is a red neighbor of . This implies that is a blue neighbor of , because otherwise is a red . Consequently, is a red neighbor of because otherwise , , and form a blue . Hence, is a blue neighbor of because otherwise is a red . Altogether, we have that and each have a red and a blue neighbor in . Since , we have that and cannot have a neighbor in as such a neighbor would form a monochromatic with one of and . Hence, is a connected component of in this case and consequently removed by Reduction Rule 1.
Thus is neither a nor a diamond if is reduced with respect to Reduction Rule 1. Moreover, cannot be a claw since in this case contains a monochromatic . Hence, the only remaining case is that is a paw. Let , , and be the neighbors of where and are adjacent. For an example see Figure 3 (c). Assume furthermore without loss of generality that is incident with two blue edges. This implies that is a red neighbor of as otherwise , , and form a monochromatic . Also, and are blue neighbors of . Consequently, is red. As in the proof above for the case that is a diamond, and have no further neighbor in . Thus, is a bridge with that fulfills the condition of Reduction Rule 2 b) and thus is removed by this rule. Altogether this implies that any instance to which Reduction Rules 1 and 2 have been applied as described above has maximum degree . By Lemma 4.5, we can thus solve the remaining instance in linear time.
Next, we consider the running times of Reduction Rules 1 and 2 in more detail since for both rules the running time analysis given above did not assume that contains no monochromatic and no monochromatic .
First, we apply Reduction Rule 1 exhaustively. Since has maximum degree at most four, we can label all vertices that are part of some bicolored in time and thus Reduction Rule 1 can be applied exhaustively in time. Observe that in the resulting graph the maximum degree of is three since vertices of degree four are in connected components of size five.
Next, we consider the running time of Reduction Rule 2, after Reduction Rule 1 was applied exhaustively. Recall that Reduction Rule 2 is only applied to bridges that have at least one endpoint with degree three. To apply the rule exhaustively, we first compute in time the set of all vertices of degree three. For each such vertex , the graph is a paw because otherwise, is a connected component of constant size as shown above. Hence, there exist two vertices such that and . The vertices and can be determined in time. Let . Then, Reduction Rule 2 removes from . Thus, in time, we may apply Reduction Rule 2 on the bridge containing . Consequently, the rule can be applied exhaustively on all degree-three vertices time. Afterwards, the remaining instance has maximum degree two and can be solved in time. Hence, the overall running time is . ∎
5 Parameterized Complexity
In this section we study the parameterized complexity of BPD parameterized by , , and , where denotes the maximum degree of . We first provide an -time fixed-parameter algorithm for BPD. Afterwards, we study problem kernelizations for BPD parameterized by and .
5.1 A Fixed-Parameter Algorithm for Bicolored Deletion
We now provide a fixed-parameter algorithm that solves BPD parameterized by . Note that there is a naive branching algorithm for BPD: For a given instance , check in time if contains a bicolored . If this is not the case, then answer yes. Otherwise, answer no if . If , then compute a bicolored formed by the edges and and branch into the cases and . We modify this simple algorithm by branching on slightly more complex structures, obtaining a running time of . Note that by Corollary 3.2 a subexponential algorithm in is not possible when assuming the ETH.
The basic idea of the algorithm is to branch on LC-Diamonds, LO-Diamonds, IIZ-Diamonds and CC-Hourglasses. For the definition of these structures see Figure 4. We say that a graph is nice if has none of the structures from Figure 4 as induced subgraph and every edge of forms a bicolored with at most one other edge of . We give a polynomial-time algorithm that solves BPD when the input graph is nice. To this end consider the following proposition.
Proposition 5.1**.**
Let be an instance of BPD such that is nice. Moreover, let be the number of bicolored s in . Then, for every two edges and forming a bicolored in there is an edge such that
- a)
* contains bicolored *s and every bicolored of is a bicolored in , and 2. b)
* is nice.*
Proof.
For the proof of Statement a), let and denote the endpoints of and let and denote the endpoints of . Note that the number of bicolored s in and is at least since every edge of is part of at most one bicolored since is nice. It remains to show that there is an edge such that the number of bicolored s in is at most , and that every bicolored in is a bicolored in . Assume towards a contradiction that there are at least bicolored s in and in . Then, there exist vertices , such that and form a bicolored in and also and form a bicolored in .
First, assume . If , then , , and is an LC-Diamond with two red and three blue edges. This contradicts the fact that contains no induced LC-Diamond. Analogously, if , then is an LC-Diamond with two blue and three red edges. We conclude .
Second, assume . Then, . Since every edge of is part of at most one bicolored , there is an edge . If , then is an LC-Diamond. Otherwise, if , then is an IIZ-Diamond. This contradicts the fact that contains no induced LC- or IIZ-Diamond. Therefore, . With the same arguments we can show that .
From and we conclude that and . Next, if we have , then the graph is an induced CC-Hourglass which contradicts the fact that does not contain induced CC-Hourglasses. Hence, . Consider the following cases.
Case 1: . Then and do not form a bicolored , which contradicts the choice of and .
Case 2: . If , then is an induced LC-Diamond. Otherwise, if , then is an induced LO-Diamond. Both cases contradict the fact that is nice.
Case 3: . If , then is an induced LC-Diamond. Otherwise, if , then is an induced LO-Diamond. Both cases contradict the fact that is nice.
Case 4: . If , then is an LC-Diamond. Otherwise, if , then is an LC-Diamond. Both cases contradict the fact that is nice.
All cases lead to a contradiction. Hence, there exists such that contains bicolored s which proves Statement a).
Next, we show Statement b). To this end, let and be two edges forming a bicolored in . Let that satisfies a). We show that is nice. From a) we know that every bicolored of is also a bicolored in . Hence, the fact that every edge of is part of at most one bicolored implies that every edge of is part of at most one bicolored .
First, assume towards a contradiction that contains an induced LC-, LO- or IIZ-Diamond as given in Figure 4. Since contains no such structure, we conclude and is a clique in . Then, deleting from produces a new bicolored on edges and in which contradicts Statement a). Therefore, contains no induced LC-, LO- and IIZ-Diamonds.
Second, assume towards a contradiction that the graph contains some induced CC-Hourglass as given in Figure 4. Then, since does not contain an induced CC-Hourglass, both endpoints of are elements of and contains exactly seven edges.
Case 1: (or ). Then, contains the new bicolored formed by the edges and (by and , respectively) which contradicts a).
Case 2: . Then, is an induced LC-Diamond in if or an induced LO-Diamond in if which contradicts the fact that has no induced LC-Diamonds and LO-Diamonds.
Case 3: Then, is an induced LO-Diamond in if or an induced LC-Diamond in if which contradicts the fact that has no induced LC-Diamonds and LO-Diamonds.
All cases lead to a contradiction and therefore contains no induced LC-, LO-, IIZ-Diamonds, CC-Hourglasses and every edge of is part of at most one bicolored . ∎
Proposition 5.1 implies a simple algorithm for BPD on such graphs.
Corollary 5.2**.**
Let be an instance of BPD where is nice. Then, we can decide in time whether is a yes- or a no-instance of BPD.
Proof.
We solve BPD with the following algorithm: First, enumerate all bicolored s in time. Second, check if there are at most bicolored s. If yes, is a yes-instance. Otherwise, is a no-instance.
It remains to show that this algorithm is correct. Assume contains bicolored s. Since every edge of forms a bicolored with at most one other edge, all bicolored s in are edge-disjoint. Hence, edge deletions are necessary. By Proposition 5.1 a) we can eliminate exactly one bicolored with one edge deletion without producing other bicolored s. By Proposition 5.1 b) this can be done successively with every bicolored , since after deleting one of its edges we do not produce LC-, LO-, IIZ-Diamonds, CC-Hourglasses or edges that form a bicolored with more than one other edge. Thus, edge deletions are sufficient. Hence, the algorithm is correct. ∎
Next, we describe how to transform an arbitrary graph into a nice graph by branching. To this end consider the following branching rules applied on an instance of BPD.
Branching Rule 1**.**
If there are three distinct edges such that forms a bicolored with and with , then branch into the cases
- •
, and 2. •
.
Lemma 5.3**.**
Branching Rule 1 is correct.
Proof.
We show that is a yes-instance of BPD if and only if at least one of the instances or is a yes-instance of BPD.
Assume is a yes-instance or is a yes-instance. In each branching case , the parameter is decreased by the exact amount of edges deleted from . Therefore, if some has a solution of size at most , then has a solution.
Let be a solution for . Since and form a bicolored , at least one of these edges belongs to . If , then is a yes-instance since we can transform into a bicolored--free graph by deleting the at most edges in . Otherwise, if , then . Hence, is a yes-instance since we can transform into a bicolored--free graph by deleting the at most edges in . ∎
Branching Rule 2**.**
If there are vertices such that is an LC-Diamond (Figure 4 (a)) or an LO-Diamond (Figure 4 (b)) or an IIZ-Diamond (Figure 4 (c)), then branch into the cases
- •
, 2. •
, and 3. •
.
Lemma 5.4**.**
Branching Rule 2 is correct.
Proof.
We show that is a yes-instance of BPD if and only if at least one of the instances , , or is a yes-instance of BPD.
This direction holds since in every instance the parameter is decreased by the exact amount of edges deleted from .
Let be a solution for . In LO-Diamonds, LC-Diamonds, and in IIZ-Diamonds, the edges and form a bicolored in and therefore or . If , then is a yes-instance. Otherwise, if it follows that . If , we have and therefore is a yes-instance. So we assume , , and consider the following cases.
Case 1: is an LC-Diamond. Then, and form a bicolored in . Since , it follows that . The edges and form a bicolored in which implies or . Since , we have . Thus, and therefore is a yes-instance.
Case 2: is an LO-Diamond. Then, and form a bicolored in . Since , it follows that . The edges and form a bicolored in which implies or . Since , we have . Thus, and therefore is a yes-instance.
Case 3: is an IIZ-Diamond. Then, forms a bicolored with and with in . Since , it follows that and therefore is a yes-instance. ∎
Branching Rule 3**.**
If there are vertices such that is a CC-Hourglass as given in Figure 4 (d), then branch into the cases
- •
, 2. •
, and 3. •
.
Lemma 5.5**.**
Branching Rule 3 is correct.
Proof.
We show that is a yes-instance of BPD if and only if at least one of the instances , , or is a yes-instance of BPD.
This direction obviously holds since in every instance the parameter is decreased by the exact amount of edges deleted from .
Let be a solution for . The edges and form a bicolored in and therefore or . If , then is a yes-instance. Otherwise, if , then . The edge forms a bicolored with and in . If , then is a yes-instance. Otherwise, if , then . Hence, is a yes-instance. ∎
We use the Branching Rules 1–3 to state the following theorem.
Theorem 5.6**.**
BPD* can be solved in time.*
Proof.
We solve BPD for an instance as follows: Initially, we compute the adjacency matrix of in time. We then compute one of the structures we branch on, which is an induced LC-Diamond, LO-Diamond, IIZ-Diamond, CC-Hourglass or some edge which forms a bicolored with two other edges. Next, we branch according to the Branching Rules 1, 2, and 3. If no further branching rule is applicable we check in time whether the remaining instance is a yes-instance or not. This is possible by Corollary 5.2. The branching vectors are for Branching Rule 1, and for Branching Rules 2 and 3. This delivers a branching factor smaller than . We next describe in detail how we can find one of the structures we branch on, in such a way that the algorithm described above runs in time
Isolated vertices do not contribute to the solution of the instance. Thus, we delete all isolated vertices in time. Hence we can assume in the following. Afterwards, we compute a maximal packing of edge-disjoint bicolored s. Here, we represent a bicolored by an edge set of size two. We define as the set of all edges of bicolored s in . Note that and thus can be found in time by enumerating all bicolored s in . If , the graph contains more than edge-disjoint bicolored s and is a no instance. In this case we can stop and return no. Otherwise, we have and use to compute the structures we apply Branching Rules 1–3 on as follows.
Note that in any LC-, LO- or IIZ- Diamond the edges and form a bicolored in and thus, or . Therefore, we can find in time by iterating over all possible tuples with and and then check with the adjacency matrix in time if the induced subgraph is an LC-, LO- or IIZ- Diamond.
Furthermore, observe that any CC-Hourglass contains the two edge-disjoint bicolored s and . Thus, at least two edges of are elements of . Therefore, we can find in time by iterating over all possible tuples with and and then check with the adjacency matrix in time if the induced subgraph is a CC-Hourglass.
Finally, let be an edge that forms two bicolored s with other edges and . Again, at least one of the edges , or is an element of . Thus, we can find , , and in time iterating over all triples containing an edge from and two vertices from , which form the remaining two endpoints.
Since we can find one of the structures on which we apply Branching Rules 1–3 in time. This gives us a total running time of time as claimed. ∎
It is possible to improve the branching rules on LO-Diamonds, IIZ-Diamonds, and CC-Hourglasses to obtain a branching vector , but branching on LC-Diamonds still needs a branching vector of , which is the bottleneck. To put the running time of Theorem 5.6 into perspective note that Cluster Deletion, which can be viewed as the uncolored version of BPD, can be solved in time [5]. Thus there is a large gap between the running time bounds of the problems. It would be interesting to know if this gap can be closed or if BPD is significantly harder than Cluster Deletion.
5.2 On Problem Kernelization
Finally, we consider problem kernelization for BPD parameterized by and . Recall that denotes the maximum degree of the input graph. We show that BPD admits problem kernels with vertices or at most edges, respectively.
In the following, we provide two reduction rules leading to an vertex kernel for BPD. The first reduction rule deletes all edges which form more than bicolored s.
Reduction Rule 3**.**
If contains an edge such that there exist vertices with such that is a bicolored for each , then remove and decrease by one.
Lemma 5.7**.**
Reduction Rule 3 is correct and can be applied exhaustively in time.
Proof.
First, we prove the correctness of Reduction Rule 3. Let be a solution for . Without loss of generality, consider an edge such that there exist vertices such that for each the graph is a bicolored . At least one edge of each bicolored , is an element of . Assume towards a contradiction . In each bicolored , the blue edge which is either or has to be removed. Note that for each these are pairwise different edges. Thus, since , , a contradiction to . Hence, and is a solution for . For the opposite direction, if is a solution for then is is a solution for .
Second, we bound the running time of applying Reduction Rule 3 exhaustively. In a first step, for each edge compute the number of bicolored s containing . This can be done in time. In a second step, check if an edge is part of more than bicolored s and remove if this is the case. After the removal of , every new bicolored contains vertices and . Hence, for each remaining vertex , check if is a new bicolored in . If yes, then update the number of bicolored s for edges and . This can be done in time. Since , the overall running time of Reduction Rule 3 is . ∎
Let denote the set of all vertices of which are part of bicolored s. Then, the set contains all vertices which are either part of a bicolored or which are adjacent to a vertex in a bicolored . In other words, a vertex is contained in if and only if each vertex is not part of any bicolored . In the following, we present a reduction rule to remove all vertices in .
Reduction Rule 4**.**
If contains a vertex such that each vertex is not part of any bicolored , then, remove from .
To show that Rule 4 is correct, we provide two simple lemmas about edge deletion sets.
Lemma 5.8**.**
Let be a graph and let be an edge deletion set. If two edges and do not form a bicolored in and form a bicolored in , then .
The proof of Lemma 5.8 is trivial and thus omitted.
Lemma 5.9**.**
Let be an instance of BPD and let be a solution for of minimum size. Then, there exists an ordering of such that for each the edge is part of a bicolored in .
Proof.
Assume towards a contradiction that such an ordering does not exist. Then, for every ordering of , there exists a maximal index such that there is a finite sequence where for each the edge is part of a bicolored in . According to our choice of , there exists no edge of which is part of a bicolored in . If contains a bicolored formed by and , then and . This contradicts the fact that is a solution for . Otherwise, is bicolored--free. Then, is a solution for . This contradicts the fact that is a solution of minimum size for . ∎
We next use the Lemmas 5.8 and 5.9 to show the correctness of Rule 4.
Lemma 5.10**.**
Reduction Rule 4 is correct and can be applied exhaustively in time.
Proof.
Let . We prove that there exists a solution for if and only if is also a solution for .
Let be a solution for . Since is an induced subgraph of , is a solution for .
Let be a solution for of minimum size. If , is also a solution for . Thus, in the following we assume that . We show that is bicolored--free. To this end, we provide a claim to show that there are no edge-deletions in the neighborhood of .
Claim 4**.**
In , there are no edge deletions that are incident with some vertex in .
Proof**.**
Assume towards a contradiction that contains such edge deletions. We consider an ordering from Lemma 5.9 such that every is part of a bicolored in . Note that this implies that every is in a bicolored in . Let be the minimum index such that is incident with some .
Consider the case . Then, since is part of a bicolored in and is not part of a bicolored in , Lemma 5.8 implies that there exists some index such that is incident with or with . This contradicts the minimality of . Thus, we may assume and therefore for the rest of this proof. Without loss of generality we may assume that is red. Observe that this implies that is red, since is not part of any bicolored in .
Since is part of a bicolored in , there exists some vertex such that is a bicolored . We show that the following cases are contradictory.
Case 1: . Then, since is a bicolored and is not a bicolored , Lemma 5.8 implies that there exists some index and there is an edge in the ordering that is incident with or with . This contradicts the minimality of since and are elements of .
Case 2: . Then, and do not form a bicolored in since all edges in are red since is not part of any bicolored in . Consequently, and form a bicolored in . Then, analogous to Case 1, Lemma 5.8 implies that there exists some with and which is a contradiction to the minimality of .
Case 3: . Then, and form a bicolored in . Moreover, , since . Then, and also form a bicolored in contradicting the fact that no vertex in is part of a bicolored .
We next use Claim 4 to show that is bicolored--free. Observe that it suffices to show that no edge incident with is part of a bicolored in . Consider an edge . Then, by Claim 4, and are incident with the same edges in as in . Therefore, since is not part of any bicolored in , the edge is not part of any bicolored in . Consequently, is a solution for .
It remains to consider the running time of applying Reduction Rule 4 exhaustively. In a first step, determine all bicolored s in . Afterwards, determine for each vertex if is part of some bicolored . This needs time. Now, check for each vertex if each vertex is not part of any bicolored . This can be done in time. The claimed running time follows. ∎
Theorem 5.11**.**
BPD* admits a -vertex kernel that can be computed in time.*
Proof.
First, apply Reduction Rule 3 exhaustively. Second, apply Reduction Rule 4 exhaustively. This needs time altogether. We prove that contains at most vertices if is a yes-instance. Let be the set of vertices which are contained in a bicolored in , and let be a maximal set of edge-disjoint bicolored s in . If is a yes-instance for BPD, then . Since Reduction Rule 3 was applied exhaustively, each edge is part of at most bicolored s. Hence, the total number of bicolored s in is at most . Consequently, . Since Reduction Rule 4 was applied exhaustively, . In other words, set has no second neighborhood in . Since each vertex has degree at most we have . Hence, the overall number of vertices in is if is a yes-instance for BPD. ∎
By the above, BPD admits a linear problem kernel in if has constant maximum degree. Note that a kernelization by alone is unlikely since BPD is NP-hard even if by Theorem 3.1. Since BPD is fixed-parameter tractable with respect to parameter , we can trivially conclude that it admits an exponential-size problem kernel. It is open if there is a polynomial kernel depending only on while Cluster Deletion has a relatively simple -vertex kernel [16]. Summarizing, BPD seems to be somewhat harder than Cluster Deletion if parameterized by .
In contrast, BPD seems to be easier than Cluster Deletion if parameterized by the dual parameter : there is little hope that Cluster Deletion admits a problem kernel of size [15] while BPD has a trivial linear-size problem kernel as we show below.
Theorem 5.12**.**
BPD* admits a problem kernel with edges and vertices which can be computed in time.*
Proof.
We show that instances with at least edges are trivial yes-instances. Let with be an instance of BPD. Then, since and form a partition of , we have or . Without loss of generality let . Since , is a solution for . ∎
6 Outlook
We have initiated the algorithmic study of a natural edge-deletion problem on edge-colored graphs. In companion work, we considered the problem of destroying paths of length at least 4 that fulfill certain coloring constraints [12, 11]. With this exception, however, the study of graph modification problems on edge-colored graphs has been neglected so far. Consequently, the complexity of many natural problems and a study of natural edge-colored graph classes remain open.
For the particular case of bicolored--free graphs, we have also left open many questions for future work. First, it would be interesting to further investigate the structure of bicolored--free graphs. Since each color class may induce an arbitrary graph it seems difficult to obtain a concise and non-trivial structural characterization of these graphs. One may, however, exploit the connection with Gallai colorings which are colorings where no triangle receives more than two colors. In particular, the following characterization of Gallai colorings is known [14, 17]: any Gallai coloring of a complete graph can be obtained by taking some complete 2-colored graph and substituting its vertices with a complete graph and some Gallai coloring of this complete graph. This characterization relies on the decomposition property that in any Gallai coloring of a complete graph with at least three colors, there is at least one edge color that spans a disconnected graph . Then, by the property of Gallai colorings, the edges in that are between two different components and of have the same color.
Second, there are many open questions concerning Bicolored Deletion. Does Bicolored Deletion admit a polynomial-size kernel for ? Can Bicolored Deletion be solved in time? Can Bicolored Deletion be solved in polynomial time on graphs that contain no monochromatic ? Can Bicolored Deletion be solved in polynomial time on graphs that contain no cycle consisting only of blue edges? Even simpler is the following question: Can Bicolored Deletion be solved in polynomial time if the subgraphs induced by the red edges and the subgraph induced by the blue edges are each a disjoint union of paths? Moreover, it would be interesting to perform a similar study on Bicolored Editing where we may also insert blue and red edges. Furthermore, it is open if Bicolored--free Completion where we only may insert red or blue edges is NP-hard. Observe in this context that the uncolored problem Cluster Completion can easily be solved by adding all missing edges in each connected component.
Third, it would also be interesting to identify graph problems that are NP-hard on general two-edge colored graphs but polynomial-time solvable on bicolored--free graphs. Finally, we were not able to resolve the following question: Can we find bicolored s in time?
Using the connection to Gallai colorings and the decomposition property of Gallai colorings seems to be a promising approach to address these open questions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] David Amar and Ron Shamir. Constructing module maps for integrated analysis of heterogeneous biological networks. Nucleic Acids Research , 42(7):4208–4219, 2014.
- 2[2] N. R. Aravind, R. B. Sandeep, and Naveen Sivadasan. Dichotomy results on the hardness of H 𝐻 H -free edge modification problems. SIAM Journal on Discrete Mathematics , 31(1):542–561, 2017.
- 3[3] Amir Ben-Dor, Ron Shamir, and Zohar Yakhini. Clustering gene expression patterns. Journal of Computational Biology , 6(3-4):281–297, 1999.
- 4[4] Sebastian Böcker and Jan Baumbach. Cluster editing. In Proceedings of the 9th Conference on Computability in Europe (Ci E ’13) , volume 7921 of LNCS , pages 33–44. Springer, 2013.
- 5[5] Sebastian Böcker and Peter Damaschke. Even faster parameterized cluster deletion and cluster editing. Information Processing Letters , 111(14):717–721, 2011.
- 6[6] Ulrik Brandes, Michael Hamann, Ben Strasser, and Dorothea Wagner. Fast quasi-threshold editing. In Proceedings of the 23rd Annual European Symposium on Algorithms (ESA ’15) , volume 9294 of LNCS , pages 251–262. Springer, 2015.
- 7[7] Andreas Brandstädt, Van Bang Le, and Jeremy P. Spinrad. Graph classes: a survey . SIAM, Philadelphia, PA, USA, 1999.
- 8[8] Sharon Bruckner, Falk Hüffner, and Christian Komusiewicz. A graph modification approach for finding core-periphery structures in protein interaction networks. Algorithms for Molecular Biology , 10:16, 2015.
