Skip to content

Commit 669f63a

Browse files
committed
test 4
1 parent 4b1f9c1 commit 669f63a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/algorithms/Dijkstra/Dijkstra.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ import networkx as nx
3939

4040
flight_path= nx.DiGraph()
4141

42-
flight_path.add_nodes_from(['DEL','AMS','DUB','ZRH','FRA','LCY'])
42+
flight_path.add_nodes_from(['DEL', 'AMS', 'DUB', 'ZRH', 'FRA', 'LCY'])
4343

44-
flight_path.add_weighted_edges_from([('DEL','ZRH',5),('DEL','FRA',6),('DEL','DUB',7), ('ZRH','LCY',6),
45-
('FRA','LCY',3),('AMS','LCY',5),('DUB','LCY',4),('AMS','FRA',1),
46-
('DUB','AMS',2),('ZRH','GVA',3),('GVA','LCY',1)])
44+
flight_path.add_weighted_edges_from([('DEL', 'ZRH', 5), ('DEL', 'FRA', 6), ('DEL', 'DUB', 7), ('ZRH', 'LCY', 6),
45+
('FRA', 'LCY', 3), ('AMS', 'LCY', 5),('DUB', 'LCY', 4), ('AMS', 'FRA', 1),
46+
('DUB', 'AMS', 2), ('ZRH', 'GVA', 3), ('GVA', 'LCY', 1)])
4747

4848
pos= nx.planar_layout(flight_path)
4949

0 commit comments

Comments
 (0)