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

Method addEdge

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

Source from the content-addressed store, hash-verified

55 public static int[] ansArr = new int[MAXM];
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 public static void tarjan(int u) {
64 dfn[u] = low[u] = ++cntd;

Callers 2

groupLinkMethod · 0.95
buildGraphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected