Skip to content

Commit d8e5eaf

Browse files
authored
Update basic_graphs.py
1 parent 340b886 commit d8e5eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphs/basic_graphs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def prim(G, s):
220220
if v[1] < dist.get(v[0], 100000):
221221
dist[v[0]] = v[1]
222222
path[v[0]] = u
223-
return sum(dist.values())
223+
return dist
224224

225225

226226
"""

0 commit comments

Comments
 (0)