code: def members(self, x):
          
          if x not in self._parents:
              yield x
              return
          cur_x = x
          while True:
              yield cur_x
              cur_x = self._prev_next[cur_x][1]
              if cur_x == x:
                  break
docs: Yields the members of the equivalence class containing `x`.