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

Class node

CPP/graphseries.cpp:427–437  ·  view source on GitHub ↗

structure for kruskals algorithm and bellmenford algorithm

Source from the content-addressed store, hash-verified

425
426//structure for kruskals algorithm and bellmenford algorithm
427struct 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
440bool comp(node a,node b){

Callers 2

kruskalsAlgoFunction · 0.70
bellmenFordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected