public interface EdgeSequence
Modifier and Type | Method and Description |
---|---|
PgxVertex |
back()
Get the edge at the back of the sequence.
|
void |
clear()
Remove all edges from the sequence.
|
default VertexSequence |
clone()
Clone this vertex sequence.
|
boolean |
contains(PgxEdge e)
Check if the sequence contains the given edge.
|
static EdgeSequence |
create()
Instantiate a new edge sequence.
|
EdgeSequence |
filter(EdgeProperty<java.lang.Boolean> property)
Filter the edges in the sequence by the given boolean property.
|
EdgeSequence |
filter(java.util.function.Predicate<PgxEdge> predicate)
Filter the edges in the sequence by the given predicate.
|
void |
forEach(java.util.function.Consumer<PgxEdge> callable)
Run the callable for each edge in the sequence in parallel.
|
void |
forSequential(java.util.function.Consumer<PgxEdge> callable)
Run the callable for each edge in the sequence in sequence.
|
PgxEdge |
front()
Get the edge at the front of the sequence.
|
PgxEdge |
pop()
Remove and return an edge from the sequence.
|
PgxEdge |
popBack()
Remove and return the edge at the back of the sequence.
|
PgxEdge |
popFront()
Remove and return the edge at the front of the sequence.
|
void |
push(PgxEdge e)
Add an edge to the sequence.
|
void |
pushBack(PgxEdge e)
Add an edge to the back of the sequence.
|
void |
pushFront(PgxEdge e)
Add an edge to the front of the sequence.
|
int |
size()
Get the number of edges in the sequence.
|
PgxVertex back()
void clear()
default VertexSequence clone()
boolean contains(PgxEdge e)
e
-static EdgeSequence create()
EdgeSequence filter(EdgeProperty<java.lang.Boolean> property)
property
-EdgeSequence filter(java.util.function.Predicate<PgxEdge> predicate)
predicate
-void forEach(java.util.function.Consumer<PgxEdge> callable)
callable
-void forSequential(java.util.function.Consumer<PgxEdge> callable)
callable
-PgxEdge front()
PgxEdge pop()
PgxEdge popBack()
PgxEdge popFront()
void push(PgxEdge e)
e
-void pushBack(PgxEdge e)
e
-void pushFront(PgxEdge e)
e
-int size()