Added a check for output graph directory.
Create a new directory if the out_path doesn't exist