Click or drag to resize

PriorityQueueTKey, TValueToNodeArray Method

Copies the nodes of the priority queue to a new array, sorts it and returns it in priority order.

This is an O(n log(n)) operation

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public PriorityQueueTKey, TValueNode[] ToNodeArray(
	bool highestFirst
)

Parameters

highestFirst
Type: SystemBoolean
Bool indicating if the highest priority should be the first value (true) or the last value (false)

Return Value

Type: PriorityQueueTKey, TValueNode
See Also