code: public static <S, I, A extends DFA<S, I> & InputAlphabetHolder<I>> CompactDFA<I> minimizeDFA(A dfa,
                                                                                                   PruningMode pruningMode) {
          return doMinimizeDFA(dfa, dfa.getInputAlphabet(), new CompactDFA.Creator<>(), pruningMode);
      }
docs: Minimizes the given DFA. The result is returned in the form of a {@link CompactDFA}, using the input alphabet
  obtained via <code>dfa.{@link InputAlphabetHolder#getInputAlphabet() getInputAlphabet()}</code>.
  
  @param dfa
  the DFA to minimize
  @param pruningMode
  the pruning mode (see above)
  
  @return a minimized version of the specified DFA