- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jgrapht.util.WeightedUnmodifiableSet
backingSet, weight
-
-
Constructor Summary
Constructors Constructor Description SpannerImpl(Set<E> edges)
Construct a new spannerSpannerImpl(Set<E> edges, double weight)
Construct a new spanner
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
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
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<E>
-
-