code: public static <I, O> CompactMealy<I, O> minimizeMealy(MealyMachine<?, I, ?, O> mealy, Alphabet<I> alphabet) {
          return minimizeMealy(mealy, alphabet, PruningMode.PRUNE_AFTER);
      }
docs: Minimizes the given Mealy machine. The result is returned in the form of a {@link CompactMealy}, and pruning (see
  above) is performed after computing state equivalences.
  
  @param mealy
  the Mealy machine to minimize
  @param alphabet
  the input alphabet (this will be the input alphabet of the resulting Mealy machine)
  
  @return a minimized version of the specified Mealy machine