When calculating the winner in this type of election, one can organize the data into a matrix. You can see that matrix here. Each cell (row,col) indicates how many times row was preferred over col. If row beat col, the cell will be red.