slib.sglib.algo.graph.traversal
Interface GraphTraversal

All Known Implementing Classes:
BFS, DFS

public interface GraphTraversal

GraphTraversal interface

Author:
Sebastien Harispe

Method Summary
 boolean hasNext()
          Check if the traversal is finished.
 org.openrdf.model.URI next()
          Return the next vertex of the traversal.
 

Method Detail

hasNext

boolean hasNext()
Check if the traversal is finished.

Returns:
true if the traversal contains a vertex which has not been visited. Return false if the traversal is finished.

next

org.openrdf.model.URI next()
Return the next vertex of the traversal.

Returns:
the next vertex of the traversal.


Copyright © 2013. All Rights Reserved.