All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SameCommunityIndex.h
Go to the documentation of this file.
1 /*
2  * SameCommunityIndex.h
3  *
4  * Created on: 07.04.2015
5  * Author: Kolja Esders (kolja.esders@student.kit.edu)
6  */
7 
8 #ifndef SAMECOMMUNITYINDEX_H_
9 #define SAMECOMMUNITYINDEX_H_
10 
11 #include "LinkPredictor.h"
12 #include "../structures/Partition.h"
13 
14 namespace NetworKit {
15 
22 private:
23  Partition communities;
24 
31  double runImpl(node u, node v) override;
32 
33 public:
35 
36  explicit SameCommunityIndex(const Graph& G);
37 
38  virtual void setGraph(const Graph& newGraph) override;
39 
40 };
41 
42 } // namespace NetworKit
43 
44 #endif /* SAMECOMMUNITYINDEX_H_ */
virtual void setGraph(const Graph &newGraph) override
Sets the graph to work on.
Definition: SameCommunityIndex.cpp:22
Implements a partition of a set, i.e.
Definition: Partition.h:31
index node
Definition: Globals.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
Index to determine whether two nodes are in the same community.
Definition: SameCommunityIndex.h:21
SameCommunityIndex()
Definition: SameCommunityIndex.cpp:13