Overview
VF2 grows a partial mapping between two graphs and rejects candidate node pairs when labels, adjacency to mapped nodes, or frontier constraints cannot be satisfied.
Tests graph or subgraph isomorphism by backtracking over node mappings with feasibility pruning.
Compact metadata for implementation and discovery.
VF2 grows a partial mapping between two graphs and rejects candidate node pairs when labels, adjacency to mapped nodes, or frontier constraints cannot be satisfied.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O((V + E) log V)
Worst
O(V^2 + E)
Space
O(V + E)
Show growing a partial node mapping while pruning infeasible candidate pairs on a small subgraph and graph isomorphism example.
VF2 is an exact backtracking method with strong pruning; it is not a complete escape from worst-case isomorphism hardness.
What each reference supports for this entry.
Implementation-oriented reference and citation trail for VF2 Graph Isomorphism's graph isomorphism matching behavior.
Open sourceAlgorithm catalog support for VF2 Graph Isomorphism and graph-matching tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Color refinement can quickly rule out some candidates before exact VF2-style search.
VF2 searches mappings directly, while canonical labeling normalizes graphs for comparison.