public void FibonacciHeapClearTest() { // empty heap FibonacciHeap <Int32, String> heap = new FibonacciHeap <Int32, String>(); heap.Clear(); heap.Count.ShouldBe(0); // filled heap heap = new FibonacciHeap <Int32, String>(this.values); heap.Clear(); heap.Count.ShouldBe(0); }
/// <summary> /// Clears the priority queue /// </summary> public void Clear() => heap.Clear();
public void ClearQueue() { heap.Clear(); fibonacciNodeDic.Clear(); }