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
-
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
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
-
Constructor Details
-
SpannerImpl
Construct a new spanner- Parameters:
edges
- the edges
-
SpannerImpl
Construct a new spanner- Parameters:
edges
- the edgesweight
- the weight
-
-
Method Details