class_docstr: Sankey diagram.
  
    Sankey diagrams are a specific type of flow diagram, in which
    the width of the arrows is shown proportionally to the flow
    quantity.  They are typically used to visualize energy or
    material or cost transfers between processes.
    `Wikipedia (6/1/2011) <https://en.wikipedia.org/wiki/Sankey_diagram>`_
docstr: A path is not simply reversible by path[::-1] since the code
  specifies an action to take from the **previous** point.
docstr_tok: ["A","path","is","not","simply","reversible","by","path","[",":",":-1","]","since","the","code","specifies","an","action","to","take","from","the","*","*","previous","*","*","point","."]
code: def _revert(self, path, first_action=Path.LINETO):
      """
      A path is not simply reversible by path[::-1] since the code
      specifies an action to take from the **previous** point.
      """
      reverse_path = []
      next_code = first_action
      for code, position in path[::-1]:
          reverse_path.append((next_code, position))
          next_code = code
      return reverse_path
  
file_path: matplotlib/lib/matplotlib/sankey.py
imports: import logging
  from types import SimpleNamespace
  import numpy
  import matplotlib
  from matplotlib.path import Path
  from matplotlib.patches import PathPatch
  from matplotlib.transforms import Affine2D
  from matplotlib import _docstring
label_desc: Use image node_id 5 for calling the Sankey obj's underlying member method code with example usage: obj._revert(path, first_action) and returns: reverse_path