/// <summary>Initializes a new HeapPriorityQueue, reusing the storage of the specified List.</summary> /// <param name="collection">The List to be contents of the new HeapPriorityQueue.</param> public HeapPriorityQueue(List <HexKeyValuePair <TKey, TValue> > list) : base() { if (list == null) { throw new ArgumentNullException("collection"); } _minHeap = new MinListHeap(list); }
/// <summary>Initializes a new instance of the HeapPriorityQueue class.</summary> public HeapPriorityQueue() { _minHeap = new MinListHeap(); }