Struct PredictionsSorter::ScoreComp

Nested Relationships

This struct is a nested type of Class PredictionsSorter.

Struct Documentation

struct ScoreComp

Comparator used to sort predictions descendingly by score and on equality ascendingly by node-pairs which means e.g. (0, 1) < (1, 1) and (0, 0) < (0, 1).

Public Functions

inline bool operator()(const LinkPredictor::prediction &a, const LinkPredictor::prediction &b) const