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

Method edge

src/class201/Code07_Network1.java:176–180  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

174 }
175
176 public static long edge(int x, int y) {
177 int a = Math.min(x, y);
178 int b = Math.max(x, y);
179 return (1L * a) << 32 | b;
180 }
181
182 public static void connect(int c, int x, int y) {
183 int u = node(c, x);

Callers 3

connectMethod · 0.95
disconnectMethod · 0.95
updateEdgeMethod · 0.95

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected