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

Function dfsRec

CPP/graph_tree/Kosaraju Algorithm.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void dfsRec(int node,vector<int> g[],vector<bool> &visited)
20{
21 visited[node]=true;
22
23 for(auto child: g[node])
24 {
25 if(!visited[child])
26 {
27 dfsRec(child,g,visited);
28 }
29 }
30
31 return;
32}
33
34//Function to find number of strongly connected components in the graph.
35int kosaraju(int V, vector<int> adj[])

Callers 1

kosarajuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected