Click or drag to resize
Accord.NET (logo)

PriorityQueueTEnqueue Method

Enqueue a node to the priority queue. Lower values are placed in front. Ties are broken by first-in-first-out. This is an O(log n) operation.

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

Parameters

value
Type: T
priority
Type: SystemDouble

Return Value

Type: PriorityQueueNodeT
See Also