Class ZhangShashaTreeEditDistance.TreeOrdering.StackEntry
java.lang.Object
org.jgrapht.alg.similarity.ZhangShashaTreeEditDistance.TreeOrdering.StackEntry
- Enclosing class:
ZhangShashaTreeEditDistance.TreeOrdering
Auxiliary class which stores all needed variables to emulate recursive execution of DFS
algorithm in
computeKeyrootsAndMapping() method.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanIndites ifvis a keyroot wrttree.(package private) booleanIndicates if the next vertex returned byvChildIteratorwill be a keyroot.(package private) intValue of the $l()$ function forv;(package private) intValue of $l()$ function forvChild.(package private) intAuxiliary field which helps to identify which part of the recursive procedure should be executed next for this stack entry.(package private) VA vertex fromtree.(package private) VCurrent child vertex ofv.Iterates over children of $v$ intree.(package private) VParent vertex ofvintreeor $null$ ifvis root oftree. -
Constructor Summary
ConstructorsConstructorDescriptionStackEntry(V v, boolean isKeyroot) Constructs an instance of the stack entry for the givenvandisKeyroot -
Method Summary
-
Field Details
-
v
V vA vertex fromtree. -
isKeyroot
boolean isKeyrootIndites ifvis a keyroot wrttree. -
vParent
V vParentParent vertex ofvintreeor $null$ ifvis root oftree. -
isKeyrootArg
boolean isKeyrootArgIndicates if the next vertex returned byvChildIteratorwill be a keyroot. -
lValue
int lValueValue of the $l()$ function forv; -
vChildIterator
-
vChild
V vChildCurrent child vertex ofv. -
lVChild
int lVChildValue of $l()$ function forvChild. -
state
int stateAuxiliary field which helps to identify which part of the recursive procedure should be executed next for this stack entry.
-
-
Constructor Details
-
StackEntry
Constructs an instance of the stack entry for the givenvandisKeyroot- Parameters:
v- a vertex fromtreeisKeyroot- true iffvis a keyroot
-