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

Function main

graph/code6.cpp:49–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int main()
50{
51 int v;
52 v = 6;
53 vector<int> adj[v];
54
55 // adding edge to graph
56 add_edge(adj, 0, 1);
57 add_edge(adj, 0, 2);
58 add_edge(adj, 0, 3);
59 add_edge(adj, 1, 4);
60 add_edge(adj, 1, 5);
61 add_edge(adj, 2, 5);
62
63 // finding shortes distance
64 int source = 0;
65 find_sd(adj, v, source);
66 return 0;
67}

Callers

nothing calls this directly

Calls 2

find_sdFunction · 0.85
add_edgeFunction · 0.70

Tested by

no test coverage detected