NestedRenderer

class NestedRenderer

A reusable nested renderer to DOT graph.

Note that due to dot limitations, some labels may not be centred.

Members defined in NestedRenderer (4 members)

indent

RW

Indentation level

__init__

NestedRenderer constructor.

render

Render a self-contained nested diagram.

render_body

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 a compound=true statement 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

NestedRenderer constructor.

indent argument 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 a compound=true statement in the root scope to correctly clip edges to nodes with nested children.