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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Graph
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: