Class VertexCoverAlgorithm.VertexCoverImpl<V>
java.lang.Object
java.util.AbstractCollection<V>
java.util.AbstractSet<V>
org.jgrapht.util.WeightedUnmodifiableSet<V>
org.jgrapht.alg.interfaces.VertexCoverAlgorithm.VertexCoverImpl<V>
- Type Parameters:
V- the vertex type
- All Implemented Interfaces:
Serializable, Iterable<V>, Collection<V>, 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:
-
Field Summary
FieldsFields inherited from class WeightedUnmodifiableSet
backingSet, weight -
Constructor Summary
ConstructorsConstructorDescriptionVertexCoverImpl(Set<V> vertexCover) VertexCoverImpl(Set<V> vertexCover, 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 Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayMethods inherited from interface VertexCoverAlgorithm.VertexCover
getWeight
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
VertexCoverImpl
-
VertexCoverImpl
-