---
title: Cliques or Trees Vertex Deletion
url: https://www.emergentmind.com/topics/cliques-or-trees-vertex-deletion
type: topic
---

# Cliques or Trees Vertex Deletion

Cliques-or-Trees Vertex Deletion is the problem of deciding, for a graph \(G\) and an integer \(k\), whether there exists a set \(X \subseteq V(G)\) of size at most \(k\) such that every connected component of \(G-X\) is either a clique or a tree. In the language of deletion to scattered graph classes, it is the problem of deleting to \(\mathrm{Scatter}(\mathcal{G}_1,\mathcal{G}_2)\) for the pair consisting of cliques and trees, and it is explicitly presented as a hybrid of two fundamental parameterized problems: Cluster Vertex Deletion and Feedback Vertex Set [2409.14209][2509.16815].

## 1. Formalization and parameterization

For two graph classes \(\mathcal{G}_1,\mathcal{G}_2\), the scattered class is defined by
\[
\mathrm{Scatter}(\mathcal{G}_1,\mathcal{G}_2)=\{\,G:\text{ every connected component of }G\text{ lies in }\mathcal{G}_1\cup\mathcal{G}_2\,\}.
\]
The specific problem asks, given \(G=(V,E)\) and \(k\in\mathbb{N}\), whether there exists \(S\subseteq V\) with \(|S|\le k\) such that for every component \(H\) of \(G-S\), \(H\) is a complete graph \(K_t\) with \(t\ge 1\) or \(H\) is a tree [2409.14209].

The quadratic-kernel study defines the associated structural parameter \(\mathrm{ctvd}(G)\) as the minimum \(k\) such that there exists \(X\subseteq V(G)\), \(|X| \le k\), for which every connected component of \(G-X\) is either a clique or a tree. In the same framework, \(\mathrm{cvd}(G)\) denotes Cluster Vertex Deletion and \(\mathrm{fvs}(G)\) denotes Feedback Vertex Set. The immediate inequalities
\[
\mathrm{ctvd}(G)\le \mathrm{cvd}(G),\qquad \mathrm{ctvd}(G)\le \mathrm{fvs}(G)
\]
formalize the sense in which the parameter generalizes both dense-side and sparse-side deletion measures [2509.16815].

Two basic properties are recorded for \(\mathrm{ctvd}\). It is monotone under vertex deletion: for any \(v\in V(G)\), \(\mathrm{ctvd}(G-v)\le \mathrm{ctvd}(G)\). It is also additive under disjoint union: for disjoint graphs \(G_1,G_2\),
\[
\mathrm{ctvd}(G_1\sqcup G_2)=\mathrm{ctvd}(G_1)+\mathrm{ctvd}(G_2).
\]
The same work notes that it is not hard to see that graphs with bounded cliques-or-trees vertex deletion number have bounded clique-width, and uses this to position the parameter as a more specific alternative to clique-width [2509.16815].

## 2. Obstruction viewpoint and structural characterization

A central structural fact is the forbidden-induced-subgraph characterization of the target class. Let \(\mathcal{CT}\) be the class of simple graphs whose components are cliques or trees. Then
\[
G\in \mathcal{CT}\quad\Longleftrightarrow\quad G\text{ has no induced paw, no induced diamond, and no induced cycle }C_i\text{ with }i\ge 4.
\]
Here a paw has vertices \(u_1,u_2,u_3\) forming a triangle and a pendant vertex \(u_4\) adjacent to \(u_1\), while a diamond is \(K_4\) minus one edge [2409.14209].

This obstruction set explains why the problem is not simply the disjoint union of cluster deletion and forest deletion. On the clique side, induced \(P_3\) configurations are the core obstruction for cluster graphs; on the tree side, cycles are the core obstruction for forests. In the scattered setting, however, the relevant obstructions are those that certify that a connected component is neither a clique nor a tree. The 2024 kernel paper emphasizes that obstructions for the two classes may reside in different parts, and that a solution may “separate” obstructions rather than hit them. It therefore states explicitly that naively combining kernels for Cluster Vertex Deletion and Feedback Vertex Set does not work [2409.14209].

The parameter inequalities \(\mathrm{ctvd}(G)\le \mathrm{cvd}(G)\) and \(\mathrm{ctvd}(G)\le \mathrm{fvs}(G)\) provide the formal relation to these neighboring deletion problems. A cluster-deletion solution is automatically valid because a disjoint union of cliques satisfies the target condition, and a feedback vertex set is automatically valid because a forest has all components as trees [2509.16815].

## 3. Fixed-parameter tractability and the first polynomial kernel

Before quadratic kernelization, the problem already had fixed-parameter algorithms. The 2024 kernel paper states that an \(O^*(4^k)\) algorithm is known for Cliques-or-Trees Vertex Deletion, and then presents the first non-trivial polynomial kernel for the problem, with \(O(k^5)\) vertices [2409.14209].

