Class IndependentSetAlgorithm.IndependentSetImpl<V>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jgrapht.util.WeightedUnmodifiableSet<V>
org.jgrapht.alg.interfaces.IndependentSetAlgorithm.IndependentSetImpl<V>
Type Parameters:
V - the vertex type
All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>, Set<V>, IndependentSetAlgorithm.IndependentSet<V>
Enclosing interface:
IndependentSetAlgorithm<V>

public static class IndependentSetAlgorithm.IndependentSetImpl<V> extends WeightedUnmodifiableSet<V> implements IndependentSetAlgorithm.IndependentSet<V>
Default implementation of a (weighted) independent set
See Also:
  • Constructor Details

    • IndependentSetImpl

      public IndependentSetImpl(Set<V> independentSet)
    • IndependentSetImpl

      public IndependentSetImpl(Set<V> independentSet, double weight)