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

Method addEdge

src/class196/Code07_Coprime1.java:53–57  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

51 public static int sccCnt;
52
53 public static void addEdge(int u, int v) {
54 nxt[++cntg] = head[u];
55 to[cntg] = v;
56 head[u] = cntg;
57 }
58
59 public static int other(int x) {
60 return x <= n ? (x + n) : (x - n);

Callers 1

linkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected