All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChanceCorrectedTriangleScore.h
Go to the documentation of this file.
1 /*
2  * ChangeCorrectedTriangleScore.h
3  *
4  * Created on: 20.11.2014
5  * Author: Michael Hamann
6  */
7 
8 #ifndef CHANCECORRECTEDTRIANGLESCORE_H
9 #define CHANCECORRECTEDTRIANGLESCORE_H
10 
11 #include "../edgescores/EdgeScore.h"
12 
13 namespace NetworKit {
14 
15 class ChanceCorrectedTriangleScore : public EdgeScore<double> {
16 
17 public:
18  ChanceCorrectedTriangleScore(const Graph& graph, const std::vector<count>& triangles);
19  virtual double score(edgeid eid) override;
20  virtual double score(node u, node v) override;
21  virtual void run() override;
22 
23 private:
24  const std::vector<count>& triangles;
25 
26 };
27 
28 }
29 #endif // CHANCECORRECTEDTRIANGLESCORE_H
ChanceCorrectedTriangleScore(const Graph &graph, const std::vector< count > &triangles)
Definition: ChanceCorrectedTriangleScore.cpp:12
virtual double score(edgeid eid) override
Get the edge score of the edge with the given edge id.
Definition: ChanceCorrectedTriangleScore.cpp:37
index edgeid
Definition: Globals.h:25
Definition: ChanceCorrectedTriangleScore.h:15
index node
Definition: Globals.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
virtual void run() override
Compute the edge score.
Definition: ChanceCorrectedTriangleScore.cpp:15
Abstract base class for an edge score.
Definition: EdgeScore.h:20