|
|
@ -195,7 +195,7 @@ class PlaceUnplacedVertices(StyleAnnotator):
|
|
|
|
vtxid, x, y, move = queue.pop(0) # Maybe bad code? (cf. deque)
|
|
|
|
vtxid, x, y, move = queue.pop(0) # Maybe bad code? (cf. deque)
|
|
|
|
if move:
|
|
|
|
if move:
|
|
|
|
angle = random.random() * 2 * math.pi
|
|
|
|
angle = random.random() * 2 * math.pi
|
|
|
|
distance = random.randint(20, 200)
|
|
|
|
distance = random.randint(20, 500)
|
|
|
|
dx = distance * math.cos(angle)
|
|
|
|
dx = distance * math.cos(angle)
|
|
|
|
dy = distance * math.sin(angle)
|
|
|
|
dy = distance * math.sin(angle)
|
|
|
|
x += dx
|
|
|
|
x += dx
|
|
|
|