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/code9.cpp:10–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
const int inf = 1e9 + 7;
9
10
void add_edge(vector<int> vec[], int u, int v)
11
{
12
vec[u].push_back(v);
13
}
14
15
bool topo_sort(vector<int> vec[], int v)
16
{
Callers
1
main
Function · 0.70
Calls
1
push_back
Method · 0.80
Tested by
no test coverage detected