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

Function main

graph/code12.cpp:51–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int main()
52{
53 int v;
54 v = 4;
55 vector<int> vec[v];
56
57 // adding edges from this point
58 // add_edge(vec, 0, 1);
59 // add_edge(vec, 0, 3);
60 // add_edge(vec, 1, 2);
61 // add_edge(vec, 2, 4);
62 // add_edge(vec, 3, 1);
63 // add_edge(vec, 3, 4);
64
65 add_edge(vec, 0, 1);
66 // add_edge(vec, 0, 3);
67 add_edge(vec, 1, 2);
68 add_edge(vec, 1, 3);
69 add_edge(vec, 3, 2);
70 // add_edge(vec, 3, 4);
71
72 topo_rec(vec, v);
73
74 return 0;
75}

Callers

nothing calls this directly

Calls 2

topo_recFunction · 0.85
add_edgeFunction · 0.70

Tested by

no test coverage detected