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:
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
  • Constructor Details

    • SpannerImpl

      public SpannerImpl​(java.util.Set<E> edges)
      Construct a new spanner
      Parameters:
      edges - the edges
    • SpannerImpl

      public SpannerImpl​(java.util.Set<E> edges, double weight)
      Construct a new spanner
      Parameters:
      edges - the edges
      weight - the weight
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.util.AbstractCollection<E>