#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('cd', '-q ..') import graphviz graphviz.__version__, graphviz.version() # In[2]: graphviz.set_jupyter_format('png') # In[3]: dot = graphviz.Digraph(comment='The Round Table') dot.node('A', 'King Arthur') dot.node('B', 'Sir Bedevere the Wise') dot.node('L', 'Sir Lancelot the Brave') dot.edges(['AB', 'AL']) dot.edge('B', 'L', constraint='false') dot # In[4]: from IPython import display display.display_svg(dot)