public class DFS extends Object implements GraphTraversal
BFS the traversal is performed at instance
creation. The iteration is then made on the stored topological sort. The
topological sort can also be retrieve.| Constructor and Description |
|---|
DFS(G g,
Set<org.openrdf.model.URI> sources,
WalkConstraint wc)
Create a DFS iterator, note that DFS is performed at instance creation.
|
DFS(G g,
org.openrdf.model.URI source,
WalkConstraint wc) |
| Modifier and Type | Method and Description |
|---|---|
List<org.openrdf.model.URI> |
getTraversalOrder()
Returns the traversal ordering resulting of the DFS i.e topological sort.
|
boolean |
hasNext()
Check if the traversal is finished.
|
org.openrdf.model.URI |
next()
Return the next vertex of the traversal.
|
public DFS(G g, Set<org.openrdf.model.URI> sources, WalkConstraint wc)
public DFS(G g, org.openrdf.model.URI source, WalkConstraint wc)
public boolean hasNext()
GraphTraversalhasNext in interface GraphTraversalpublic org.openrdf.model.URI next()
GraphTraversalnext in interface GraphTraversalpublic List<org.openrdf.model.URI> getTraversalOrder()
Copyright © 2014. All rights reserved.