opto.trace.nodes.NodeVizStyleGuide.get_attrs#
- NodeVizStyleGuide.get_attrs(x)[source]#
Get the attributes for a node based on the style guide.
- Parameters:
x – The node for which attributes are to be generated.
- Returns:
Dictionary of visualization attributes for the node.
- Return type:
dict
Notes
The attributes include the label, shape, fill color, and style of the node, which are determined based on the node’s properties and the style guide. The method calls other helper methods to construct the label, determine the node shape, assign a color, and set the style.