NestedRenderer
- class NestedRenderer
A reusable nested renderer to DOT graph.
Note that due to
dotlimitations, some labels may not be centred.Members defined in
NestedRenderer(4 members)
RWIndentation level
NestedRendererconstructor.
Render a self-contained nested diagram.
Render only the contents of a nested diagram, i.e. without the surrounding
digraph. This can be useful if you want to add your own options to the rendered diagram, or insert its contents to another diagram. Note that there needs to be acompound=truestatement in the root scope to correctly clip edges to nodes with nested children. Attributes
- property indent: int
Indentation level
Methods
- __init__(indent: int = 0) None
NestedRendererconstructor.indentargument controls initial indentation, this is primarily useful when combining multiple renderers.
- render(arg: syside.experimental.viz.Graph, /) str
Render a self-contained nested diagram.
- render_body(arg: syside.experimental.viz.Graph, /) str
Render only the contents of a nested diagram, i.e. without the surrounding
digraph. This can be useful if you want to add your own options to the rendered diagram, or insert its contents to another diagram. Note that there needs to be acompound=truestatement in the root scope to correctly clip edges to nodes with nested children.