The kernel starts from a 4-approximation due to Jacob–Majumdar–Raman, producing a deletion set \(S\) with \(|S|\le 4k\), or returning NO otherwise. It maintains the invariant that every remaining component in \(G-S\) has at least one neighbor in \(S\). The reduction system combines isolated component removal, an edge-multiplicity cap, pendant-vertex bounding, reductions for degree-2 tails and induced degree-2 overbridges, a 2-expansion rule for bounding the number of clique components, a clique-marking rule denoted Mark-Clique-K, tree-side leaf trimming, pendant tree contraction, a \(v\)-flower rule, and a new 4-Expansion Lemma for tree-side adjacency [2409.14209].

The clique side is controlled by bounding the number of clique components of \(G-S\) of size at least \(3\), and then bounding the size of each such clique via the marking rule. The tree side is controlled by first bounding the number of vertices adjacent to \(S\), and then using the local path and pendant reductions to bound the size of the forest part. The resulting estimates are explicit: after the 2-expansion rule, the number of clique components of size at least \(3\) is at most \(8k\); on the forest side, if \(V_2\) denotes the vertices in tree components of \(G-S\), then
\[
|V_2|\le 25|N|\le 1525k|S|\le 6100k^2.
\]
Putting these together with the marking bound for clique components yields
\[
|V(G')|=|S|+|V_1|+|V_2|=O(k)+O(k^5)+O(k^2)=O(k^5)
\]
for the reduced instance [2409.14209].

Historically, this was described as the first non-trivial polynomial kernel for deletion to a scattered pair of graph classes. Its significance lies not only in the \(O(k^5)\) bound, but also in the introduction of techniques that explicitly mediate between dense components and sparse components through a common boundary set \(S\) [2409.14209].

## 4. Quadratic kernelization

The 2025 work improves the kernel size to \(O(k^2)\) vertices and gives the explicit post-reduction bound
\[
|V|\le 1389k^2+52k.
\]
Its main theorem states that Cliques or Trees Vertex Deletion admits a kernel with \(O(k^2)\) vertices [2509.16815].

The kernelization is organized around a degree-and-density partition of the vertex set. Using the threshold constant \(7\) and neighbor-density threshold \(1/4\), the paper defines
\[
V_{\mathrm{small}} := \{v\in V : |N(v)| \le 7k\},
\]
\[
V_{\mathrm{ls}} := \{v\in V : |N(v)| > 7k \text{ and } \rho(v) \le |N(v)|(|N(v)|-1)/4\},
\]
\[
V_{\mathrm{ld}} := \{v\in V : |N(v)| > 7k \text{ and } \rho(v) > |N(v)|(|N(v)|-1)/4\}.
\]
Two structural lemmas then separate the tree side from the clique side: if \(v\in V_{\mathrm{ls}}\) and \(v\notin X\), then \(v\) lies in a tree component of \(G-X\); if \(v\in V_{\mathrm{ld}}\) and \(v\notin X\), then \(v\) lies in a clique component of \(G-X\) [2509.16815].

The tree-side reduction suite is described as closely following Thomassé’s quadratic kernel for Feedback Vertex Set. It uses Gallai’s theorem to obtain either a \(v\)-flower of order \(k+1\) or a blocker \(B\) of size at most \(2k\), together with rules for many non-tree components, tree pruning, and a 2-expansion reduction on tree components. One conclusion is formalized as: after exhaustive application, all vertices outside \(V_{\mathrm{ld}}\) have degree at most \(7k\); equivalently, \(V_{\mathrm{ls}}\) is empty [2509.16815].

The clique-side reduction suite begins from a 4-approximation \(S\) with \(|S|\le 4k\). It applies a correspondence rule for large-dense vertices that appear inside tree components of \(G-S\), a 2-expansion reduction on clique components, and a packing analysis of induced \(P_3\) subgraphs inside \(V_{\mathrm{ld}}\). The maximal family \(\mathcal{P}\) of induced \(P_3\)s with pairwise intersection of size at most \(1\) is bounded by \(|\mathcal{P}|\le k^2\), hence \(|\bigcup_{P\in\mathcal{P}}P|\le 3k^2\). Multi-edges are handled by Buss rules for Vertex Cover, and the remainder of the large-dense region is organized into extended clique-modules. The final bound on the large-dense side is
\[
|V_{\mathrm{ld}}| \le 101k^2+40k.
\]
On the tree side, the paper obtains
\[
|V_{\mathrm{tree}}| \le 1232k^2.
\]
Combining these with the bounds on \(S\) and on clique components outside \(V_{\mathrm{ld}}\) yields the final estimate
\[
|V| \le (101k^2+40k) + 4k + (56k^2+8k) + 1232k^2 = 1389 k^2 + 52 k
\]
for the reduced instance [2509.16815].

A notable methodological point is that the paper presents this result as closing the gap with Feedback Vertex Set, which also admits an \(O(k^2)\)-vertex kernel. At the same time, it remarks that \(\mathrm{ctvd}(G)\) generalizes both \(\mathrm{cvd}(G)\) and \(\mathrm{fvs}(G)\), while still being more specific than clique-width [2509.16815].

## 5. Generalizations and algorithmic consequences

A broader scattered-class result was obtained for \((\mathrm{Proper\mbox{-}Interval}, \mathrm{Tree})\)-Vertex Deletion. That problem asks for a set \(X\subseteq V(G)\) of size at most \(k\) such that \(G-X\) is a simple graph and every connected component of \(G-X\) is a proper interval graph or a tree. The main kernelization theorem gives a polynomial kernel with \(O(k^{33})\) vertices [2605.02399].

For Cliques-or-Trees Vertex Deletion, this yields an immediate corollary because cliques are proper interval graphs. The paper states: since the class of cliques is a subclass of proper interval graphs, the kernelization for \((\mathrm{Proper\mbox{-}Interval}, \mathrm{Tree})\)-Vertex Deletion yields a polynomial kernel of size \(O(k^{33})\) for \((\mathrm{Clique}, \mathrm{Tree})\)-Vertex Deletion. It also notes that the literature has stronger kernels specifically tailored to \((\mathrm{Clique}, \mathrm{Tree})\)-Vertex Deletion, down to \(O(k^2)\) [2605.02399].

The parameter \(\mathrm{ctvd}(G)\) also has consequences beyond kernelization. The 2025 quadratic-kernel paper proves that Longest Cycle becomes fixed-parameter tractable when parameterized by the cliques or trees vertex deletion number. Its algorithm runs in time
\[
2^{O(k\log k)}\cdot n^{O(1)}.
\]
The high-level method guesses the order in which a candidate cycle visits the vertices of a modulator \(X\), labels top \(k\) components per ordered pair \((u,v)\in X\times X\) by the value \(q(C,u,v)\), and reduces the remainder to per-component instances of Longest Disjoint Terminal Paths. Clique components are handled in \(O^*(2^\ell)\) time via matching-based feasibility, while tree components are handled in \(O^*(3^\ell)\) time via dynamic programming over a rooted tree [2509.16815].

This combination of kernelization and downstream parameterized algorithms is one reason the 2025 work explicitly “initiates the study of the cliques or trees vertex deletion number as a structural parameter” [2509.16815].

## 6. Relation to adjacent deletion problems

The clique side of the subject is tightly connected to Cluster Vertex Deletion. A cluster graph is a disjoint union of cliques, equivalently a \(P_3\)-free graph. For \(H\)-free graphs, the complexity of Cluster Vertex Deletion and Connected Cluster Vertex Deletion is completely characterized: both are polynomially solvable on \(H\)-free graphs if \(H\) is an induced subgraph of \(P_4\), and NP-complete otherwise; in the NP-complete cases there is no \(2^{o(n)}\)-time algorithm on \(H\)-free \(n\)-vertex graphs unless ETH fails [2402.04931]. On the parameterized side, Cluster Vertex Deletion has an \(O(1.9102^k\cdot (n+m))\)-time branching algorithm based on the auxiliary graph \(H_v\), which encodes induced \(P_3\)s through a pivot vertex \(v\) as edges in a local vertex-cover instance [1306.3877]. On chordal graphs, the weighted problem is polynomial-time solvable by dynamic programming over clique trees and a reduction to the maximization of a supermodular function [2604.20457].

The tree side has its own deletion landscape. The problem of deleting vertices or edges to obtain a full binary tree is NP-hard in both versions, and both problems are fixed-parameter tractable by the standard parameter \(k\). The same work contrasts this with the classical fact that deleting edges to obtain a forest or a tree is equivalent to computing a minimum spanning tree, which is polynomial-time solvable [1912.12765].

These neighboring results clarify the position of Cliques-or-Trees Vertex Deletion. It inherits the clique-oriented behavior of Cluster Vertex Deletion and the cycle-oriented behavior of tree-deletion problems, but its scattered-class target creates genuinely mixed instances in which some components are optimally resolved on the dense side and others on the sparse side. The kernelization papers make this point explicit by using obstruction packings, expansion lemmas, clique-side marking, Gallai-style cycle control, and component correspondences that are specific to the hybrid target rather than to either constituent problem in isolation [2409.14209][2509.16815].

Source: https://www.emergentmind.com/topics/cliques-or-trees-vertex-deletion