Module org.jgrapht.core
Package org.jgrapht.alg.similarity
Class ZhangShashaTreeEditDistance.TreeOrdering.StackEntry
- java.lang.Object
-
- org.jgrapht.alg.similarity.ZhangShashaTreeEditDistance.TreeOrdering.StackEntry
-
- Enclosing class:
- ZhangShashaTreeEditDistance.TreeOrdering
private class ZhangShashaTreeEditDistance.TreeOrdering.StackEntry extends java.lang.ObjectAuxiliary class which stores all needed variables to emulate recursive execution of DFS algorithm incomputeKeyrootsAndMapping()method.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanisKeyrootIndites ifvis a keyroot wrttree.(package private) booleanisKeyrootArgIndicates if the next vertex returned byvChildIteratorwill be a keyroot.(package private) intlValueValue of the $l()$ function forv;(package private) intlVChildValue of $l()$ function forvChild.(package private) intstateAuxiliary field which helps to identify which part of the recursive procedure should be executed next for this stack entry.(package private) VvA vertex fromtree.(package private) VvChildCurrent child vertex ofv.(package private) java.util.Iterator<V>vChildIteratorIterates over children of $v$ intree.(package private) VvParentParent vertex ofvintreeor $null$ ifvis root oftree.
-
Constructor Summary
Constructors Constructor Description StackEntry(V v, boolean isKeyroot)Constructs an instance of the stack entry for the givenvandisKeyroot
-
-
-
Field Detail
-
v
V v
A vertex fromtree.
-
isKeyroot
boolean isKeyroot
Indites ifvis a keyroot wrttree.
-
vParent
V vParent
Parent vertex ofvintreeor $null$ ifvis root oftree.
-
isKeyrootArg
boolean isKeyrootArg
Indicates if the next vertex returned byvChildIteratorwill be a keyroot.
-
lValue
int lValue
Value of the $l()$ function forv;
-
vChildIterator
java.util.Iterator<V> vChildIterator
Iterates over children of $v$ intree.
-
vChild
V vChild
Current child vertex ofv.
-
lVChild
int lVChild
Value of $l()$ function forvChild.
-
state
int state
Auxiliary field which helps to identify which part of the recursive procedure should be executed next for this stack entry.
-
-
Constructor Detail
-
StackEntry
public StackEntry(V v, boolean isKeyroot)
Constructs an instance of the stack entry for the givenvandisKeyroot- Parameters:
v- a vertex fromtreeisKeyroot- true iffvis a keyroot
-
-