E
- Edge parameter typefinal class EdgesConnecting<E>
extends java.util.AbstractSet<E>
The nodeToOutEdge
map means this class only works on networks without parallel edges.
See MultiEdgesConnecting
for a class that works with parallel edges.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<?,E> |
nodeToOutEdge |
private java.lang.Object |
targetNode |
Constructor and Description |
---|
EdgesConnecting(java.util.Map<?,E> nodeToEdgeMap,
java.lang.Object targetNode) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object edge) |
private E |
getConnectingEdge() |
UnmodifiableIterator<E> |
iterator() |
int |
size() |
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.Map<?,E> nodeToOutEdge
private final java.lang.Object targetNode
EdgesConnecting(java.util.Map<?,E> nodeToEdgeMap, java.lang.Object targetNode)
public UnmodifiableIterator<E> iterator()
public int size()
public boolean contains(@Nullable java.lang.Object edge)
@Nullable private E getConnectingEdge()