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, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<E>
-
getConnectingEdge
-