Class GlobalThresholdFilter

Class Documentation

class GlobalThresholdFilter

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

Public Functions

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

Creates a new instance of a global threshold filter.

Parameters:
  • threshold – the threshold

  • above – if 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.

Graph calculate()
Graph calculateUndirected()