Fixing creation of duplicate edge ids during graph drawing.