vf2
VF2 is a graph matching algorithm used to determine subgraph isomorphism and, in some cases, graph isomorphism. It is part of the VF family of algorithms and was introduced by Cordella, Foggia, Sansone, and Vento. The method is designed to be efficient in practice by combining a depth-first search with strong pruning rules and a dynamic candidate selection strategy.
The problem it addresses involves two graphs: a pattern graph P and a target graph G. The
Feasibility checks are central to VF2’s pruning. A proposed pair (u, v) of pattern vertex u and
VF2 is widely used in domains such as cheminformatics, pattern recognition, and graph databases due to its