change call so that .dot returns a graph which may be saved by this function