/**
* Looks up transitions in transition function.
* @return (q,c)
* @exception IllegalArgumentException if c is not in the alphabet
*/
public Set delta(State q, char c) throws IllegalArgumentException {
if (!alphabet.symbols.contains(c) && c!=LAMBDA)
throw new IllegalArgumentException("symbol '"+c+"' not in alphabet");
Set set = transitions.get(new StateSymbolPair(q, c));
if (set==null)
set = new HashSet();
return set;
}