Uses of Interface
com.amalgamasimulation.graph.Algorithm.GraphTraversalPredicate
Packages that use Algorithm.GraphTraversalPredicate
-
Uses of Algorithm.GraphTraversalPredicate in com.amalgamasimulation.graph
Methods in com.amalgamasimulation.graph with parameters of type Algorithm.GraphTraversalPredicateModifier and TypeMethodDescriptionstatic <A,B, C> C Algorithm.traverse(Graph<A, B>.Node sourceNode, C sourceContext, Algorithm.GraphTraversalPredicate<A, B> traversedArcPredicate, Algorithm.GraphTraversalContextCalculator<A, B, C> recalculateNodeContext, Algorithm.GraphTraversalEndPredicate<A, B, C> endTraversalPredicate) Traverses the graph starting from the specified sourceNode by adding the arcs and nodes allowed by traversedArcPredicate until all reachable nodes are traversed or the specified endTraversalPredicate evaluated totrue.