Skip to content

Commit e2ed5cc

Browse files
committed
Add Dijkstra algorithm illustrations and explanations
1 parent a88971d commit e2ed5cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/algorithms/graph/dijkstra/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ If the node that we're visiting (in this case the node `C`) is already in the qu
8383

8484
Now we now the shortest distances to ech node from the start node `A`. In practice, during the distance calculations we also record the the `previousVertices` for each node to be able to show the exact sequence of nodes that forms the shortest path.
8585

86+
## Implementation example
87+
88+
- [dijkstra.js](./dijkstra.js)
89+
8690
## References
8791

8892
- [Wikipedia](https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm)

0 commit comments

Comments
 (0)