Accept "string" as a filename for show_graph().

If provided, the dot graph will be returned as a string without writing to disk, converting to an image, or launching in another process.