private void medianPos(int i,mxGraphHierarchyModel model){
  boolean downwardSweep=(i % 2 == 0);
  if (downwardSweep) {
    for (int j=model.maxRank; j > 0; j--) {
      rankMedianPosition(j - 1,model,j);
    }
  }
 else {
    for (int j=0; j < model.maxRank - 1; j++) {
      rankMedianPosition(j + 1,model,j);
    }
  }
}

private void medianPos ( int i , mxGraphHierarchyModel model ) { boolean downwardSweep = ( i % 2 == 0 ) ; if ( downwardSweep ) { for ( int j = model . maxRank ; j > 0 ; j -- ) { rankMedianPosition ( j - 1 , model , j ) ; } } else { for ( int j = 0 ; j < model . maxRank - 1 ; j ++ ) { rankMedianPosition ( j + 1 , model , j ) ; } } }
performs one median positioning sweep in one direction
