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

Method pop

animations/src/algo_stack.py:29–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 print("stack push size:", len(self.datas))
28
29 def pop(self):
30 p = self.nodes[-1]
31 self.remove(p)
32 self.scene.play(FadeOut(p.copy()))
33 del self.datas[-1]
34 del self.nodes[-1]
35 self.arrange()
36 print("stack pop size:", len(self.datas))
37
38 def empty(self):
39 return len(self.datas) == 0

Callers 5

constructMethod · 0.95
calc_tree_dataMethod · 0.45
calc_tree_dataMethod · 0.45
travel_to_nodesMethod · 0.45
calc_tree_dataMethod · 0.45

Calls 2

printFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected