Skip to content

Commit 7e85e6d

Browse files
authored
Merge pull request #2 from luanrp/master
fix bug of shuffle
2 parents 15fa9fb + 09ca788 commit 7e85e6d

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)