Class IndependentSetAlgorithm.IndependentSetImpl<V>
java.lang.Object
java.util.AbstractCollection<V>
java.util.AbstractSet<V>
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:
-
Field Summary
FieldsFields inherited from class WeightedUnmodifiableSet
backingSet, weight -
Constructor Summary
ConstructorsConstructorDescriptionIndependentSetImpl(Set<V> independentSet) IndependentSetImpl(Set<V> independentSet, double weight) -
Method Summary
Methods inherited from class WeightedUnmodifiableSet
add, addAll, clear, contains, containsAll, equals, getWeight, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from class AbstractCollection
toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface IndependentSetAlgorithm.IndependentSet
getWeight
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
IndependentSetImpl
-
IndependentSetImpl
-