Re: Gremlin Query to return count for nodes and edges

Vinayak Bali

Hi Marc,

I am using the following query to return the results.
Want the count of unique nodes in a and b together and e i.e number of edges.
Please modify this query to get the required output.

Thanks & Regards,

On Tue, Feb 23, 2021 at 1:08 PM <hadoopmarc@...> wrote:
Hi Vinayak,


g.V().project('v', 'vcount', 'ecount').by(identity()).by(count()).by(bothE().count())

Best wishes,    Marc

Join { to automatically receive all group messages.