Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Class VertexCoverAlgorithm.VertexCoverImpl<V>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jgrapht.util.WeightedUnmodifiableSet<V>
org.jgrapht.alg.interfaces.VertexCoverAlgorithm.VertexCoverImpl<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>,VertexCoverAlgorithm.VertexCover<V>
- Enclosing interface:
- VertexCoverAlgorithm<V>
public static class VertexCoverAlgorithm.VertexCoverImpl<V> extends WeightedUnmodifiableSet<V> implements VertexCoverAlgorithm.VertexCover<V>
Default implementation of a (weighted) vertex cover
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description VertexCoverImpl(java.util.Set<V> vertexCover)VertexCoverImpl(java.util.Set<V> vertexCover, 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, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayMethods inherited from interface org.jgrapht.alg.interfaces.VertexCoverAlgorithm.VertexCover
getWeight