Interface VertexCoverAlgorithm.VertexCover<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getWeight()
      Returns the weight of the vertex cover.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

      • Methods inherited from interface java.util.Set

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
    • Method Detail

      • getWeight

        double getWeight()
        Returns the weight of the vertex cover. When solving a weighted vertex cover problem, the weight returned is the sum of the weights of the vertices in the vertex cover. When solving the unweighted variant, the cardinality of the vertex cover is returned instead.
        weight of the independent set