Function NetworKit::LinkThresholder::byCount

Function Documentation

std::vector<std::pair<node, node>> NetworKit::LinkThresholder::byCount(const std::vector<LinkPredictor::prediction> &predictions, count numLinks)

Returns the first numLinks highest scored node-pairs.

Parameters:
  • predictions – Predictions to filter

  • numLinks – Number of top-scored node-pairs to return

Returns:

the first numLinks highest scored node-pairs