added input file for arguments, modified code to accept multiple random patterns in a graph, and changed the output so that the script prints into patterns.txt and graphs.txt now