We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31c780 commit ad6b0f1Copy full SHA for ad6b0f1
Graphs/basic-graphs.py
@@ -187,8 +187,8 @@ def adjm():
187
"""
188
189
190
-def floy(xxx_todo_changeme):
191
- (A, n) = xxx_todo_changeme
+def floy(A_and_n):
+ (A, n) = A_and_n
192
dist = list(A)
193
path = [[0] * n for i in xrange(n)]
194
for k in xrange(n):
@@ -259,9 +259,9 @@ def edglist():
259
260
261
262
-def krusk(xxx_todo_changeme1):
+def krusk(E_and_n):
263
# Sort edges on the basis of distance
264
- (E, n) = xxx_todo_changeme1
+ (E, n) = E_and_n
265
E.sort(reverse=True, key=lambda x: x[2])
266
s = [set([i]) for i in range(1, n + 1)]
267
while True:
0 commit comments