Class SpannerAlgorithm.SpannerImpl<E>
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
FieldsFields inherited from class WeightedUnmodifiableSet
backingSet, weight -
Constructor Summary
ConstructorsConstructorDescriptionSpannerImpl(Set<E> edges) Construct a new spannerSpannerImpl(Set<E> edges, double weight) Construct a new spanner -
Method Summary
Methods inherited from class WeightedUnmodifiableSet
add, addAll, clear, contains, containsAll, equals, getWeight, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayMethods inherited from interface SpannerAlgorithm.Spanner
getWeight
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SpannerImpl
-
SpannerImpl
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractCollection<E>
-