Constructor and Description |
---|
BFS.VS() |
Modifier and Type | Method and Description |
---|---|
int |
depth()
The depth at which this vertex was first visited (origin ZERO) and
-1 if the vertex has not been visited. |
org.openrdf.model.Value |
predecessor()
Return the first vertex to discover this vertex during BFS traversal.
|
String |
toString() |
boolean |
visit(int depth,
org.openrdf.model.Value predecessor)
Note: This marks the vertex at the current traversal depth.
|
public int depth()
-1
if the vertex has not been visited.public org.openrdf.model.Value predecessor()
public boolean visit(int depth, org.openrdf.model.Value predecessor)
true
if the vertex was visited for the first
time in this round and the calling thread is the thread that
first visited the vertex (this helps to avoid multiple
scheduling of a vertex).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.