Get width of each level and compare the width with maximum width so far
for ( i = 1 ; i <= h ; i ++ ) { width = getWidth ( node , i ) ; if ( width > maxWidth ) { maxWidth = width ; } } return maxWidth ; }