Improve generated dorothy graph.