Package org.graph4j.isomorphism
Interface State
- All Known Implementing Classes:
AbstractState,AbstractUllmanState,AbstractVF2State,UllmanExactState,UllmanSubState,VF2ExactState,VF2SubState
public interface State
Interface for the state of the search algorithm. A state is a partial
solution of the graph isomorphism problem.
- Author:
- Ignat Gabriel-Andrei
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPair()Adds the current pair of vertices to the mapping.voidBacktracks to the previous state.intReturn the mapping of the current statebooleanisDead()Checks if the current state is a dead end(no solution can be found from here).booleanChecks if the current pair of vertices is feasible.booleanisGoal()Checks if the current state is a goal state(a complete solution was found).booleannextPair()Computes the next pair of vertices to be added to the mapping.void
-
Field Details
-
NULL_NODE
static final int NULL_NODE- See Also:
-
DEBUG
static final boolean DEBUG- See Also:
-
-
Method Details
-
nextPair
boolean nextPair()Computes the next pair of vertices to be added to the mapping. Return true if a pair was found, false otherwise -
isFeasiblePair
boolean isFeasiblePair()Checks if the current pair of vertices is feasible. Return true if the pair is feasible, false otherwise -
isDead
boolean isDead()Checks if the current state is a dead end(no solution can be found from here). Return true if the state is a dead end, false otherwise -
isGoal
boolean isGoal()Checks if the current state is a goal state(a complete solution was found). Return true if the state is a goal state, false otherwise -
addPair
void addPair()Adds the current pair of vertices to the mapping. -
backTrack
void backTrack()Backtracks to the previous state. -
getMapping
Isomorphism getMapping()Return the mapping of the current state -
resetPreviousVertices
void resetPreviousVertices() -
getCoreLen
int getCoreLen()
-