Added a parameter to GraphCreator for edge deduplication