Program Listing for File IntrapartitionDensity.hpp

Return to documentation for file (include/networkit/community/IntrapartitionDensity.hpp)

#ifndef NETWORKIT_COMMUNITY_INTRAPARTITION_DENSITY_HPP_
#define NETWORKIT_COMMUNITY_INTRAPARTITION_DENSITY_HPP_

#include <networkit/community/LocalPartitionEvaluation.hpp>

namespace NetworKit {

class IntrapartitionDensity final : public LocalPartitionEvaluation {
public:
    using LocalPartitionEvaluation::LocalPartitionEvaluation;

    void run() override;

    double getGlobal() const {
        assureFinished();
        return globalValue;
    };

    bool isSmallBetter() const override { return false; }

private:
    double globalValue;
};

} // namespace NetworKit

#endif // NETWORKIT_COMMUNITY_INTRAPARTITION_DENSITY_HPP_