structure for kruskals algorithm and bellmenford algorithm
| 425 | |
| 426 | //structure for kruskals algorithm and bellmenford algorithm |
| 427 | struct node{ |
| 428 | int u;//first node |
| 429 | int v;// second node |
| 430 | int wt;// weight between the nodes |
| 431 | |
| 432 | node(int first,int second,int weight){ |
| 433 | u=first; |
| 434 | v=second; |
| 435 | wt=weight; |
| 436 | } |
| 437 | }; |
| 438 | |
| 439 | //comparator for sorting vector of edges structure |
| 440 | bool comp(node a,node b){ |
no outgoing calls
no test coverage detected