The requirement is pretty simple – I have set of vertices, that have two properties (let’s say ‘name’ and ‘job title’). I would like to count how many combinations of each I have and represent it as a two-dimensional table, for example:
Programmer | Driver | |
---|---|---|
John | 3 | 56 |
Peter | 0 | 8 |
Can I do it in Gremlin?
I tried to use groupCount()
, but I do not know how to make it work with two properties