Detailed Analysis
Time Complexity analysis of Kruskal = Time to sort the edges in inreasing order (A) + time to detect cycle for every edges (B)
Since, the edges are already sorted (given in question). Hence, A = 0
Let, number of edges = E and, number of vertices = V
Now for B, B = E (no. of edges) * time to detect cycle
Time Complexity of detecting cycle
Using Union-Find : O(1) i.e, contant time
Using DFS/BFS = O(V+E)
Since, in question, which algorithm is used to detect cycle is not given, we will consider Union-Find Algorithm
Therefore, Time Complexity analysis of Kruskal = A + B = 0 + E*(O(1)) = O(E) = O(m) ------ (Final Answer)
Extended Analysis
If BFS/DFS is used for cycle detection,
Time Complexity analysis of Kruskal = A + B = 0 + E*(V+E) = VE + V^2
Case 1: If the graph is densed, then E = V^2 (approx)
Case 2: If the graph is sparsed, then E = V (approx)
Therefore, for Case 1: Time Complexity of Kruskal = VE + V^2 = V*(V^2) + (V^2)^2 = O(V^4) = O(n^4)
And, for Case 2: Time Complexity of Kruskal = VE + V^2 = V*(V) + V^2 = O(V^2) = O(n^2)