java.lang.Object
org.jhotdraw8.graph.path.backlink.AbstractBackLink<ArcBackLink<V,A>>
org.jhotdraw8.graph.path.backlink.ArcBackLink<V,A>
- Type Parameters:
V- the vertex typeA- the arrow type
Represents an arc back link with depth.
-
Field Summary
Fields inherited from class org.jhotdraw8.graph.path.backlink.AbstractBackLink
depth, parent -
Constructor Summary
ConstructorsConstructorDescriptionArcBackLink(@NonNull V vertex, @Nullable A arrow, @Nullable ArcBackLink<V, A> parent) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetArrow()static <VV,AA, CC extends Number & Comparable<CC>>
@Nullable ArcBackLinkWithCost<VV, AA, CC> toArcBackLinkWithCost(@Nullable ArcBackLink<VV, AA> node, @NonNull CC zero, @NonNull Function3<VV, VV, AA, CC> costFunction, @NonNull BiFunction<CC, CC, CC> sumFunction) Converts anArcBackLinktoArcBackLinkWithCost.toString()Methods inherited from class org.jhotdraw8.graph.path.backlink.AbstractBackLink
getDepth, getParent
-
Constructor Details
-
ArcBackLink
Creates a new instance.- Parameters:
vertex- the vertex dataarrow- the arrow dataparent- the parent back link
-
-
Method Details
-
getArrow
-
getVertex
-
toString
-
toArcBackLinkWithCost
public static <VV,AA, @Nullable ArcBackLinkWithCost<VV,CC extends Number & Comparable<CC>> AA, toArcBackLinkWithCostCC> (@Nullable ArcBackLink<VV, AA> node, @NonNull CC zero, @NonNull Function3<VV, VV, AA, CC> costFunction, @NonNull BiFunction<CC, CC, CC> sumFunction) Converts anArcBackLinktoArcBackLinkWithCost.- Type Parameters:
VV- the vertex data typeAA- the arrow data typeCC- the cost number type- Parameters:
node- theArcBackLinkzero- the zero cost valuecostFunction- the cost functionsumFunction- the sum function for cost values- Returns:
- the converted
ArcBackLinkWithCost
-