def set_epsilon_closure(state_set):
 result = {}
 for state1 in state_set:
  for state2 in epsilon_closure(state1):
   result[state2] = 1
 return result

def set_epsilon_closure ( state_set ) : result = { } for state1 in state_set : for state2 in epsilon_closure ( state1 ) : result [ state2 ] = 1 return result
given a set of states .