Avoid the need for a temporary file by sending the graph straight to stdin.  (Thanks, @sjagoe.)