All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modularity.h
Go to the documentation of this file.
1 /*
2  * Modularity.h
3  *
4  * Created on: 10.12.2012
5  * Author: Christian Staudt (christian.staudt@kit.edu)
6  */
7 
8 #ifndef MODULARITY_H_
9 #define MODULARITY_H_
10 
11 #include "QualityMeasure.h"
12 
13 namespace NetworKit {
14 
15 
28 protected:
30 
31 public:
32 
34  Modularity();
35 
43  virtual double getQuality(const Partition& zeta, const Graph& G);
44 
49  void setTotalEdgeWeight(double totalEdgeWeight);
50 
51 };
52 
53 } /* namespace NetworKit */
54 #endif /* MODULARITY_H_ */
void setTotalEdgeWeight(double totalEdgeWeight)
Definition: Modularity.cpp:23
Modularity is a quality index for community detection.
Definition: Modularity.h:27
virtual double getQuality(const Partition &zeta, const Graph &G)
Returns the Modularity of the given clustering with respect to the graph G.
Definition: Modularity.cpp:28
Abstract base class for all clustering quality measures.
Definition: QualityMeasure.h:20
Modularity()
Default constructor.
Definition: Modularity.cpp:20
Implements a partition of a set, i.e.
Definition: Partition.h:31
double gTotalEdgeWeight
Definition: Modularity.h:29
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79