Function NetworKit::LinkThresholder::byPercentage

Function Documentation

std::vector<std::pair<node, node>> NetworKit::LinkThresholder::byPercentage(const std::vector<LinkPredictor::prediction> &predictions, double percentageLinks)

Returns the first percentageLinks percent of the highest scores node-pairs.

Parameters:
  • predictions – Predictions to filter

  • percentageLinks – Percentage of highest scored node-pairs to return

Returns:

the first percentageLinks percent of the highest scores node-pairs