Consider I have person
vertices and these vertices have a studied-at
edge to school
vertices . If school
vertices have a name
property and for some reason if there are few person
vertices that have school
vertices with duplicate name
property
For example a groupCount() query will give
g.V().hasLabel('person').out('studied-at').groupCount().by('name')
==>[s1:2]
Here s1
is the name of the school , meaning person vertices have schools with duplicate school names.
How to find such person
vertices