Redefine the diameter in terms of node heights.