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