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

Function main

graph/code5.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int main()
40{
41 int v;
42 v = 6;
43 vector<int> adj[v];
44
45 // adding edges now
46 add_edge(adj, 0, 1);
47 add_edge(adj, 0, 2);
48 add_edge(adj, 0, 3);
49 add_edge(adj, 1, 4);
50 add_edge(adj, 1, 5);
51 add_edge(adj, 2, 5);
52
53 cout << "DEPTH FIRST SEARCH: " << endl;
54
55 dfs_rec(adj, v);
56 return 0;
57}

Callers

nothing calls this directly

Calls 2

add_edgeFunction · 0.70
dfs_recFunction · 0.70

Tested by

no test coverage detected