class_docstr: Properties
  ==========
  
  [1] `0 \in \Omega` and `\tau(1) = \epsilon`
  [2] `\alpha^x = \beta \Leftrightarrow \beta^{x^{-1}} = \alpha`
  [3] If `\alpha^x = \beta`, then `H \tau(\alpha)x = H \tau(\beta)`
  [4] `\forall \alpha \in \Omega, 1^{\tau(\alpha)} = \alpha`
  
  References
  ==========
  
  .. [1] Holt, D., Eick, B., O'Brien, E.
         "Handbook of Computational Group Theory"
  
  .. [2] John J. Cannon; Lucien A. Dimino; George Havas; Jane M. Watson
         Mathematics of Computation, Vol. 27, No. 123. (Jul., 1973), pp. 463-490.
         "Implementation and Analysis of the Todd-Coxeter Algorithm"
class_docstr_tok: ["Properties","==========","[","1","]","`","0","\\in","\\Omega","`","and","`","\\tau","(","1",")","=","\\epsilon","`","[","2","]","`","\\alpha^x","=","\\beta","\\Leftrightarrow","\\beta^","{","x^","{","-1","}","}","=","\\alpha","`","[","3","]","If","`","\\alpha^x","=","\\beta","`",",","then","`","H","\\tau","(","\\alpha",")","x","=","H","\\tau","(","\\beta",")","`","[","4","]","`","\\forall","\\alpha","\\in","\\Omega",",","1^","{","\\tau","(","\\alpha",")","}","=","\\alpha","`","References","==========","..","[","1","]","Holt",",","D.",",","Eick",",","B.",",","O'Brien",",","E.","``","Handbook","of","Computational","Group","Theory","''","..","[","2","]","John","J.","Cannon",";","Lucien","A.","Dimino",";","George","Havas",";","Jane","M.","Watson","Mathematics","of","Computation",",","Vol",".","27",",","No",".","123",".","(","Jul.",",","1973",")",",","pp",".","463-490",".","``","Implementation","and","Analysis","of","the","Todd-Coxeter","Algorithm","''"]
docstr: Switch the elements `\beta, \gamma \in \Omega` of ``self``, used
  by the ``standardize`` procedure, described on Pg. 167 [1].
  
  See Also
  ========
  
  standardize
docstr_tok: ["Switch","the","elements","`","\\beta",",","\\gamma","\\in","\\Omega","`","of","``","self","``",",","used","by","the","``","standardize","``","procedure",",","described","on","Pg",".","167","[","1","]",".","See","Also","========","standardize"]
code: def switch(self, beta, gamma):
      r"""Switch the elements `\beta, \gamma \in \Omega` of ``self``, used
      by the ``standardize`` procedure, described on Pg. 167 [1].
  
      See Also
      ========
  
      standardize
  
      """
      A = self.A
      A_dict = self.A_dict
      table = self.table
      for x in A:
          z = table[gamma][A_dict[x]]
          table[gamma][A_dict[x]] = table[beta][A_dict[x]]
          table[beta][A_dict[x]] = z
          for alpha in range(len(self.p)):
              if self.p[alpha] == alpha:
                  if table[alpha][A_dict[x]] == beta:
                      table[alpha][A_dict[x]] = gamma
                  elif table[alpha][A_dict[x]] == gamma:
                      table[alpha][A_dict[x]] = beta
  
imports: from sympy.combinatorics.free_groups import free_group
  from sympy.printing.defaults import DefaultPrinting
  from itertools import chain, product
  from bisect import bisect_left
label_desc: Use image node_id 21 for calling the CosetTable obj's underlying member method code with example usage: obj.switch(beta, gamma) without return types