Package com.google.common.graph
Class EdgesConnecting<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.google.common.graph.EdgesConnecting<E>
- Type Parameters:
E
- Edge parameter type
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
A class to represent the set of edges connecting an (implicit) origin node to a target node.
The nodeToOutEdge
map means this class only works on networks without parallel edges.
See MultiEdgesConnecting
for a class that works with parallel edges.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
nodeToOutEdge
-
targetNode
-
-
Constructor Details
-
EdgesConnecting
-
-
Method Details
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<E>
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceSet<E>
- Overrides:
contains
in classAbstractCollection<E>
-
getConnectingEdge
-