Package com.jgalgo
Interface LowestCommonAncestorDynamic.Node
-
- Enclosing interface:
- LowestCommonAncestorDynamic
public static interface LowestCommonAncestorDynamic.Node
A tree node in anLowestCommonAncestorDynamic
data structure.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <D> D
getNodeData()
Get the user data of this node.LowestCommonAncestorDynamic.Node
getParent()
Get the parent node of this node.void
setNodeData(Object data)
Set the user data of this node.
-
-
-
Method Detail
-
getParent
LowestCommonAncestorDynamic.Node getParent()
Get the parent node of this node.- Returns:
- the parent of this node or
null
if this node is the root of the tree.
-
getNodeData
<D> D getNodeData()
Get the user data of this node.Note that the conversion of the data stored in the implementation to the user type is unsafe.
- Type Parameters:
D
- the data type- Returns:
- the user data of this node
-
setNodeData
void setNodeData(Object data)
Set the user data of this node.- Parameters:
data
- new value for this node
-
-