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