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

Method addEdge1

src/class195/Code08_Forest1.java:69–73  ·  view source on GitHub ↗
(int u, int v)

Source from the content-addressed store, hash-verified

67 public static PriorityQueue<int[]> heap = new PriorityQueue<>((a, b) -> a[1] - b[1]);
68
69 public static void addEdge1(int u, int v) {
70 next1[++cnt1] = head1[u];
71 to1[cnt1] = v;
72 head1[u] = cnt1;
73 }
74
75 public static void addEdge2(int u, int v, int w) {
76 next2[++cnt2] = head2[u];

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected