public abstract class SparseWeightedDirectedEdgeSet extends AbstractSet<WeightedEdge> implements EdgeSet<WeightedEdge>, Serializable
WeightedEdge
instances. Note that the equality
condition for WeightedEdge
is treated specially in this set such that
two vertices will only have at most one edge between them. If an edge exists
for vertices i
and j
with weight w
1, then
adding a new edge to the same vertices with weight w
2 will
not add a parallel edge and increase the size of this set, even though the
edges are not equal. Rather, the weight on the edge between the two vertices
is changed to w
2. Similarly, any contains or removal
operation will return its value based on the WeightedEdge
's vertices
but not on the weight of the edge itself.Constructor and Description |
---|
SparseWeightedDirectedEdgeSet() |
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Copyright © 2012. All Rights Reserved.