Validation added to GraphParser.