MCPcopy Index your code
hub / github.com/clips/pattern / reset

Method reset

pattern/graph/__init__.py:590–595  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

588 self.iterations += 1
589
590 def reset(self):
591 self.iterations = 0
592 for n in self.graph.nodes:
593 n._x = 0
594 n._y = 0
595 n.force = Vector(0,0)
596
597 @property
598 def bounds(self):

Callers 2

test_updateMethod · 0.45
test_repulsionMethod · 0.45

Calls 1

VectorClass · 0.70

Tested by 2

test_updateMethod · 0.36
test_repulsionMethod · 0.36