Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
func New ¶
func New(compare func(interface{}, interface{}) bool) *PriorityQueue
func NewWithCapacity ¶
func NewWithCapacity(compare func(interface{}, interface{}) bool, capacity int) *PriorityQueue
func (PriorityQueue) Clear ¶
func (pq PriorityQueue) Clear()
func (PriorityQueue) Empty ¶
func (pq PriorityQueue) Empty() bool
func (PriorityQueue) Pop ¶
func (pq PriorityQueue) Pop() interface{}
func (PriorityQueue) Push ¶
func (pq PriorityQueue) Push(x interface{})
func (PriorityQueue) Size ¶
func (pq PriorityQueue) Size() int
Click to show internal directories.
Click to hide internal directories.