All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IntrapartitionDensity.h
Go to the documentation of this file.
1 #ifndef INTRAPARTITIONDENSITY_H
2 #define INTRAPARTITIONDENSITY_H
3 
5 
6 namespace NetworKit {
7 
13 public:
15 
19  virtual void run() override;
20 
26  double getGlobal() const { assureFinished(); return globalValue; };
27 
31  bool isParallel() const override { return false; }
32 
37  bool isSmallBetter() const override { return false; }
38 protected:
39  double globalValue;
40 };
41 
42 }
43 
44 #endif // INTRAPARTITIONDENSITY_H
LocalPartitionEvaluation(const Graph &G, const Partition &P)
Initialize the partition evaluation method.
Definition: LocalPartitionEvaluation.cpp:7
bool isParallel() const override
Definition: IntrapartitionDensity.h:31
The intra-cluster density of a partition is defined as the number of existing edges divided by the nu...
Definition: IntrapartitionDensity.h:12
Virtual base class of all evaluation methods for a single Partition which is based on the evaluation ...
Definition: LocalPartitionEvaluation.h:14
double globalValue
Definition: IntrapartitionDensity.h:39
bool isSmallBetter() const override
This value should be high in a good clustering.
Definition: IntrapartitionDensity.h:37
void assureFinished() const
Assure that the algorithm has been run, throws a std::runtime_error otherwise.
Definition: Algorithm.h:42
double getGlobal() const
Get the global intra-cluster density.
Definition: IntrapartitionDensity.h:26
virtual void run() override
Execute the algorithm.
Definition: IntrapartitionDensity.cpp:8