Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
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:
java.io.Serializable
,java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.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:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IndependentSetImpl(java.util.Set<V> independentSet)
IndependentSetImpl(java.util.Set<V> independentSet, double weight)
-
Method Summary
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
Methods inherited from interface org.jgrapht.alg.interfaces.IndependentSetAlgorithm.IndependentSet
getWeight