Skip to content

Commit 406b7fd

Browse files
karthikeyansaitsvinayak
authored andcommitted
Update basic_graphs.py (TheAlgorithms#1990)
* Update basic_graphs.py missing return statement line no:223. * Update basic_graphs.py Co-authored-by: vinayak <[email protected]>
1 parent 8c4d27a commit 406b7fd

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 dist
223224

224225

225226
"""

0 commit comments

Comments
 (0)