Draw the graph as a Mermaid syntax string.
draw_mermaid(
self,
*,
with_styles: bool = True,
curve_style: CurveStyle = CurveStyle.LINEAR,
node_colors: NodeStyles | None = None,
wrap_label_n_words: int = 9,
frontmatter_config: dict[str, Any] | None = None
) -> strReturns: The Mermaid syntax string.
| Name | Type | Description |
|---|---|---|
with_styles | bool | Default: TrueWhether to include styles in the syntax. |
curve_style | CurveStyle | Default: CurveStyle.LINEARThe style of the edges. |
node_colors | NodeStyles | None | Default: NoneThe colors of the nodes. |
wrap_label_n_words | int | Default: 9The number of words to wrap the node labels at. |
frontmatter_config | dict[str, Any] | None | Default: NoneMermaid frontmatter config. Can be used to customize theme and styles. Will be converted to YAML and added to the beginning of the mermaid graph. See more here: https://mermaid.js.org/config/configuration.html. Example config: |