class_docstr: The classic Sugiyama layout aka layered layout.
  
  - See https://en.wikipedia.org/wiki/Layered_graph_drawing
  - Excellent explanation: https://www.youtube.com/watch?v=Z0RGCWxvCxA
  
  
  **Attributes**
      - dirvh (int): the current aligment state for alignment policy:
               dirvh=0 -> dirh=+1, dirv=-1: leftmost upper
               dirvh=1 -> dirh=-1, dirv=-1: rightmost upper
               dirvh=2 -> dirh=+1, dirv=+1: leftmost lower
               dirvh=3 -> dirh=-1, dirv=+1: rightmost lower
      - order_iter (int): the default number of layer placement iterations
      - order_attr (str): set attribute name used for layer ordering
      - xspace (int): horizontal space between vertices in a layer
      - yspace (int): vertical space between layers
      - dw (int): default width of a vertex
      - dh (int): default height of a vertex
      - g (GraphBase): the graph component reference
      - layers (list[sugiyama.layer.Layer]): the list of layers
      - layoutVertices (dict): associate vertex (possibly dummy) with their sugiyama attributes
      - ctrls (dict): associate edge with all its vertices (including dummies)
      - dag (bool): the current acyclic state
      - init_done (bool): True if things were initialized
  
  **Example**
  
      ::
  
          g = nx.generators.connected_watts_strogatz_graph(1000, 2, 0.3)
          # render
          SugiyamaLayout.draw(g)
          # positions
          positions_dictionary = SugiyamaLayout.arrange(g)
code: def __place_block(self, v):
      g = self.layoutVertices
      if g[v].X is None:
          # every block is initially placed at x=0
          g[v].X = 0.0
          # place block in which v belongs:
          w = v
          while 1:
              j = (
                  g[w].pos - self.dirh
              )  # predecessor in layer must be placed
              r = g[w].layer
              if 0 <= j < len(self.layers[r]):
                  wprec = self.layers[r][j]
                  delta = self.xspace + (wprec.view.w + w.view.w) / 2.0
                  # take root and place block:
                  u = g[wprec].root
                  self.__place_block(u)
                  # set sink as sink of prec-block root
                  if g[v].sink is v:
                      g[v].sink = g[u].sink
                  if g[v].sink != g[u].sink:
                      s = g[u].sink
                      newshift = g[v].X - (g[u].X + delta)
                      g[s].shift = min(g[s].shift, newshift)
                  else:
                      g[v].X = max(g[v].X, (g[u].X + delta))
              # take next node to align in block:
              w = g[w].align
              # quit if self aligned
              if w is v:
                  break
  
imports: import pandas, typing
  from sys import getrecursionlimit, setrecursionlimit
  from graphistry.layout.graph import Vertex, GraphBase, Graph, Edge
  from graphistry.layout.utils import DummyVertex, LayoutVertex, Rectangle, size_median
  from graphistry.layout.utils.layer import Layer
label_desc: Use image node_id 30 for calling the SugiyamaLayout obj's underlying member method code with example usage: obj.__place_block(v) without return types