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

Method addEdge

src/class195/Code02_Journeys1.java:40–45  ·  view source on GitHub ↗
(int u, int v, int w)

Source from the content-addressed store, hash-verified

38 public static ArrayDeque<Integer> deq = new ArrayDeque<>();
39
40 public static void addEdge(int u, int v, int w) {
41 nxt[++cntg] = head[u];
42 to[cntg] = v;
43 weight[cntg] = w;
44 head[u] = cntg;
45 }
46
47 public static int buildOut(int l, int r) {
48 int rt;

Callers 5

buildOutMethod · 0.95
buildInMethod · 0.95
xToRangeMethod · 0.95
rangeToXMethod · 0.95
rangeToRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected