i have implemented prim’s algo, but 2 test_cases are failed?
@vishesh2001 can you tell how are you handling the disconnected component part?