↰ Return to documentation for file (include/networkit/community/PLP.hpp
)
/*
* PLP.hpp
*
* Created on: 07.12.2012
* Author: Christian Staudt
*/
#ifndef NETWORKIT_COMMUNITY_PLP_HPP_
#define NETWORKIT_COMMUNITY_PLP_HPP_
#include <networkit/community/CommunityDetectionAlgorithm.hpp>
#include <networkit/structures/Partition.hpp>
namespace NetworKit {
class PLP final : public CommunityDetectionAlgorithm {
private:
count updateThreshold = 0;
count maxIterations;
count nIterations = 0;
std::vector<count> timing;
public:
PLP(const Graph &G, count theta = none, count maxIterations = none);
PLP(const Graph &G, const Partition &baseClustering, count theta = none);
void run() override;
void setUpdateThreshold(count th);
count numberOfIterations();
const std::vector<count> &getTiming() const;
};
} /* namespace NetworKit */
#endif // NETWORKIT_COMMUNITY_PLP_HPP_