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

Method addEdge

src/class184/Code05_Freezing1.java:53–58  ·  view source on GitHub ↗
(int u, int v, int w)

Source from the content-addressed store, hash-verified

51 public static int ans, ansu, ansv;
52
53 public static void addEdge(int u, int v, int w) {
54 nxt[++cntg] = head[u];
55 to[cntg] = v;
56 weight[cntg] = w;
57 head[u] = cntg;
58 }
59
60 public static void getSize(int u, int fa) {
61 siz[u] = 1;

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected