opto.trace.nodes.NodeVizStyleGuide.get_node_shape

opto.trace.nodes.NodeVizStyleGuide.get_node_shape#

NodeVizStyleGuide.get_node_shape(x)[source]#

Determine the shape of a node.

Parameters:

x – The node for which the shape is to be determined.

Returns:

The shape to use for the node.

Return type:

str

Notes

The shape of a node is determined based on its type. ParameterNode types are represented as ‘box’, while other types are represented as ‘ellipse’.