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

Method rotateRight

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

Source from the content-addressed store, hash-verified

182 }
183
184 private Node rotateRight(Node h) {
185 Node x = h.left;
186 h.left = x.right;
187 x.right = h;
188 x.color = x.right.color;
189 x.right.color = RED;
190 x.size = h.size;
191 h.size = size(h.left) + size(h.right) + 1;
192 return x;
193 }
194
195 private Node rotateLeft(Node h) {
196 Node x = h.right;

Callers 6

putMethod · 0.95
deleteMaxMethod · 0.95
deleteMethod · 0.95
moveRedLeftMethod · 0.95
moveRedRightMethod · 0.95
balanceMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected