function to find the parent of the node in the set kruskalsalgo
| 458 | |
| 459 | //function to find the parent of the node in the set kruskalsalgo |
| 460 | int findpair(int n,vector<int>&parent){ |
| 461 | if(parent[n]==n)return n; |
| 462 | |
| 463 | return parent[n]= findpair(parent[n],parent); |
| 464 | } |
| 465 | |
| 466 | void kruskalsAlgo(){ |
| 467 | int n,m; |
no outgoing calls
no test coverage detected