(self)
| 220 | self.show_message("节点1插入后,需要右旋节点3达到平衡", tex=True, tex_map={"右旋": BLUE, "1":RED, "3":RED}) |
| 221 | |
| 222 | def construct(self): |
| 223 | self.start_logo(animate=False) |
| 224 | # self.show_colors() |
| 225 | self.init_message("红黑树的旋转", tex=True, tex_map={"红": RED_D}) |
| 226 | |
| 227 | self.show_left() |
| 228 | |
| 229 | self.reset_speed_up() |
| 230 | self.show_right() |
| 231 | |
| 232 | self.wait() |
| 233 | |
| 234 | # 3 case |
| 235 | class RedBlackTreeInsert(RBScene): |
nothing calls this directly
no test coverage detected