↰ Return to documentation for file (include/networkit/sparsification/GlobalThresholdFilter.hpp
)
/*
* GlobalThresholdFilter.hpp
*
* Created on: 23.07.2014
* Author: Gerd Lindner
*/
#ifndef NETWORKIT_SPARSIFICATION_GLOBAL_THRESHOLD_FILTER_HPP_
#define NETWORKIT_SPARSIFICATION_GLOBAL_THRESHOLD_FILTER_HPP_
#include <networkit/graph/Graph.hpp>
namespace NetworKit {
class GlobalThresholdFilter {
const Graph *graph;
const std::vector<double> &attribute;
const double threshold;
const bool above;
public:
GlobalThresholdFilter(const Graph &graph, const std::vector<double> &attribute,
double threshold, bool above);
Graph calculate();
Graph calculateUndirected();
};
} // namespace NetworKit
#endif // NETWORKIT_SPARSIFICATION_GLOBAL_THRESHOLD_FILTER_HPP_