return new State(node.kind,node.data,node.deterministic,nchildren);
}
public static void main(String[] args) {
State[] states = new State[3];
states[0] = new State(0,false,new int[]{1});
states[1] = new State(0,false,new int[]{1,2});
states[2] = new State(0,false,new int[]{});
Automaton a = new Automaton(states);
System.out.println("GOT: " + a);
a = minimise(a);
System.out.println("NOW: " + a);
}