Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PriorityQueue ¶
type PriorityQueue []*Item
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
Less implements sort.Interface
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
Pop implements heap.Interface
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
Push implements heap.Interface
func (*PriorityQueue) Update ¶
func (pq *PriorityQueue) Update(item *Item, cost, priority int, parent []coordinate.Interface)
Update adjusts the priority of something on the heap
Click to show internal directories.
Click to hide internal directories.