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

Function main

graph/code18.cpp:99–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99int main()
100{
101 // int v = 5;
102 // vector<int> adj[v], transpose[v];
103 // // adding edges now
104 // add_edge(adj, 0, 1);
105 // add_edge(adj, 1, 2);
106 // add_edge(adj, 2, 0);
107 // add_edge(adj, 1, 3);
108 // add_edge(adj, 3, 4);
109
110 int v = 6;
111 vector<int> adj[v], transpose[v];
112 // adding edges now
113 add_edge(adj, 0, 1);
114 add_edge(adj, 1, 2);
115 add_edge(adj, 2, 3);
116 add_edge(adj, 3, 0);
117 add_edge(adj, 3, 4);
118 add_edge(adj, 4, 5);
119 add_edge(adj, 5, 4);
120
121 kosaraju(adj, v, transpose);
122 return 0;
123}

Callers

nothing calls this directly

Calls 2

add_edgeFunction · 0.70
kosarajuFunction · 0.70

Tested by

no test coverage detected