A heap with decrease-key and increase-key operations
copied from cf-staging / heapdictconda install conda-forge::heapdict
conda install conda-forge/label/cf201901::heapdict
conda install conda-forge/label/cf202003::heapdict
heapdict implements the MutableMapping ABC, meaning it works pretty much like a regular Python dict. It's designed to be used as a priority queue.