Would there be more than one edge connecting the same pair of stations?
i.e. Are the following valid test cases?
Code: Select all
2 2 2
1 2 1
1 2 1
2 2 3
1 2 1
1 2 2
0 0 0
This is somehow ambiguous to me.... print all pairs of stations (in ascending order) ...
Ascending order of the edges's appearance in the input data?
Or ascending order of the stations connected by the edges?
i.e. What is the correct output of the following test case?
Code: Select all
4 4 3
3 2 1
1 3 2
2 4 2
4 1 1
0 0 0