arXiv:2610.20510cs.DSOct 2026

Manuscript Offprint

arXiv:2610.20510

Claw-Free and Line Graph Edge Deletion on Block Graphs

Rajat Adak

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Rajat Adak

Department of Computer Science and Automation, Indian Institute of Science,

Bengaluru, India

rajatadak@iisc.ac.in

Abstract. Edge deletion problems ask for the fewest edges whose deletion gives a graph with a specified property. We study two such problems on block graphs. First making the graph claw-free, and second making it a line graph. Since every line graph is claw-free, the second problem is at least as difficult as the first. We show that on block graphs the two optimum values are always equal, and both are attained by the line graph of a forest. The main step is a completion argument, in which starting from any claw-free solution, we put back edges to get some nice structure inside each block still maintaining the claw-free property. This reduces both edge-deletion problems to the same problem of selecting vertices within the blocks of the input graph. We solve it by dynamic programming in O(n+m)O(n+m) time, which also produces an optimal deletion set and a forest whose line graph is what remains after the completion argument. We also extend the method to K1,r+1K_{1,r+1}-free edge deletion for every fixed r.

Keywords: Edge deletion · Claw-free graphs · Line graphs · Block graphs · Dynamic programming

1 Introduction

Graph modification problems ask for a minimum set of changes to a graph so that the resulting graph has a desired property or belongs to a prescribed graph class. Depending on the allowed operation, one may delete vertices, add edges (completion), delete edges, or both add and delete edges (editing), see, for example, [10,4]. In the edge-deletion problems, given a graph GG and a target class C\mathcal{C}, we try to find a smallest set D⊆E(G)D \subseteq E(G) for which G−D∈CG - D \in \mathcal{C}. Even when membership in C\mathcal{C} is easy to test, finding the minimum deletion set can be difficult. For instance, HH-free edge deletion is NP-complete on general graphs whenever the fixed forbidden induced graph HH has at least two edges [1]. This includes claw-free edge deletion. Edge deletion to several tree-like target classes is also hard on general inputs [9].

For an induced-subgraph condition, deleting edges can create an obstruction as well as remove one. If a vertex has three neighbors with just one edge between them, deleting that edge creates an induced claw. Thus a solution cannot in

Rajat Adak

general be obtained just by destroying the claws present in the original graph. We study how the structure of a block graph makes it possible to optimize all deletion problems together.

A block is a maximal connected subgraph without a cut vertex. A block on two vertices is called a bridge. A block graph is a graph whose blocks are all cliques. It is easy to check that trees and cliques are trivially block graphs. The cliques of a block graph intersect at cut vertices, and their incidences have a forest structure. This provides a natural setting for dynamic programming, although edges deleted within a clique may leave a subgraph with no obvious structure.

Our two target classes are claw-free graphs and line graphs. A claw is an induced K1,3K_{1,3}, so a graph is claw-free precisely when no vertex has three pairwise nonadjacent neighbors. The line graph L(R)L(R) of a graph RR has a vertex for each edge of RR. Two vertices of L(R)L(R) are adjacent when the corresponding edges of RR share an endpoint. We call RR a root graph. It is easy to see that every line graph is claw-free. The neighbors of the vertex corresponding to an edge xyxy are covered by the clique (in L(R)L(R)) of edges incident with xx and the clique of edges incident with yy. The containment is strict. For example, the wheel on 6 vertices, W6≅K1∨C5W_6 \cong K_1 \vee C_5 is claw-free, but the neighborhood of its hub is a C5C_5 and cannot be covered by two cliques (see Section 7).

Several related modification problems have been studied on or towards block graphs. The classical characterization of connected claw-free block graphs as line graphs of trees is due to Chartrand, check [8, Theorem 8.5]. Bonomo et al. [2] gave a polynomial-time algorithm for weighted cluster deletion on block graphs, with disjoint unions of cliques as the target. Bonomo-Braberman et al. obtained a linear-time algorithm for claw-free vertex deletion on weighted block graphs [3]. Dumas et al. studied edge modification towards block graphs, with arbitrary input graphs and block graphs as the target. They showed that edge deletion and editing to block graphs are NP-complete, and gave O(k2)O(k^{2})-vertex kernels for these variants when parameterized by the number k of changes [6]. For general inputs, Cygan et al. obtained a polynomial kernel for simultaneous claw-and-diamond-free edge deletion, and Eiben and Lochet obtained one for line-graph edge deletion [5,7]. Here the input is a block graph and the task is to find a spanning claw-free or line subgraph after deleting least number of edges. We show that every claw-free solution can be completed to a claw-free block graph, and optimize this structure in linear time.