NodeStyle

NodeStyle(
    shape: str | None = None,
    rounded: bool = False,
    fill_color: str | None = None,
    border_color: str | None = None,
    font_color: str | None = None,
    font_name: str | None = None,
    font_size: float | None = None,
    width: float | None = None,
    height: float | None = None,
    margin: str | None = None,
)

How a class of node is drawn. None leaves Graphviz’s default.

shape="plain" is a text-only node, no outline, no margin.

>>> NodeStyle(shape="box", rounded=True, font_size=8).attributes()
{'shape': 'box', 'style': 'rounded', 'fontsize': '8'}

Attributes

Name Description
shape
rounded
fill_color
border_color
font_color
font_name
font_size
width
height
margin

Methods

Name Description
attributes The Graphviz node attributes this style sets.

attributes

attributes()

The Graphviz node attributes this style sets.