<jupyter_start><jupyter_text>Display a diagram with blockdiag[blockdiag](http://blockdiag.com/) is module which plots diagrams.<jupyter_code>from pyensae.graphhelper import draw_diagram
img = draw_diagram("""
        blockdiag {
            A -> B -> C -> D;
            A -> E -> F -> G;
        }
        """)
img<jupyter_output><empty_output><jupyter_text>The page [blockdiag - simple block-diagram image generator](http://blockdiag.com/en/blockdiag/index.html) explains the syntax used to describe a graph.<jupyter_code>draw_diagram("""
blockdiag admin {
   A -> B -> C -> D;
   A -> E;
   A -> H;

   // A and B belong to first group.
   group {
      A; B;
   }
}
""")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.140625, 'fraction_numerical': 0.0, 'mean_word_length': 2.8315217391304346, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '298185', 'license': 'MIT', 'n_tokens_mistral': 243, 'n_tokens_neox': 239, 'n_words': 60, 'path': '_doc/notebooks/draw_diagram.ipynb', 'repo_name': 'mohamedelkansouli/Ensae_py2', 'size': '704'}