yobx.helpers.dot_helper#
- yobx.helpers.dot_helper.to_dot(model: ModelProto) str[source]#
Converts a model into a dot graph. Here is an example:
- yobx.helpers.dot_helper.to_svg(dot: str) str[source]#
Converts a DOT string into an SVG string by calling the dot command-line tool.
- Parameters:
dot – DOT graph source, e.g. as returned by
to_dot()- Returns:
SVG content as a UTF-8 string
- Raises:
FileNotFoundError – if the dot executable is not found on
PATHRuntimeError – if dot exits with a non-zero return code