Package org.jgrapht.alg
Class TarjanLowestCommonAncestor.LcaRequestResponse<V>
- java.lang.Object
-
- org.jgrapht.alg.TarjanLowestCommonAncestor.LcaRequestResponse<V>
-
- Type Parameters:
V
- the graph vertex type
- Enclosing class:
- TarjanLowestCommonAncestor<V,E>
public static class TarjanLowestCommonAncestor.LcaRequestResponse<V> extends java.lang.Object
Data transfer object for LCA request and response.
-
-
Constructor Summary
Constructors Constructor Description LcaRequestResponse(V a, V b)
Create a new LCA request response data transfer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getA()
Get the first vertex of the requestV
getB()
Get the second vertex of the requestV
getLca()
Get the least common ancestor(package private) void
setLca(V lca)
-
-
-
Method Detail
-
getA
public V getA()
Get the first vertex of the request- Returns:
- the first vertex of the request
-
getB
public V getB()
Get the second vertex of the request- Returns:
- the second vertex of the request
-
getLca
public V getLca()
Get the least common ancestor- Returns:
- the least common ancestor
-
setLca
void setLca(V lca)
-
-