Dijkstra's algorithm: Difference between revisions
m
→{{header|Maple}}
(→{{header|Mathematica}}: +Maple) |
|||
Line 3,368:
<lang maple>restart:
with(GraphTheory):
G:=
DijkstrasAlgorithm(G,a);
# [[[a], 0], [[a, b], 7], [[a, c], 9], [[a, c, d], 20], [[a, c, d, e], 26], [[a, c, f], 11]]</lang>
|