Package | Description |
---|---|
oracle.pgx.algorithm |
Modifier and Type | Method and Description |
---|---|
Traversal |
Traversal.backward(java.util.function.Consumer<PgxVertex> backward)
Visit the vertex in the backward direction of the traversal.
|
Traversal |
Traversal.backwardFilter(java.util.function.Predicate<PgxVertex> filter)
Filter the vertices in the BFS/DFS traversal when going backward.
|
Traversal |
Traversal.direction(Traversal.Direction direction)
Set the direction of the BFS/DFS traversal.
|
Traversal |
Traversal.filter(java.util.function.Predicate<PgxVertex> filter)
Filter the vertices in the BFS/DFS traversal.
|
Traversal |
Traversal.forward(java.util.function.Consumer<PgxVertex> forward)
Visit the vertex in the forward direction of the BFS traversal.
|
static Traversal |
Traversal.inBFS(PgxGraph graph, PgxVertex root)
Create a BFS traversal in the given graph rooted at the given vertex.
|
static Traversal |
Traversal.inDFS(PgxGraph graph, PgxVertex root)
Create a DFS traversal in the given graph rooted at the given vertex.
|
Traversal |
Traversal.navigator(java.util.function.Predicate<PgxVertex> navigator)
If the navigator is false, do not consider the neighbors of this vertex in the traversal.
|