Deal with pruning last node's edges case