All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EdgeScoreAsWeight.h
Go to the documentation of this file.
1 /*
2  * EdgeScoreAsWeight.h
3  *
4  * Created on: 18.11.2014
5  * Author: Michael Hamann
6  */
7 
8 #ifndef EDGESCOREASWEIGHT_H
9 #define EDGESCOREASWEIGHT_H
10 
11 #include "../graph/Graph.h"
12 
13 namespace NetworKit {
14 
16 
17 public:
18  EdgeScoreAsWeight(const Graph& G, const std::vector<double>& score, bool squared = false, edgeweight offset = 1, edgeweight factor = 1);
19  Graph calculate();
20 
21 private:
22  const Graph& G;
23  const std::vector<double>& score;
24  bool squared;
25  edgeweight offset;
26  edgeweight factor;
27 
28 };
29 
30 } // namespace NetworKit
31 
32 #endif // EDGESCOREASWEIGHT_H
EdgeScoreAsWeight(const Graph &G, const std::vector< double > &score, bool squared=false, edgeweight offset=1, edgeweight factor=1)
Definition: EdgeScoreAsWeight.cpp:12
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
Graph calculate()
Definition: EdgeScoreAsWeight.cpp:16
Definition: EdgeScoreAsWeight.h:15
double edgeweight
Definition: Globals.h:24