Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Dijkstras-algorithm/Maple/dijkstras-algorithm.maple
Normal file
5
Task/Dijkstras-algorithm/Maple/dijkstras-algorithm.maple
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
restart:
|
||||
with(GraphTheory):
|
||||
G:=Digraph([a,b,c,d,e,f],{[[a,b],7],[[a,c],9],[[a,f],14],[[b,c],10],[[b,d],15],[[c,d],11],[[c,f],2],[[d,e],6],[[e,f],9]}):
|
||||
DijkstrasAlgorithm(G,a);
|
||||
# [[[a], 0], [[a, b], 7], [[a, c], 9], [[a, c, d], 20], [[a, c, d, e], 26], [[a, c, f], 11]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue