GraphLab Project

graphlab.library.event.handlers
Interface PostWorkHandler<VertexType extends BaseVertex>

All Known Subinterfaces:
PreWorkPostWorkHandler<VertexType>

public interface PostWorkHandler<VertexType extends BaseVertex>

Handles postwork used by algorithms such as BFS. Depending on the application, the user can define custom classes that implements PostWorkHandler and pass them to algorithms.

Author:
Omid Aladini

Method Summary
 boolean doPostWork(VertexType returnFrom, VertexType returnTo)
          Does postwork when traversing back from w to v.
 

Method Detail

doPostWork

boolean doPostWork(VertexType returnFrom,
                   VertexType returnTo)
Does postwork when traversing back from w to v.

Parameters:
returnFrom - Id of the vertex traversing back from.
returnTo - Id of the vertex traversing back to.
Returns:
whether the traversal should stop at this point.

GraphLab Project