Example 1

Example 2

1 <= n <= 100m == edges.length0 <= m <= n * (n - 1) / 2edges[i].length == 20 <= edge[i][j] <= n - 1edges[i][0] != edges[i][1]The input is generated such that if team a is stronger than team b, team b is not stronger than team a.The input is generated such that if team a is stronger than team b and team b is stronger than team c, then team a is stronger than team c.Example 1

Example 2

1 <= n <= 100m == edges.length0 <= m <= n * (n - 1) / 2edges[i].length == 20 <= edge[i][j] <= n - 1edges[i][0] != edges[i][1]The input is generated such that if team a is stronger than team b, team b is not stronger than team a.The input is generated such that if team a is stronger than team b and team b is stronger than team c, then team a is stronger than team c.