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/code15.cpp:24–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
}
23
24
void add_edge(vector<pair<int, int>> vec[], int u, int v, int weight)
25
{
26
vec[u].push_back({v, weight});
27
// vec[v].push_back({u, weight});
28
}
29
30
int find(vector<int> &parent, int x)
31
{
Callers
1
main
Function · 0.70
Calls
1
push_back
Method · 0.80
Tested by
no test coverage detected