pq

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue[T any] struct {
	// contains filtered or unexported fields
}

func Empty

func Empty[T any](less lessFunc[T]) PriorityQueue[T]

func (*PriorityQueue[T]) Add

func (p *PriorityQueue[T]) Add(x T)

func (*PriorityQueue[T]) GetNext

func (p *PriorityQueue[T]) GetNext() T

func (*PriorityQueue[T]) IsEmpty

func (p *PriorityQueue[T]) IsEmpty() bool

func (*PriorityQueue[T]) Rebuild

func (p *PriorityQueue[T]) Rebuild()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL