(self)
| 324 | self.wait() |
| 325 | |
| 326 | def construct(self): |
| 327 | self.start_logo(animate=False) |
| 328 | self.init_message("红黑树删除的4个case", tex=True, tex_map={"4":RED, "case":RED}) |
| 329 | # left case 1,2,3,4 |
| 330 | self.show_message("节点在左边的情况",tex=True, tex_map={"左边":BLUE_D}) |
| 331 | self.show_colors(direction=UR) |
| 332 | self.rand(560, 9, 3, 3) |
| 333 | |
| 334 | # right case 1,2,3,4 |
| 335 | self.show_message("节点在右边的情况",tex=True, tex_map={"右边":BLUE_D}) |
| 336 | self.rand(18, 8, 2, 3) |
| 337 | |
| 338 | self.wait() |
| 339 | |
| 340 | def memory(): |
| 341 | import os |
nothing calls this directly
no test coverage detected