Dijkstra Algorithm Consistent with Cyclic Paths
by Yi Wang
19 Jun 2005
(Updated 24 Jun 2005)
This function and attached examples show finding shortest-paths (including cyclic paths) from a dire
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Dijkstra Shortest Path Routing
|
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 04 Oct 2005 |
xialing wu
|
|
|
| 11 Jan 2006 |
David Lusseau
|
|
|
| 12 Jan 2006 |
David Lusseau
|
|
|
| 02 Feb 2006 |
Will Gikandi
|
|
|
| 15 Apr 2006 |
Sergey Seleznev
|
|
|
| 24 Sep 2006 |
Student Alexander
|
|
|
| 24 Jan 2007 |
Olivier Planchon
|
|
|
| 21 Sep 2007 |
w l
|
|
|
| 10 Nov 2007 |
rakesh nune
|
|
|
| 22 Feb 2008 |
vijayan duraiswamy
|
|
|
| 17 Mar 2008 |
Choi Uk
|
|
|
| 26 Mar 2008 |
Arun Kumar Mondal
|
|
|
| Updates |
| 24 Jun 2005 |
corrent Summary |
|
Contact us at files@mathworks.com