Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
const int inf = 1e9 + 7;
24
25
void add_edge(vector<int> vec[], int u, int v)
26
{
27
vec[u].push_back(v);
28
}
29
30
void topo_sort(vector<int> vec[], int source, vector<bool> &visited, stack<int> &st)
31
{
Callers
2
find_transpose
Function · 0.70
main
Function · 0.70
Calls
1
push_back
Method · 0.80
Tested by
no test coverage detected