python graphviz view() code example Example 1: python import graphviz from graphviz import * Example 2: python import graphviz import graphviz