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

Function add_edge

graph/code19.cpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17const int inf = 1e9 + 7;
18
19void add_edge(vector<int> vec[], int u, int v)
20{
21 vec[u].push_back(v);
22 vec[v].push_back(u);
23}
24
25// dist_minm function gives discovery time and low time for any node...
26// here we firstly give (discovery time and low time) to each node according to their finding time

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected