Skip to content

Commit 09ca788

Browse files
committed
fix bug of shuffle
1 parent 15fa9fb commit 09ca788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

christofides.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def find_odd_vertexes(MST):
128128

129129
def minimum_weight_matching(MST, G, odd_vert):
130130
import random
131-
odd_vert = random.shuffle(odd_vert)
131+
random.shuffle(odd_vert)
132132

133133
while odd_vert:
134134
v = odd_vert.pop()

0 commit comments

Comments
 (0)