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

Method construct

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

Source from the content-addressed store, hash-verified

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
235class RedBlackTreeInsert(RBScene):

Callers

nothing calls this directly

Calls 4

show_leftMethod · 0.95
show_rightMethod · 0.95
start_logoMethod · 0.80
init_messageMethod · 0.80

Tested by

no test coverage detected