Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ addEdge
Method
addEdge
src/class196/Code01_2SAT1.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
nxt[++cntg] = head[u];
59
to[cntg] = v;
60
head[u] = cntg;
61
}
62
63
// 递归版
64
public
static
void
tarjan1(
int
u) {
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected