Skip to content

Commit dcbab8e

Browse files
committed
Solve problem of line too long
1 parent 5a8f446 commit dcbab8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

graphs/basic_graphs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ def bfs(g, s):
151151

152152
def dijk(g, s):
153153
"""
154-
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)
154+
dijk({1: [(2, 7), (3, 9), (6, 14)],
155+
2: [(1, 7), (3, 10), (4, 15)],
156+
3: [(1, 9), (2, 10), (4, 11), (6, 2)],
157+
4: [(2, 15), (3, 11), (5, 6)],
158+
5: [(4, 6), (6, 9)],
159+
6: [(1, 14), (3, 2), (5, 9)]}, 1)
155160
7
156161
9
157162
11

0 commit comments

Comments
 (0)