All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RandomEdgeScore.h
Go to the documentation of this file.
1 /*
2  * RandomEdgeScore.h
3  *
4  * Created on: 11.08.2014
5  * Author: Gerd Lindner
6  */
7 
8 #ifndef RANDOMEDGESCORE_H_
9 #define RANDOMEDGESCORE_H_
10 
11 #include "../edgescores/EdgeScore.h"
12 
13 namespace NetworKit {
14 
18 class RandomEdgeScore : public EdgeScore<double> {
19 
20 public:
21 
25  RandomEdgeScore(const Graph& G);
26 
27  virtual double score(edgeid eid) override;
28  virtual double score(node u, node v) override;
29  virtual void run() override;
30 };
31 
32 }
33 /* namespace NetworKit */
34 #endif /* RANDOMEDGESCORE_H_ */
index edgeid
Definition: Globals.h:25
Generates a random edge attribute.
Definition: RandomEdgeScore.h:18
const Graph & G
Definition: EdgeScore.h:43
virtual double score(edgeid eid) override
Get the edge score of the edge with the given edge id.
Definition: RandomEdgeScore.cpp:33
RandomEdgeScore(const Graph &G)
Creates a new instance of the Random edge score.
Definition: RandomEdgeScore.cpp:12
index node
Definition: Globals.h:23
virtual void run() override
Compute the edge score.
Definition: RandomEdgeScore.cpp:15
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
Abstract base class for an edge score.
Definition: EdgeScore.h:20