Abstract
We introduce and study the Bicolored $P_3$ Deletion problem defined as follows. The input is a graph $G=(V,E)$ where the edge set $E$ is partitioned into a set $E_r$ of red edges and a set $E_b$ of blue edges. The question is whether we can delete at most $k$ edges such that $G$ does not contain a bicolored $P_3$ as an induced subgraph. Here, a bicolored $P_3$ is a path on three vertices with one blue and one red edge. We show that Bicolored $P_3$ Deletion is NP-hard and cannot be solved in $2^{o(|V|+|E|)}$ time on bounded-degree graphs if the ETH is true. Then, we show that Bicolored $P_3$ Deletion is polynomial-time solvable when $G$ does not contain a bicolored $K_3$, that is, a triangle with edges of both colors. Moreover, we provide a polynomial-time algorithm for the case that $G$ contains no blue $P_3$, red $P_3$, blue $K_3$, and red $K_3$. Finally, we show that Bicolored $P_3$ Deletion can be solved in $ O(1.84^k\cdot |V| \cdot |E|)$ time and that it admits a kernel with $ O(k\Delta\min(k,\Delta))$ vertices, where $\Delta$ is the maximum degree of $G$.
Introduction
Graph modification problems are fundamental to theoretical computer science, particularly in data clustering and network analysis. A classic example is Cluster Deletion, which seeks the minimum number of edge deletions to transform a graph into a collection of disjoint cliques. This is equivalent to removing all induced $P_3$s (paths of length two).
In "Destroying Bicolored $P_3$s by Deleting Few Edges," Grüttemeier et al. introduce a colorful variation: Bicolored $P_3$ Deletion (BPD). In this problem, edges are partitioned into two sets, red ($E_r$) and blue ($E_b$). A "bicolored $P_3$" is a path of length two where one edge is red and the other is blue. The objective is to delete at most $k$ edges to eliminate all such structures. This problem is motivated by multilayer biological networks, where different colors represent distinct interaction types (e.g., genetic vs. physical protein interactions), and is closely related to Gallai colorings.
Computational Complexity and Hardness
The authors prove that BPD is NP-hard, even on graphs with a maximum degree as low as 8. By reducing from a specific version of 3-SAT, they demonstrate that under the Exponential Time Hypothesis (ETH), the problem cannot be solved in $2^{o(|V|+|E|)}$ time.
The reduction utilizes complex variable and clause gadgets, as shown in Figure 1, to map the satisfiability of a boolean formula to the existence of a valid edge deletion set.
Algorithmic Results and Tractability
Despite its NP-hardness, the problem is Fixed-Parameter Tractable (FPT). The authors develop a branching algorithm that achieves a running time of $O(1.84^k \cdot |V| \cdot |E|)$. This efficiency is gained by identifying specific "forbidden" induced subgraphs, such as diamonds and hourglasses, which provide more effective branching rules than simply targeting arbitrary bicolored $P_3$s.
Furthermore, the paper explores kernelization—reducing a large instance to a smaller, equivalent "kernel." They provide a kernel with $O(k\Delta \min(k, \Delta))$ vertices, where $\Delta$ is the maximum degree. While a kernel depending solely on $k$ remains elusive, this result provides a significant reduction for bounded-degree graphs.
Structural Insights and Special Cases
A key structural insight involves "bicolored $K_3$s" (triangles containing both red and blue edges). The authors identify "endangered" triangles—those where at least one edge belongs to a bicolored $P_3$. If a graph contains no such endangered triangles, BPD becomes equivalent to finding a minimum Vertex Cover on a bipartite graph, which is solvable in polynomial time ($O(nm^{3/2})$).
Other polynomial-time cases include:
- Graphs with no monochromatic $K_3$s and no monochromatic $P_3$s (solvable in $O(n)$ time).
- Instances where the number of edges $m$ is significantly larger than $k$, allowing for a trivial linear-size kernel for the dual parameter $\ell = m - k$.
Conclusion and Future Work
The study of Bicolored $P_3$ Deletion bridges the gap between standard cluster deletion and the analysis of multilayer networks. Future research directions include determining if a polynomial kernel exists depending only on $k$, improving the branching factor to match the $1.42^k$ known for uncolored Cluster Deletion, and exploring the "Bicolored $P_3$ Editing" variant where edge insertions are also permitted.
Summary updated