Hey guys,
I'm looking for a recipe to remove "duplicate" edges. "Duplicate" might not be the exact term but here's what I mean by duplicate: An edge with the same label, inV, and outV as another edge.
I would like to decide on an edge label and remove all edges that have that label and the same direction between the same vertices (except for one of those edges that we would consider as the "original").
I don't know where these edges may be, we should assume that I can't manually find them so the query would need to be graph wide.
I've given this a few runs but I just can't seem to figure out how to find duplicate in/out vertices (the kind that would be cleansed by dedup()). So if anyone knows how to do this it would push me in the right direction.
Any help would be greatly appreciated.
Cheers.