MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / addEdge

Method addEdge

src/class185/Code01_Wave1.java:68–72  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

66 }
67
68 public static void addEdge(int u, int v) {
69 nxt[++cntg] = head[u];
70 to[cntg] = v;
71 head[u] = cntg;
72 }
73
74 // 重链剖分收集信息递归版,java会爆栈,C++不会
75 public static void dfs1(int u, int f) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected