java.lang.Object
org.jgrapht.alg.isomorphism.VF2GraphMappingIterator<V,E>
- Type Parameters:
V- the type of the verticesE- the type of the edges
- All Implemented Interfaces:
Iterator<GraphMapping<V,E>>
This class is used to iterate over all existing (isomorphic) mappings between two graphs. It is
used by the
VF2GraphIsomorphismInspector.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparator<E> protected Booleanprotected IsomorphicGraphMapping<V, E> protected GraphOrdering<V, E> protected GraphOrdering<V, E> protected ArrayDeque<org.jgrapht.alg.isomorphism.VF2State<V, E>> protected Comparator<V> -
Constructor Summary
ConstructorsConstructorDescriptionVF2GraphMappingIterator(GraphOrdering<V, E> ordering1, GraphOrdering<V, E> ordering2, Comparator<V> vertexComparator, Comparator<E> edgeComparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()protected IsomorphicGraphMapping<V, E> match()This function moves over all mappings between graph1 and graph2.protected IsomorphicGraphMapping<V, E> next()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
vertexComparator
-
edgeComparator
-
nextMapping
-
hadOneMapping
-
ordering1
-
ordering2
-
stateStack
-
-
Constructor Details
-
VF2GraphMappingIterator
public VF2GraphMappingIterator(GraphOrdering<V, E> ordering1, GraphOrdering<V, E> ordering2, Comparator<V> vertexComparator, Comparator<E> edgeComparator) - Parameters:
ordering1-ordering2-vertexComparator-edgeComparator-
-
-
Method Details
-
match
This function moves over all mappings between graph1 and graph2. It changes the state of the whole iterator.- Returns:
- null or one matching between graph1 and graph2
-
matchAndCheck
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-