You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Given adjacent matrix (transmat) and starting/ending node (pathS, pathE), this function finds the shortest-path (path) that connecting pathS and pathE, and returns the cost (cost):
[path, cost]=dijkstra(pathS, pathE, transmat);
NOTE: Except for the simple interface, the pathS and pathE can be the same node, i.e., this implementation can find _cyclic_ paths.
Cite As
Yi Wang (2026). Dijkstra Algorithm Consistent with Cyclic Paths (https://in.mathworks.com/matlabcentral/fileexchange/7869-dijkstra-algorithm-consistent-with-cyclic-paths), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Dijkstra Shortest Path Routing
General Information
- Version 1.0.0.0 (28.8 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | corrent Summary |
