MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / comp

Function comp

CPP/graphseries.cpp:440–442  ·  view source on GitHub ↗

comparator for sorting vector of edges structure

Source from the content-addressed store, hash-verified

438
439//comparator for sorting vector of edges structure
440bool comp(node a,node b){
441 return a.wt<b.wt;
442}
443
444//function for union of two nodes in the set kruskalsalgo
445void unionn(int u,int v,vector<int>&parent,vector<int>&rank){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected