int margin = preferences[pairs[i].winner][pairs[i].loser] - preferences[pairs[i].loser][pairs[i].winner];
Sort the pairs array in descending order based on the strength of victory. Cs50 Tideman Solution
The print_winner function identifies the source of the graph. int margin = preferences[pairs[i]