public class VF2State extends Object
VF2Algorithm. In particular, VF2State supports method backtrack() to reset it to
its previous state.| Constructor and Description |
|---|
VF2State(Graph patternGraph,
Graph targetGraph)
Computes a new initial state from two graphs
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidate(int p,
int t)
Adds a new candidate to the underlying partial matching.
|
void |
backtrack()
Undoes the last change to the state.
|
VF2GraphData |
getPattern() |
int |
getPatternCandidate() |
VF2GraphData |
getTarget() |
int |
getTargetCandidate() |
boolean |
nextCandidate()
Computes the next candidate pair to be considered.
|
VF2State |
shallowCopy() |
public VF2State shallowCopy()
public VF2GraphData getPattern()
public VF2GraphData getTarget()
public void backtrack()
public void addCandidate(int p,
int t)
p - The pattern candidate to add to the matching described by this state.t - The target candidate to add to the matching described by this state.public boolean nextCandidate()
getPatternCandidate() and getTargetCandidate().public int getPatternCandidate()
public int getTargetCandidate()
Copyright © 2019. All rights reserved.