In this way, the contraction procedure can be implemented like Kruskal’s algorithm in time .
This approach enables the implementation of the contraction procedure in a way analogous to Kruskal’s algorithm within a given timeframe.