pqueue_reset() and node_calculate_priority() implemented.