calculate max node width
orthogonal lines