MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / dfs

Function dfs

Math/Simplex Algorithm.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13bool ok[N][N];
14
15void dfs(ll u,ll p,ll d,ll cur) {
16 dis[cur][u] = d;
17 ll len = g[u].size(), i;
18 for(int i=0;i<len;i++) {
19 ll v = g[u][i];
20 if(v == p )continue;
21 dfs(v,u,d+cost[u][i],cur);
22 }
23}
24
25#define MAXC 1010
26#define MAXV 1010

Callers 1

mainFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected