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

Function add_edge

graph/code18.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23const int inf = 1e9 + 7;
24
25void add_edge(vector<int> vec[], int u, int v)
26{
27 vec[u].push_back(v);
28}
29
30void topo_sort(vector<int> vec[], int source, vector<bool> &visited, stack<int> &st)
31{

Callers 2

find_transposeFunction · 0.70
mainFunction · 0.70

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected