Interface Algorithm.GraphTraversalEndPredicate<A,B,C>

Enclosing interface:
Algorithm
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Algorithm.GraphTraversalEndPredicate<A,B,C>
Functional interface for a predicate answering the question "Must we end the traversal after we added the specific arc, node and calculated the specific node context?"

Example of implementation for context of type Double:

(addedArc, addedNode, addedNodeContext) -> addedNodeContext >= 100

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    endTraversalAfter(Graph<A,B>.Arc addedArc, Graph<A,B>.Node addedNode, C addedNodeContext)
    Predicate answering the question "Must we end the traversal after we added the specific arc, node and calculated the specific node context?"
  • Method Details

    • endTraversalAfter

      boolean endTraversalAfter(Graph<A,B>.Arc addedArc, Graph<A,B>.Node addedNode, C addedNodeContext)
      Predicate answering the question "Must we end the traversal after we added the specific arc, node and calculated the specific node context?"
      Parameters:
      addedArc - added arc
      addedNode - added node
      addedNodeContext - context of the added node
      Returns:
      true if we must end the traversal, false otherwise
      See Also: