Handle the case for negative nodes

what if all the nodes are negative, how to handle that case?