mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Solve problem of line too long
This commit is contained in:
parent
5a8f446281
commit
dcbab8eee9
|
@ -151,7 +151,12 @@ def bfs(g, s):
|
|||
|
||||
def dijk(g, s):
|
||||
"""
|
||||
dijk({1: [(2, 7), (3, 9), (6, 14)], 2: [(1, 7), (3, 10), (4, 15)], 3: [(1, 9), (2, 10), (4, 11), (6, 2)], 4: [(2, 15), (3, 11), (5, 6)], 5: [(4, 6), (6, 9)], 6: [(1, 14), (3, 2), (5, 9)]}, 1)
|
||||
dijk({1: [(2, 7), (3, 9), (6, 14)],
|
||||
2: [(1, 7), (3, 10), (4, 15)],
|
||||
3: [(1, 9), (2, 10), (4, 11), (6, 2)],
|
||||
4: [(2, 15), (3, 11), (5, 6)],
|
||||
5: [(4, 6), (6, 9)],
|
||||
6: [(1, 14), (3, 2), (5, 9)]}, 1)
|
||||
7
|
||||
9
|
||||
11
|
||||
|
|
Loading…
Reference in New Issue
Block a user