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:
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:
  • Constructor Details

    • VertexCoverImpl

      public VertexCoverImpl(Set<V> vertexCover)
    • VertexCoverImpl

      public VertexCoverImpl(Set<V> vertexCover, double weight)