Skip to content

@graphty/algorithms / index / isGraphIsomorphic

Function: isGraphIsomorphic() ​

isGraphIsomorphic(graph1, graph2, options): IsomorphismResult

Defined in: algorithms/matching/isomorphism.ts:45

Check if two graphs are isomorphic using VF2 algorithm

Parameters ​

graph1 ​

Graph

The first graph to compare

graph2 ​

Graph

The second graph to compare

options ​

IsomorphismOptions = {}

Optional configuration for node and edge matching predicates

Returns ​

IsomorphismResult

An object indicating if the graphs are isomorphic and an optional mapping between nodes