@classmethod<EOL><INDENT>def from_rankings(cls, data, penalty):<DEDENT>
top1 = list()<EOL>for ranking in data:<EOL><INDENT>for i, winner in enumerate(ranking[:-<NUM_LIT:1>]):<EOL><INDENT>top1.append((winner, ranking[i+<NUM_LIT:1>:]))<EOL><DEDENT><DEDENT>return cls(top1, penalty)<EOL>
Alternative constructor for ranking data.