All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlobalThresholdFilter.h
Go to the documentation of this file.
1 /*
2  * GlobalThresholdFilter.h
3  *
4  * Created on: 23.07.2014
5  * Author: Gerd Lindner
6  */
7 
8 #ifndef GLOBALTHRESHOLDFILTER_H_
9 #define GLOBALTHRESHOLDFILTER_H_
10 
11 #include "../graph/Graph.h"
12 
13 namespace NetworKit {
14 
19 
20 public:
21 
28  GlobalThresholdFilter(const Graph& graph, const std::vector<double>& attribute, double threshold, bool above);
29 
30  Graph calculate();
31 
32 private:
33  const Graph& graph;
34  const std::vector<double>& attribute;
35  double threshold;
36  bool above;
37 
43  Graph cloneNodes(const Graph& graph, bool weighted);
44 
45 };
46 
47 }
48 /* namespace NetworKit */
49 #endif /* GLOBALTHRESHOLDFILTER_H_ */
GlobalThresholdFilter(const Graph &graph, const std::vector< double > &attribute, double threshold, bool above)
Creates a new instance of a global threshold filter.
Definition: GlobalThresholdFilter.cpp:13
Graph calculate()
Definition: GlobalThresholdFilter.cpp:16
Calculates a sparsified graph by applying a global threshold to an edge score.
Definition: GlobalThresholdFilter.h:18
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79