We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1f9c1 commit 669f63aCopy full SHA for 669f63a
content/algorithms/Dijkstra/Dijkstra.md
@@ -39,11 +39,11 @@ import networkx as nx
39
40
flight_path= nx.DiGraph()
41
42
-flight_path.add_nodes_from(['DEL','AMS','DUB','ZRH','FRA','LCY'])
+flight_path.add_nodes_from(['DEL', 'AMS', 'DUB', 'ZRH', 'FRA', 'LCY'])
43
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)])
+flight_path.add_weighted_edges_from([('DEL', 'ZRH', 5), ('DEL', 'FRA', 6), ('DEL', 'DUB', 7), ('ZRH', 'LCY', 6),
+ ('FRA', 'LCY', 3), ('AMS', 'LCY', 5),('DUB', 'LCY', 4), ('AMS', 'FRA', 1),
+ ('DUB', 'AMS', 2), ('ZRH', 'GVA', 3), ('GVA', 'LCY', 1)])
47
48
pos= nx.planar_layout(flight_path)
49
0 commit comments