Talk:Dijkstra's algorithm: Difference between revisions

Line 30:
 
Dijkstra's algorithm can work on directed or undirected graphs. (An undirected graph can be converted into an equivalent directed graph, where for each edge in the original graph, you have two equal-weighted edges in opposite directions.) The example that the task asks the user to solve does not directly mention that it is an undirected graph; however, the solutions assume that it is an undirected graph, which is okay assuming that that was what was intended I guess. However, to be general, each solution's main algorithm implementing function should still be able to accept an adjacency matrix that is not an undirected graph. --[[User:Spoon!|Spoon!]] 08:43, 26 January 2012 (UTC)
 
:Excellent point and something I failed to appreciate. I just looked at the picture and didn't read carefully. —[[User:Sonia|Sonia]] 18:40, 27 January 2012 (UTC)
1,707

edits