mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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