This is the first release of a module I've just written, released under the LGPL. It is available for download at: http://www.pigpond.com/~earthpig/PQueue-0.1a.tar.bz2
From the documentation included with the release:
PQueue Extension Module for Python - 0.1a
=========================================
This C extension implements a priority-queue object using a fibonacci
heap as the underlying data structure. This data structure supports
the following operations with the given amortized time-complexity:
- insert: O(1)
- find-min: O(1)
- extract-min: O(lg N)
- decrease-key: O(1)
- increase-key: O(lg N) (== delete, insert)
- delete: O(lg N) (== decrease-key, extract-min)
This asymptotic behaviour compares favourably to more traditional
structures such as binomial heaps, at the cost of slightly higher
constant overheads.
This is the first public release of this extension -- feedback is both
welcome and encouraged. Thanks must go to James Henstridge