Skip to content

Commit ad6b0f1

Browse files
author
cclauss
committed
Modernize Python 2 code to get ready for Python 3
1 parent e31c780 commit ad6b0f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Graphs/basic-graphs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def adjm():
187187
"""
188188

189189

190-
def floy(xxx_todo_changeme):
191-
(A, n) = xxx_todo_changeme
190+
def floy(A_and_n):
191+
(A, n) = A_and_n
192192
dist = list(A)
193193
path = [[0] * n for i in xrange(n)]
194194
for k in xrange(n):
@@ -259,9 +259,9 @@ def edglist():
259259
"""
260260

261261

262-
def krusk(xxx_todo_changeme1):
262+
def krusk(E_and_n):
263263
# Sort edges on the basis of distance
264-
(E, n) = xxx_todo_changeme1
264+
(E, n) = E_and_n
265265
E.sort(reverse=True, key=lambda x: x[2])
266266
s = [set([i]) for i in range(1, n + 1)]
267267
while True:

0 commit comments

Comments
 (0)