Click or drag to resize
Accord.NET (logo)

PriorityQueueTUpdatePriority Method

This method must be called on a node every time its priority changes while it is in the queue. Forgetting to call this method will result in a corrupted queue!. This is an O(log n) operation.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public void UpdatePriority(
	ref PriorityQueueNode<T> node,
	double priority
)
Request Example View Source

Parameters

node
Type: Accord.CollectionsPriorityQueueNodeT
priority
Type: SystemDouble
See Also