Program Listing for File Modularity.hpp

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

/*
 * Modularity.hpp
 *
 *  Created on: 10.12.2012
 *      Author: Christian Staudt
 */

#ifndef NETWORKIT_COMMUNITY_MODULARITY_HPP_
#define NETWORKIT_COMMUNITY_MODULARITY_HPP_

#include <networkit/community/QualityMeasure.hpp>

namespace NetworKit {

class Modularity final : public QualityMeasure {

private:
    double gTotalEdgeWeight;

public:
    Modularity();

    double getQuality(const Partition &zeta, const Graph &G) override;

    void setTotalEdgeWeight(double totalEdgeWeight);
};

} /* namespace NetworKit */
#endif // NETWORKIT_COMMUNITY_MODULARITY_HPP_