Method EnqueueMinimum
View SourceEnqueueMinimum(TElement, TPriority)
Adds or updates the specified element with associated priority to the UpdatablePriorityQueue<TElement, TPriority>, using the lessor of the existing or the new priority.
Declaration
public void EnqueueMinimum(TElement element, TPriority priority)
Parameters
Type | Name | Description |
---|---|---|
TElement | element | The element to add to the UpdatablePriorityQueue<TElement, TPriority>. |
TPriority | priority | The priority with which to associate the new element. |
Remarks
If an elements already exists in this queue, the priority for that element is set to the lessor of the new and the old priorities.