Interface IndependentSetAlgorithm.IndependentSet<V>

    • Method Detail

      • getWeight

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