g.V().has('UID','1233333').optional(bothE().otherV()).path()
g.V().has('UID','1233333').choose(bothE(), bothE().otherV(), identity()).path()
In case the src vertex has no edges,the above query results with 0 results, but I would like the query to return the src vertex in that case
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/29b7820e-a160-4c0e-b101-24272cb16903%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g.V().has('UID','1233333').choose(where(__.bothE().count().is(gt(1))).bothE(), where(__.bothE().count().is(gt(1))).bothE().otherV(), identity()).path()
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/34faff9a-9c28-4d0e-a594-df2a7ad613d9%40googlegroups.com.