- 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:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
,SpannerAlgorithm.Spanner<E>
- Enclosing interface:
- SpannerAlgorithm<E>
public static class SpannerAlgorithm.SpannerImpl<E> extends WeightedUnmodifiableSet<E> implements SpannerAlgorithm.Spanner<E>, java.io.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(java.util.Set<E> edges)
Construct a new spannerSpannerImpl(java.util.Set<E> edges, double weight)
Construct a new spanner
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.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.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 java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractCollection<E>
-
-