Whoops: complete write_dot_graph search/replace