Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
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(); }