MCPcopy Create free account
hub / github.com/LFYSec/MScan / moveRedRight

Method moveRedRight

src/test/resources/pta/basic/RedBlackBST.java:229–238  ·  view source on GitHub ↗
(Node h)

Source from the content-addressed store, hash-verified

227 }
228
229 private Node moveRedRight(Node h) {
230 // assert (h != null);
231 // assert isRed(h) && !isRed(h.right) && !isRed(h.right.left);
232 flipColors(h);
233 if (isRed(h.left.left)) {
234 h = rotateRight(h);
235 flipColors(h);
236 }
237 return h;
238 }
239
240 private Node balance(Node h) {
241 // assert (h != null);

Callers 2

deleteMaxMethod · 0.95
deleteMethod · 0.95

Calls 3

flipColorsMethod · 0.95
isRedMethod · 0.95
rotateRightMethod · 0.95

Tested by

no test coverage detected