Package com.jgalgo.alg
Interface LowestCommonAncestorDynamic.Vertex
-
- Enclosing interface:
- LowestCommonAncestorDynamic
public static interface LowestCommonAncestorDynamic.VertexA tree vertex in anLowestCommonAncestorDynamicdata structure.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <D> DgetData()Get the user data of this vertex.LowestCommonAncestorDynamic.VertexgetParent()Get the parent vertex of this vertex.voidsetData(Object data)Set the user data of this vertex.
-
-
-
Method Detail
-
getParent
LowestCommonAncestorDynamic.Vertex getParent()
Get the parent vertex of this vertex.- Returns:
- the parent of this vertex or
nullif this vertex is the root of the tree.
-
getData
<D> D getData()
Get the user data of this vertex.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 vertex
-
setData
void setData(Object data)
Set the user data of this vertex.- Parameters:
data- new value for this vertex
-
-