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

Function add_edge

graph/code7.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected