added support and error to graph generation, will try to change command line arguments to read from input file