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

Method addEdge2

src/class187/Code02_Cobweb1.java:72–78  ·  view source on GitHub ↗
(int u, int v, int w, int c)

Source from the content-addressed store, hash-verified

70 }
71
72 public static void addEdge2(int u, int v, int w, int c) {
73 next2[++cnt2] = head2[u];
74 to2[cnt2] = v;
75 weight2[cnt2] = w;
76 color2[cnt2] = c;
77 head2[u] = cnt2;
78 }
79
80 public static void rebuild(int u, int fa) {
81 int last = 0;

Callers 1

rebuildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected