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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
final class EdgesConnecting<E> extends java.util.AbstractSet<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. SeeMultiEdgesConnecting
for a class that works with parallel edges.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<?,E>
nodeToOutEdge
private java.lang.Object
targetNode
-
Constructor Summary
Constructors Constructor Description EdgesConnecting(java.util.Map<?,E> nodeToEdgeMap, java.lang.Object targetNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object edge)
private E
getConnectingEdge()
UnmodifiableIterator<E>
iterator()
int
size()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
nodeToOutEdge
private final java.util.Map<?,E> nodeToOutEdge
-
targetNode
private final java.lang.Object targetNode
-
-
Constructor Detail
-
EdgesConnecting
EdgesConnecting(java.util.Map<?,E> nodeToEdgeMap, java.lang.Object targetNode)
-
-
Method Detail
-
iterator
public UnmodifiableIterator<E> iterator()
-
size
public int size()
-
contains
public boolean contains(java.lang.Object edge)
-
getConnectingEdge
private E getConnectingEdge()
-
-