AlgoMaster Logo

Find Critical and Pseudo-Critical Edges in MST

n=5,edges=[[0,1,1],[1,2,1],[2,3,2],[0,3,2],[0,4,3],[3,4,3],[1,4,6]]
0 / 532
algomaster.io
Step:Look for spanning trees among the 7 edges, taking 4 at a time