dot utility python code example Example 1: python pip graphviz pip install graphviz Example 2: python import graphviz import graphviz