Skip to content

On the Complexity of Graph Edit Distance in Restricted Graph Classes

Jul 2026 · arXiv.org · Vol abs/2607.18914 · 0 citations · 22 references
Computer Science

TL;DR

It is proved that both the maximum common edge subgraph and the graph edit distance remain NP-hard, even when both graphs are paths, even when one graph is a path and the other is a tree.

Abstract

The graph edit distance generalizes several well-known NP-hard problems and is therefore NP-hard itself. However, the relationship between the considered graph class, the edit cost function, and the resulting computational complexity is not well understood. We investigate this interplay by revisiting polynomial-time reductions from the literature, which reduce subgraph isomorphism and maximum common induced subgraph to the graph edit distance. For these classical problems, a sharp distinction between NP-hard and polynomial-time solvable cases is known, and we make the implications for the complexity of the graph edit distance explicit. We establish a graph-class-preserving correspondence between the maximum common edge subgraph and graph edit distance under a specific cost function, both in labeled and unlabeled graphs. In the unlabeled setting, the maximum common edge subgraph problem is polynomial-time solvable when one graph is a path and the other is a tree. In contrast, for labeled graphs, we prove that both the maximum common edge subgraph and the graph edit distance remain NP-hard, even when both graphs are paths.

View source

Similar papers

Preprint Aug 2026

A Separator-based Algorithm for the Graph Edit Distance Problem

A novel exponential time algorithm is presented to compute the exact GED and a corresponding edit sequence in $O^*(4 + \varepsilon)^n$ time and polynomial space, provided one of the two graphs admits strictly sublinear balanced separators.

L. Bülte, Philip Mayer, Lars Müller et al. · 0 citations
Preprint Aug 2026

Instance-Optimality of Bidirectional Dijkstra on Simple Graphs

It is shown that bidirectional Dijkstra is still instance-optimal on simple undirected weighted graphs under the order-oblivious model, where incident edges are given in a random order, and under the order-dependent model, where bidirectional Dijkstra is not instance-optimal.

Christian Bertram, Mads Vestergaard Jensen, Mikkel Thorup et al. · 1 citation
Jul 2026

Structural Tractability Frontiers for Metric Repair

This paper asks what structural properties of the graph itself make metric repair tractable, and gives pseudo-polynomial time algorithms for series-parallel graphs, and by generalization, graphs of bounded treewidth and a new algorithm for the length-bounded multicut problem.

Asaf Etgar, A. Gilbert, Jamie Tucker-Foltz · 0 citations
Jul 2026

The Minimum Dominating Set Problem on Bipartite Circle Graphs: Complexity and Approximation

It is proved that the problem of computing a minimum dominating set on bipartite circle graphs admitting a chord representation in which the chords can be partitioned into two color classes such that no two chords of the same color intersect remains NP-hard.

A. K. Abu-Affash, Paz Carmi, Joseph S. B. Mitchell · 0 citations
Jul 2026

Edge-decomposition into Two Triangular Forests is NP-complete

Let $\mathcal F$ be a graph class that is closed under topological minors and 1-sums, has decidable membership, contains a triangle, and is not the class of all graphs. Recently, Lee, Liu, and Tsai [ICALP 2026] showed that the edge-decomposition problem into $k \geq 3$ elements of $\mathcal F$ is NP-hard. In particular...

Beniamin Bibrowski, Tomáš Masařík · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.