graphviz dot file code example Example 1: python import graphviz from graphviz import * Example 2: python import graphviz import graphviz