Ensure there are no duplicate inputs/outputs when parsing the graph