def epsilon_closure(state):
 result = state.epsilon_closure
 if (result is None):
  result = {}
  state.epsilon_closure = result
  add_to_epsilon_closure(result, state)
 return result

def epsilon_closure ( state ) : result = state . epsilon_closure if ( result is None ) : result = { } state . epsilon_closure = result add_to_epsilon_closure ( result , state ) return result
return the set of states reachable from the given state by epsilon moves .