class Kleene::NFA

def error_states

def error_states
  @states.select(&:error?).to_set
end