Skip to content

Commit 9d49902

Browse files
author
Hamid Gasmi
committed
Issue #136 is refactored
1 parent c857f86 commit 9d49902

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

3-graph-algorithms/3_spanning_trees/connecting_points.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#Uses python3
21
import sys
32
import math
43
import queue
@@ -24,8 +23,7 @@ def minimum_distance(x, y):
2423
while not hq.empty():
2524
p = hq.get()
2625
visited[p.index] = True
27-
#print("(i, x, y, distances): ", p.index, p.x, p.y, distances)
28-
#print("hq.empty", "empty" if hq.empty() else "not empty")
26+
2927
for i in range(n):
3028
if not visited[i]:
3129
candidate_distance = math.sqrt((p.x - x[i])**2 + (p.y - y[i])**2)

0 commit comments

Comments
 (0)