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