diff --git a/DataStructures/BinaryHeap.h b/DataStructures/BinaryHeap.h index b1e838b8f..5978cd889 100644 --- a/DataStructures/BinaryHeap.h +++ b/DataStructures/BinaryHeap.h @@ -125,6 +125,10 @@ public: return static_cast( heap.size() - 1 ); } + bool Empty() const { + return 0 == Size(); + } + void Insert( NodeID node, Weight weight, const Data &data ) { HeapElement element; element.index = static_cast(insertedNodes.size());