Added -graph parameter to change input file from commandline