vincentiusyoshuac commited on
Commit
7e41b66
·
verified ·
1 Parent(s): a14d0b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -115,10 +115,8 @@ def optimize_route(distances: np.ndarray) -> List[int]:
115
 
116
  # Convert assignment to tour
117
  tour = []
118
- current = 0
119
- for _ in range(n):
120
- tour.append(current)
121
- current = col_ind[current]
122
 
123
  return tour
124
 
 
115
 
116
  # Convert assignment to tour
117
  tour = []
118
+ for i in range(n):
119
+ tour.append(col_ind[i])
 
 
120
 
121
  return tour
122