Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-372

Make the org.apache.commons.graph.visit.GraphVisitHandler able to return objects

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Graph
    • Labels:
      None

      Description

      Graph visit could produce output objects, taking inspiration form DbUtil's ResultSetHandler and AsyncHttpClient's AsyncHandler it would be possible invoke:

      final List<V> visited = visit( inputGraph ).from( startVertex ).applyingDepthFirstSearch( new MyHandler() );
      

      just adding a callback method in GraphVisitHandler, something like:

      public interface GraphVisitHandler<V extends Vertex, E extends Edge, G extends Graph<V, E>, O>
      {
      
          [...]
      
          O onCompleted();
      
      }
      

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              simone.tripodi Simone Tripodi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: