heap-tools 0.1.0
An indexed priority queue with decrease-key
Install
cargo add heap-tools --registry rupm
In Ruststudio: Packages, search for heap-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# heap-tools
An indexed priority queue with decrease-key
Add it with `rupm add heap-tools` (or `cargo add heap-tools --registry rupm`).
```rust
let mut h = heap_tools::IndexedHeap::new();
h.push("a", 5);
h.push("b", 3);
h.decrease_key(&"a", 1)?;
assert_eq!(h.pop(), Some(("a", 1)));
```