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

Function add_edge

graph/code8.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9const int inf = 1e9 + 7;
10
11void add_edge(vector<int> vec[], int u, int v)
12{
13 vec[u].push_back(v);
14 vec[v].push_back(u);
15}
16
17bool dfs(vector<int> vec[], vector<bool> &visited, int parent, int source)
18{

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected