betweenness and diameter