return g;
}
public PDA generatePDA() {
PDA pda = new PDA();
pda.reset();
pda.setInitialState(this.initialState);
pda.setInput(this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", "")
+ this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", ""));
this.finalStates.forEach(state -> pda.addFinalState(state));