MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / construct

Method construct

animations/rb.py:326–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
340def memory():
341 import os

Callers

nothing calls this directly

Calls 5

randMethod · 0.95
start_logoMethod · 0.80
init_messageMethod · 0.80
show_colorsMethod · 0.80
show_messageMethod · 0.45

Tested by

no test coverage detected