private int max(Map<Integer,ModifiableDBIDs> candidates){
  DBIDs maxSet=null;
  Integer maxDim=null;
  for (  Integer nextDim : candidates.keySet()) {
    DBIDs nextSet=candidates.get(nextDim);
    if (maxSet == null || maxSet.size() < nextSet.size()) {
      maxSet=nextSet;
      maxDim=nextDim;
    }
  }
  return maxDim;
}

private int max ( Map < Integer , ModifiableDBIDs > candidates ) { DBIDs maxSet = null ; Integer maxDim = null ; for ( Integer nextDim : candidates . keySet ( ) ) { DBIDs nextSet = candidates . get ( nextDim ) ; if ( maxSet == null || maxSet . size ( ) < nextSet . size ( ) ) { maxSet = nextSet ; maxDim = nextDim ; } } return maxDim ; }
returns the set with the maximum size contained in the specified map .
