import pygraphviz as PG
A = PG.AGraph(directed=True, strict=True)
A.add_edge('7th Edition', '32V')
A.add_edge('7th Edition', 'Xenix')
A.write('ademo.dot')
A.layout(prog='dot')
Drawing & Rendering Multiway Tree in Python