Skip to content

Commit 340b886

Browse files
Update basic_graphs.py
missing return statement line no:223.
1 parent 565060a commit 340b886

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphs/basic_graphs.py

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +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())
223224

224225

225226
"""

0 commit comments

Comments
 (0)