using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Priority_Queue { /// Credit: https://github.com/BlueRaja/High-Speed-Priority-Queue-for-C-Sharp public class GenericPriorityQueueNode { /// /// The Priority to insert this node at. Must be set BEFORE adding a node to the queue (ideally just once, in the node's constructor). /// Should not be manually edited once the node has been enqueued - use queue.UpdatePriority() instead /// public TPriority Priority { get; protected internal set; } /// /// Represents the current position in the queue /// public int QueueIndex { get; internal set; } /// /// Represents the order the node was inserted in /// public long InsertionIndex { get; internal set; } } }