public void registerAllPossibleTransition(Automaton[] states) {
        for (int i = 0; i < states.length; i++) {
            for (int j = i; j < states.length; j++) {
                registerTransition(states[i], states[j]);
                registerTransition(states[j], states[i]);
            }
        }
    }
public void registerAllPossibleTransition ( Automaton [ ] states ) { for ( int i = 0 ; i < states . length ; i ++ ) { for ( int j = i ; j < states . length ; j ++ ) { registerTransition ( states [ i ] , states [ j ] ) ; registerTransition ( states [ j ] , states [ i ] ) ; } } }
Pasandole un array genera todas las transiciones posibles entre los
estados.