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

Method _distance

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

Source from the content-addressed store, hash-verified

102
103 @property
104 def _distance(self):
105 # Graph.distance controls the (x,y) spacing between nodes.
106 return self.graph and float(self.graph.distance) or 1.0
107
108 def _get_x(self):
109 return self._x * self._distance

Callers 4

graph.jsFile · 0.45
test_distanceMethod · 0.45
test_repulsionMethod · 0.45
test_attractionMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_distanceMethod · 0.36
test_repulsionMethod · 0.36
test_attractionMethod · 0.36