java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jgrapht.util.WeightedUnmodifiableSet<E>
org.jgrapht.alg.interfaces.SpannerAlgorithm.SpannerImpl<E>
- Type Parameters:
E
- the graph edge type
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
,SpannerAlgorithm.Spanner<E>
- Enclosing interface:
- SpannerAlgorithm<E>
public static class SpannerAlgorithm.SpannerImpl<E>
extends WeightedUnmodifiableSet<E>
implements SpannerAlgorithm.Spanner<E>, Serializable
Default implementation of the spanner interface.
- See Also:
-
Field Summary
Fields inherited from class org.jgrapht.util.WeightedUnmodifiableSet
backingSet, weight
-
Constructor Summary
ConstructorDescriptionSpannerImpl
(Set<E> edges) Construct a new spannerSpannerImpl
(Set<E> edges, double weight) Construct a new spanner -
Method Summary
Methods inherited from class org.jgrapht.util.WeightedUnmodifiableSet
add, addAll, clear, contains, containsAll, equals, getWeight, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
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
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
Methods inherited from interface org.jgrapht.alg.interfaces.SpannerAlgorithm.Spanner
getWeight
-
Constructor Details
-
SpannerImpl
Construct a new spanner- Parameters:
edges
- the edges
-
SpannerImpl
Construct a new spanner- Parameters:
edges
- the edgesweight
- the weight
-
-
Method Details
-
toString
- Overrides:
toString
in classAbstractCollection<E>
-