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

Method __init__

animations/src/algo_vector.py:6–13  ·  view source on GitHub ↗
(self, scene, datas=[], **kwargs)

Source from the content-addressed store, hash-verified

4
5class AlgoVector(AlgoVGroup):
6 def __init__(self, scene, datas=[], **kwargs):
7 self.datas = datas
8 self.arrows = []
9 self.scene = scene
10 super().__init__(**kwargs)
11 for k in datas:
12 self.add(AlgoNode(str(k), **kwargs))
13 self.arrange()
14
15 def print(self):
16 print(" ".join(str(i) for i in self.datas))

Callers

nothing calls this directly

Calls 2

AlgoNodeClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected