An open API service indexing awesome lists of open source software.

https://github.com/codezizo/dijkstra


https://github.com/codezizo/dijkstra

dijkstra-algorithm implementation of python

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# dijkstra algorithim

This is a python implementation of Dijkstra:
To be noted that due to the lack of a method in heapq to update priority in python's heapq I opted for a non-optimal O(N) remove and readd nodes in the heap.
This returns a hash with all the distances and their respective paths