Constructor and Description |
---|
PATHS.VS() |
Modifier and Type | Method and Description |
---|---|
void |
addPredecessor(org.openrdf.model.Value pred,
org.openrdf.model.URI edge)
Add a predecessor (might have already been added) and the edge
along which the predecessor discovered this vertex.
|
int |
depth()
The depth at which this vertex was first visited (origin ZERO) and
-1 if the vertex has not been visited. |
Map<org.openrdf.model.Value,Set<org.openrdf.model.URI>> |
predecessors()
Return the vertices that discovered this vertex during BFS traversal.
|
String |
toString() |
boolean |
visit(int depth,
org.openrdf.model.Value pred,
org.openrdf.model.URI edge)
Note: This marks the vertex at the current traversal depth.
|
public int depth()
-1
if the vertex has not been visited.public Map<org.openrdf.model.Value,Set<org.openrdf.model.URI>> predecessors()
public void addPredecessor(org.openrdf.model.Value pred, org.openrdf.model.URI edge)
public boolean visit(int depth, org.openrdf.model.Value pred, org.openrdf.model.URI edge)
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.