Skip to content

view

view

view(
    node: Node, format: Literal["png", "svg", "dot"]
) -> str

Visualize the graph via graphviz.

Parameters:

Name Type Description Default
node Node

The node to visualize.

required
format Literal['png', 'svg', 'dot']

The format to render the graph in.

required

Returns:

Type Description
str

The path to the rendered graph.