Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue[V any, P PriorityValueType] []*QueueItem[V, P]
func (PriorityQueue[V, P]) Len ¶
func (pq PriorityQueue[V, P]) Len() int
func (PriorityQueue[V, P]) Less ¶
func (pq PriorityQueue[V, P]) Less(i, j int) bool
func (*PriorityQueue[V, P]) Pop ¶
func (pq *PriorityQueue[V, P]) Pop() any
func (*PriorityQueue[V, P]) Push ¶
func (pq *PriorityQueue[V, P]) Push(x any)
func (PriorityQueue[V, P]) Swap ¶
func (pq PriorityQueue[V, P]) Swap(i, j int)
type PriorityValueType ¶
type QueueItem ¶
type QueueItem[V any, P PriorityValueType] struct { Value V Priority P Index int }
Click to show internal directories.
Click to hide internal directories.