There is a number T shows there are T test cases below. (T≤10)
For each test case , the first line contains three integers n,m,K, n,m means the number of nodes and the number of edges on the graph. In following there are m lines. Each line has three integer x,y,z. indicate that there is an edge frome x to y weighted z.
2≤n≤100,000
0≤m≤200,000
1≤K,z≤1,000,000,000
1≤x,y≤n