Class MinimumVertexCoverAlgorithm.VertexCoverImpl<V>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Set<V> cover  
      protected double weight  
    • Constructor Summary

      Constructors 
      Constructor Description
      VertexCoverImpl​(java.util.Set<V> cover, double weight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<V> getVertices()
      Set of vertices constituting the vertex cover
      double getWeight()
      Returns the weight of the vertex cover.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cover

        protected java.util.Set<V> cover
      • weight

        protected double weight
    • Constructor Detail

      • VertexCoverImpl

        public VertexCoverImpl​(java.util.Set<V> cover,
                               double weight)