Home Knowledge Base Graph Edit Distance (GED)

Graph Edit Distance (GED) is a similarity metric between two graphs defined as the minimum total cost of edit operations (node insertions, node deletions, edge insertions, edge deletions, node substitutions, edge substitutions) required to transform one graph into the other — providing an intuitive, flexible, and label-aware distance measure that captures both structural and attribute differences between graphs.

What Is Graph Edit Distance?

Why Graph Edit Distance Matters

GED Computation Methods

MethodTypeComplexityGraph Size
A* SearchExact$O(N!)$ worst case$leq$ 12 nodes
Bipartite Matching (BP)Lower bound$O(N^3)$$leq$ 100 nodes
Beam SearchApproximate$O(b cdot N^2)$$leq$ 500 nodes
SimGNNNeural approximation$O(N^2)$ forward pass$leq$ 10,000 nodes
Graph Matching NetworkNeural approximation$O(N^2)$ with cross-attention$leq$ 10,000 nodes

Graph Edit Distance is structural typo counting — measuring how many atomic changes (insertions, deletions, substitutions) separate one graph from another, providing the most interpretable and flexible graph similarity metric at the cost of computational intractability that drives the search for neural approximation methods.

graph edit distancegraph algorithms

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.