Draw the graph as a PNG image.
draw_png(
self,
output_file_path: str | None = None,
fontname: str | None = None,
labels: LabelsDict | None = None
) -> bytes | None| Name | Type | Description |
|---|---|---|
output_file_path | str | None | Default: NoneThe path to save the image to. If |
fontname | str | None | Default: NoneThe name of the font to use. |
labels | LabelsDict | None | Default: NoneOptional labels for nodes and edges in the graph. Defaults to
|