Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Dijkstras-algorithm/Zkl/dijkstras-algorithm-2.zkl
Normal file
10
Task/Dijkstras-algorithm/Zkl/dijkstras-algorithm-2.zkl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
graph:=Dictionary( // directed graph
|
||||
"a", T(T("b", 7.0), T("c", 9.0), T("f",14.0)),
|
||||
"b", T(T("c",10.0), T("d",15.0)),
|
||||
"c", T(T("d",11.0), T("f", 2.0)),
|
||||
"d", T(T("e", 6.0)),
|
||||
"e", T(T("f", 9.0)),
|
||||
"f", T,
|
||||
);
|
||||
dijkstra(graph,"a","e").println();
|
||||
dijkstra(graph,"e","a").println();
|
||||
Loading…
Add table
Add a link
Reference in a new issue