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