Module org.jhotdraw8.graph
Class AbstractBackLink<T extends AbstractBackLink<T>>
java.lang.Object
org.jhotdraw8.graph.path.backlink.AbstractBackLink<T>
- Type Parameters:
T- the concrete back link type
- Direct Known Subclasses:
AbstractBackLinkWithCost,ArcBackLink,ArcBackLinkWithAncestorSet,IndexedVertexBackLink,VertexBackLink,VertexBackLinkWithAncestorSet
Abstract base class for back links.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
depth
protected final int depthThe number of ancestors that this back link has. -
parent
The parent back link.
-
-
Constructor Details
-
AbstractBackLink
Creates a new instance.- Parameters:
parent- the parent back link
-
-
Method Details
-
getDepth
public int getDepth()The number of ancestors that this backlink has.- Returns:
- the depth
-
getParent
The parent back link.- Returns:
- the parent
-