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

Method rangeToRange

src/class195/Code03_Road1.java:112–118  ·  view source on GitHub ↗
(int a, int b, int c, int d, int w)

Source from the content-addressed store, hash-verified

110 }
111
112 public static void rangeToRange(int a, int b, int c, int d, int w) {
113 int x = ++cntt;
114 int y = ++cntt;
115 rangeToX(a, b, x, 1, n, rootOut);
116 xToRange(y, c, d, 1, n, rootIn);
117 addEdge(x, y, w);
118 }
119
120 public static int dijkstra(int start, int target) {
121 for (int i = 1; i <= cntt; i++) {

Callers 1

mainMethod · 0.95

Calls 3

rangeToXMethod · 0.95
xToRangeMethod · 0.95
addEdgeMethod · 0.95

Tested by

no test coverage detected