parameters: (reachability_plot, predecessor_plot, ordering, s, e)
return_statement: return None, None
docstring: Correct for predecessors.
  
      Applies Algorithm 2 of [1]_.
  
      Input parameters are ordered by the computer OPTICS ordering.
  
      .. [1] Schubert, Erich, Michael Gertz.
         "Improving the Cluster Structure Extracted from OPTICS Plots." Proc. of
         the Conference "Lernen, Wissen, Daten, Analysen" (LWDA) (2018): 318-329.
docstring_summary: Correct for predecessors.
docstring_tokens: Correct for predecessors .
function: def _correct_predecessor(reachability_plot, predecessor_plot, ordering, s, e):
      """Correct for predecessors.
  
      Applies Algorithm 2 of [1]_.
  
      Input parameters are ordered by the computer OPTICS ordering.
  
      .. [1] Schubert, Erich, Michael Gertz.
         "Improving the Cluster Structure Extracted from OPTICS Plots." Proc. of
         the Conference "Lernen, Wissen, Daten, Analysen" (LWDA) (2018): 318-329.
      """
      while s < e:
          if reachability_plot[s] > reachability_plot[e]:
              return s, e
          p_e = ordering[predecessor_plot[e]]
          for i in range(s, e):
              if p_e == ordering[i]:
                  return s, e
          e -= 1
      return None, None
function_tokens: def _correct_predecessor ( reachability_plot , predecessor_plot , ordering , s , e ) : while s < e : if reachability_plot [ s ] > reachability_plot [ e ] : return s , e p_e = ordering [ predecessor_plot [ e ] ] for i in range ( s , e ) : if p_e == ordering [ i ] : return s , e e -= 1 return None , None