public abstract class AbstractIsomorphismTester extends Object implements IsomorphismTester
IsomorphismTester that relies on
algorithm-specific State implementations to check for edge and vertex
contraints when performing isomorphism testing.
This class is a an adaptation of parts of the VFLib library.
| Constructor and Description |
|---|
AbstractIsomorphismTester() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areIsomorphic(Graph<? extends Edge> g1,
Graph<? extends Edge> g2)
Returns
true if the graphs are isomorphism of each other. |
Map<Integer,Integer> |
findIsomorphism(Graph<? extends Edge> g1,
Graph<? extends Edge> g2)
Returns an isomorphic mapping from the vertices in
g1 to the
vertices in g2, or an empty Map if no such mapping
exists. |
protected abstract State |
makeInitialState(Graph<? extends Edge> g1,
Graph<? extends Edge> g2)
|
public boolean areIsomorphic(Graph<? extends Edge> g1, Graph<? extends Edge> g2)
true if the graphs are isomorphism of each other.areIsomorphic in interface IsomorphismTesterpublic Map<Integer,Integer> findIsomorphism(Graph<? extends Edge> g1, Graph<? extends Edge> g2)
g1 to the
vertices in g2, or an empty Map if no such mapping
exists.findIsomorphism in interface IsomorphismTesterCopyright © 2012. All Rights Reserved.