This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.


digraph_shell_layout(graph, /, nlist=None, rotate=None, scale=1, center=None)#

Generate a shell layout of the graph

  • graph (PyDiGraph) – The graph to generate the layout for

  • nlist (list) – The list of lists of indices which represents each shell

  • rotate (float) – Angle by which to rotate the starting position of each shell relative to the starting position of the previous shell (in radians)

  • scale (float) – An optional scaling factor to scale positions

  • center (tuple) – An optional center position. This is a 2 tuple of two float values for the center position


The shell layout of the graph.

Return type: