public abstract class VF2AbstractIsomorphismInspector<V,E> extends Object implements IsomorphismInspector<V,E>
Modifier and Type | Field and Description |
---|---|
protected Comparator<E> |
edgeComparator |
protected Graph<V,E> |
graph1 |
protected Graph<V,E> |
graph2 |
protected org.jgrapht.alg.isomorphism.GraphOrdering<V,E> |
ordering1 |
protected org.jgrapht.alg.isomorphism.GraphOrdering<V,E> |
ordering2 |
protected Comparator<V> |
vertexComparator |
Constructor and Description |
---|
VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
Graph<V,E> graph2) |
VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
Graph<V,E> graph2,
boolean cacheEdges) |
VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
Graph<V,E> graph2,
Comparator<V> vertexComparator,
Comparator<E> edgeComparator) |
VF2AbstractIsomorphismInspector(Graph<V,E> graph1,
Graph<V,E> graph2,
Comparator<V> vertexComparator,
Comparator<E> edgeComparator,
boolean cacheEdges)
This implementation of the VF2 algorithm does not support graphs with
multiple edges.
|
protected Comparator<V> vertexComparator
protected Comparator<E> edgeComparator
public VF2AbstractIsomorphismInspector(Graph<V,E> graph1, Graph<V,E> graph2, Comparator<V> vertexComparator, Comparator<E> edgeComparator, boolean cacheEdges)
graph1
- the first graphgraph2
- the second graphvertexComparator
- comparator for semantic equivalence of verticesedgeComparator
- comparator for semantic equivalence of edgescacheEdges
- if true, edges get cached for faster accesspublic VF2AbstractIsomorphismInspector(Graph<V,E> graph1, Graph<V,E> graph2, Comparator<V> vertexComparator, Comparator<E> edgeComparator)
public VF2AbstractIsomorphismInspector(Graph<V,E> graph1, Graph<V,E> graph2, boolean cacheEdges)
public abstract Iterator<GraphMapping<V,E>> getMappings()
getMappings
in interface IsomorphismInspector<V,E>
public boolean isomorphismExists()
isomorphismExists
in interface IsomorphismInspector<V,E>
Copyright © 2016. All rights reserved.