teachpyx.tools.blockdiag_helper

teachpyx.tools.blockdiag_helper.draw_diagram(graph, module: str = 'blockdiag', fmt: str = 'pillow', **options)[source][source]

Draws a graph based on module blockdiag.

Paramètres:
  • graph – definition, see blockdiag

  • module'blockdiag' (only available value)

  • fmt – can be a filename or a module name ('pillow')

  • options – additional options for blockdiag

Renvoie:

graph

blockdiag {
    A -> B -> C -> D;
    A -> E -> F -> G;
}