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