Skip to main content
QUICK REVIEW

[Paper Review] A Quadratic Assignment Formulation of the Graph Edit Distance

Sébastien Bougleux, Luc Brun|arXiv (Cornell University)|Dec 23, 2015
Graph Theory and AlgorithmsComputer Science32 references10 citations
TL;DR

This paper formulates the graph edit distance (GED) as a quadratic assignment problem (QAP) by introducing an ϵ-assignment matrix that encodes node substitutions, removals, and insertions. The key contribution is a one-to-one correspondence between equivalence classes of ϵ-assignment matrices and injective mappings from a subset of source nodes to target nodes, enabling exact GED computation via QAP optimization.

ABSTRACT

Computing efficiently a robust measure of similarity or dissimilarity between graphs is a major challenge in Pattern Recognition. The Graph Edit Distance (GED) is a flexible measure of dissimilarity between graphs which arises in error-tolerant graph matching. It is defined from an optimal sequence of edit operations (edit path) transforming one graph into an other. Unfortunately, the exact computation of this measure is NP-hard. In the last decade, several approaches have been proposed to approximate the GED in polynomial time, mainly by solving linear programming problems. Among them, the bipartite GED has received much attention. It is deduced from a linear sum assignment of the nodes of the two graphs, which can be efficiently computed by Hungarian-type algorithms. However, edit operations on nodes and edges are not handled simultaneously, which limits the accuracy of the approximation. To overcome this limitation, we propose to extend the linear assignment model to a quadratic one, for directed or undirected graphs having labelized nodes and edges. This is realized through the definition of a family of edit paths induced by assignments between nodes. We formally show that the GED, restricted to the paths in this family, is equivalent to a quadratic assignment problem. Since this problem is NP-hard, we propose to compute an approximate solution by an adaptation of the Integer Projected Fixed Point method. Experiments show that the proposed approach is generally able to reach a more accurate approximation of the optimal GED than the bipartite GED, with a computational cost that is still affordable for graphs of non trivial sizes.

Motivation & Objective

  • To provide a formal mathematical formulation of the graph edit distance using quadratic assignment programming.
  • To define a new class of matrices—ϵ-assignment matrices—that encode all possible edit operations (substitution, removal, insertion) on graphs.
  • To establish a one-to-one correspondence between equivalence classes of ϵ-assignment matrices and injective functions from source node subsets to target nodes.
  • To enable exact computation of graph edit distance through a well-defined combinatorial optimization framework.

Proposed method

  • Introduces an (n+m)×(m+n) ϵ-assignment matrix composed of four block matrices: X_sub (substitutions), X_rem (removals), X_ins (insertions), and X_ϵ (auxiliary for permutation constraints).
  • Imposes constraints ensuring X_rem and X_ins are diagonal matrices, enforcing that only one node can be removed or inserted at a time.
  • Defines an equivalence relation on ϵ-assignment matrices based on equality of substitution, removal, and insertion blocks.
  • Uses the auxiliary matrix X_ϵ to enforce that the full matrix X is a permutation matrix, preserving the structure required for valid edit paths.
  • Establishes a bijective mapping between equivalence classes of ϵ-assignment matrices and injective functions from a subset of source nodes to target nodes.
  • Leverages the permutation matrix structure to model valid edit sequences as injective mappings, enabling exact QAP-based GED computation.

Experimental results

Research questions

  • RQ1How can the graph edit distance be formally expressed as a quadratic assignment problem?
  • RQ2What matrix structure is required to encode all possible edit operations (substitution, removal, insertion) while preserving validity?
  • RQ3Is there a one-to-one correspondence between valid edit paths and injective mappings between node sets?
  • RQ4How can the equivalence of ϵ-assignment matrices be defined to reduce redundancy in the search space?
  • RQ5Can the QAP formulation of GED be grounded in a well-defined combinatorial structure with proven correspondence to edit paths?

Key findings

  • The set of all ϵ-assignment matrices An,m is defined as (n+m)×(m+n) matrices satisfying permutation matrix constraints and specific block structure.
  • The equivalence relation ∼ on An,m identifies matrices with identical substitution, removal, and insertion blocks, forming the set An,m∼.
  • There exists a one-to-one correspondence between An,m∼ and the set of injective functions from a subset of X={1,…,n} to Y={1,…,m}.
  • The mapping φ_X is injective due to the permutation matrix constraint, ensuring no two source nodes map to the same target node.
  • The formulation ensures that all valid edit paths are captured through the injective function representation.
  • The QAP formulation provides a rigorous algebraic framework for exact graph edit distance computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.