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

    • SpannerImpl

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

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