All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
NetworKit::GlobalThresholdFilter Class Reference

Calculates a sparsified graph by applying a global threshold to an edge score. More...

#include <GlobalThresholdFilter.h>

Public Member Functions

 GlobalThresholdFilter (const Graph &graph, const std::vector< double > &attribute, double threshold, bool above)
 Creates a new instance of a global threshold filter. More...
 
Graph calculate ()
 

Detailed Description

Calculates a sparsified graph by applying a global threshold to an edge score.

Constructor & Destructor Documentation

NetworKit::GlobalThresholdFilter::GlobalThresholdFilter ( const Graph graph,
const std::vector< double > &  attribute,
double  threshold,
bool  above 
)

Creates a new instance of a global threshold filter.

Parameters
thresholdthe threshold
aboveif set to true, edges with a score above or equal to the threshold remain in the filtered graph. If set to false, edges with a score below or equal to the threshold remain in the filtered graph.

Member Function Documentation

Graph NetworKit::GlobalThresholdFilter::calculate ( )

The documentation for this class was generated from the following files: