Class Graph.EdgeFilter.SingleTraversalEdgeFilter<T,U>

java.lang.Object
org.savantbuild.util.Graph.EdgeFilter.SingleTraversalEdgeFilter<T,U>
All Implemented Interfaces:
Graph.EdgeFilter<T,U>
Enclosing interface:
Graph.EdgeFilter<T,U>

public static class Graph.EdgeFilter.SingleTraversalEdgeFilter<T,U> extends Object implements Graph.EdgeFilter<T,U>
An edge filter that only returns true if an edge has not been traversed yet.
  • Constructor Details

    • SingleTraversalEdgeFilter

      public SingleTraversalEdgeFilter()
  • Method Details

    • filter

      public boolean filter(Graph.Edge<T,U> edge, Graph.Edge<T,U> entryPoint)
      Description copied from interface: Graph.EdgeFilter
      Tests the edge.
      Specified by:
      filter in interface Graph.EdgeFilter<T,U>
      Parameters:
      edge - The edge.
      entryPoint - The entry point to the current node.
      Returns:
      True if the edge should be kept, false if it should be ignored.