public interface EdgeSet
Modifier and Type | Method and Description |
---|---|
void |
add(PgxEdge e)
Add the edge to the set.
|
boolean |
allMatch(java.util.function.Predicate<PgxEdge> predicate)
Check if the predicate holds for all edges in the set.
|
boolean |
anyMatch(java.util.function.Predicate<PgxEdge> predicate)
Check if the predicate holds for any edge in the set.
|
void |
clear()
Remove all edges from the set.
|
default EdgeSet |
clone()
Clone this edge set.
|
static EdgeSet |
create()
Instantiate a new edge set.
|
EdgeSet |
filter(EdgeProperty<java.lang.Boolean> property)
Filter the edges in the set by the given boolean property.
|
EdgeSet |
filter(java.util.function.Predicate<PgxEdge> predicate)
Filter the edges in the set by the given predicate.
|
void |
forEach(java.util.function.Consumer<PgxEdge> callable)
Run the callable for each edge in the set in parallel.
|
void |
forSequential(java.util.function.Consumer<PgxEdge> callable)
Run the callable for each edge in the set in sequence.
|
<T extends java.lang.Number> |
max(java.util.function.Function<PgxEdge,T> reducer)
Apply the reducer to each edge in the set and compute the maximum.
|
EdgeSet |
orderBy(EdgeProperty vertexProperty, Order order)
Order the edges based on the value of the property.
|
EdgeSet |
orderBy(java.util.function.Function<PgxEdge,java.lang.Number> transform, Order order)
Order the edges in the set based on the result of the transformation function.
|
void |
remove(PgxEdge e)
Remove the edge from the set.
|
int |
size()
Get the number of edges in the set.
|
<T extends java.lang.Number> |
sum(EdgeProperty<T> reducer)
Get the property for each edge in the set and sum the results.
|
<T extends java.lang.Number> |
sum(java.util.function.Function<PgxEdge,T> reducer)
Apply the reducer to each edge in the set and sum the results.
|
void add(PgxEdge e)
e
-boolean allMatch(java.util.function.Predicate<PgxEdge> predicate)
predicate
-boolean anyMatch(java.util.function.Predicate<PgxEdge> predicate)
predicate
-void clear()
default EdgeSet clone()
static EdgeSet create()
EdgeSet filter(EdgeProperty<java.lang.Boolean> property)
property
-EdgeSet 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
-<T extends java.lang.Number> T max(java.util.function.Function<PgxEdge,T> reducer)
T
-reducer
-EdgeSet orderBy(EdgeProperty vertexProperty, Order order)
vertexProperty
-order
-EdgeSet orderBy(java.util.function.Function<PgxEdge,java.lang.Number> transform, Order order)
transform
-order
-void remove(PgxEdge e)
e
-int size()
<T extends java.lang.Number> T sum(EdgeProperty<T> reducer)
T
-reducer
-<T extends java.lang.Number> T sum(java.util.function.Function<PgxEdge,T> reducer)
T
-reducer
-