public Node extractMin() { HeapObject heapObject = heap.extractMin(); if (heapObject == null) { return null; } return heapObject.getNode(); }