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

Method addEdge

src/class189/Code01_SCC1.java:47–51  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

45 public static boolean[] sccPrint = new boolean[MAXN];
46
47 public static void addEdge(int u, int v) {
48 nxt[++cntg] = head[u];
49 to[cntg] = v;
50 head[u] = cntg;
51 }
52
53 // 递归版
54 public static void tarjan1(int u) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected