mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
Update basic_graphs.py (#1990)
* Update basic_graphs.py missing return statement line no:223. * Update basic_graphs.py Co-authored-by: vinayak <itssvinayak@gmail.com>
This commit is contained in:
parent
423dd2b020
commit
e292ddb5ec
|
@ -220,6 +220,7 @@ def prim(G, s):
|
|||
if v[1] < dist.get(v[0], 100000):
|
||||
dist[v[0]] = v[1]
|
||||
path[v[0]] = u
|
||||
return dist
|
||||
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user