Struct adivon::priority_queue::binary_heaps::MaxPQ [] [src]

pub struct MaxPQ<Key> { /* fields omitted */ }

Generic max priority queue implementation with a binary heap

Methods

impl<Key: PartialOrd> MaxPQ<Key>
[src]

create an empty priority queue

create a priority queue with given keys

insert a key into the priority queue

return and remove the largest key

is the priority queue empty?

return the largest key

number of entries in the priority queue