/// <summary> /// Constructor using predefined priority rules /// </summary> /// <param name="compararer">The compararer which will set the priority rules</param> public PriorityQueue(Comparer <T> compararer) { this.queue = new BinaryHeap <T>(compararer); }
public PriorityQueue() { this.items = new BinaryHeap <T>(); }