Sir doubt in krushkal algorithm

sir why is this code only passing 3 test cases

@tejasddongare size of vector l will be E but in function kruskal you are iterating vector l till size V.

thanks sir its working now