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

Function find_transpose

graph/code18.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void find_transpose(vector<int> vec[], int v, vector<int> transpose[])
45{
46 for (int i = 0; i < v; i++)
47 {
48 for (int j = 0; j < vec[i].size(); j++)
49 {
50 int first = i;
51 int second = vec[i][j];
52 add_edge(transpose, second, first);
53 }
54 }
55}
56
57void dfs(vector<int> transpose[], int source, vector<bool> &visited)
58{

Callers 1

kosarajuFunction · 0.85

Calls 2

add_edgeFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected