Graph Isomorphism
Test whether two graphs have the same structure (a bijection between vertices that preserves edges).
| Algorithm | Complexity | When to use |
|---|---|---|
O(|V|!) worst case |
Test if two graphs are isomorphic (same structure, same size). Simple backtracking implementation. |
|
O(V2) best / O(V! · V) worst |
Test if one graph is isomorphic to an induced subgraph of another.
Also exposes |
|
Exponential |
Find the largest subgraph common to two graphs. |
| All graph isomorphism algorithms have exponential worst-case complexity. In practice they are fast on most real-world graphs due to pruning, but they can be slow on highly symmetric or regular graphs. |