Add generating graph from argument, not from file.