Modifier and Type | Method and Description |
---|---|
default boolean |
add(java.util.Collection<? extends EdgeVertices<V>> edgeVertices) |
default boolean |
add(EdgeVertices<V>... edges) |
E |
add(EdgeVertices<V> edge) |
default E |
add(V from,
V to) |
java.util.Set<E> |
between(EdgeVertices<V> vertices) |
default java.util.Set<E> |
between(V from,
V to) |
E |
betweenUnique(EdgeVertices<V> vertices) |
default E |
betweenUnique(V from,
V to)
If there is exactly one edge between the provided vertices, this edge is
returned.
|
<T> java.util.Map<E,T> |
createMap() |
<T> java.util.Map<E,T> |
createMap(java.util.Map<? extends E,? extends T> edges) |
java.util.Set<E> |
createSet() |
java.util.Set<E> |
createSet(java.util.Collection<? extends E> edges) |
java.util.Set<EdgeVertices<V>> |
edgeVertices() |
java.util.function.BiPredicate<? super E,? super E> |
equality() |
java.util.Set<E> |
incidentTo(V vertex) |
java.util.Set<E> |
incidentToHead(V vertex) |
java.util.Set<E> |
incidentToTail(V vertex) |
double |
weight(E edge) |
double weight(E edge)
java.util.Set<E> between(EdgeVertices<V> vertices)
default E betweenUnique(V from, V to)
from
- The tail vertex of the edgeto
- The head vertex of the edgeE betweenUnique(EdgeVertices<V> vertices)
E add(EdgeVertices<V> edge)
default boolean add(EdgeVertices<V>... edges)
default boolean add(java.util.Collection<? extends EdgeVertices<V>> edgeVertices)
java.util.Set<EdgeVertices<V>> edgeVertices()
java.util.Set<E> createSet()
<T> java.util.Map<E,T> createMap()