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

Function add_edge

graph/code6.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const int inf = 1e9 + 7;
6
7void add_edge(vector<int> vec[], int u, int v)
8{
9 vec[u].push_back(v);
10 vec[v].push_back(u);
11}
12
13void find_sd(vector<int> vec[], int v, int source)
14{

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected