MCPcopy Index your code
hub / github.com/algorithmzuo/algorithm-journey / addEdge

Method addEdge

src/class122/Code01_MaxFlow1.java:57–61  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

55 }
56
57 public static void addEdge(int u, int v) {
58 next[cnt] = head[u];
59 to[cnt] = v;
60 head[u] = cnt++;
61 }
62
63 public static void dfs1(int u, int f) {
64 deep[u] = deep[f] + 1;

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected