Given a vertex g.V(1)
, with x outbound edges.
Say g.V(1)
has the properties prop1
and prop2
on each of its outbound edges.
How can I find the number of times where those two properties differ?
For example (say there's three outbound edges), if g.V(1).outE().values('prop1')
returns:
==> A
==> B
==> C
And if g.V(1).outE().values('prop2')
returns:
==> A
==> D
==> E
We should get an answer of 2: (B!=D, C!=E, but A==A)
Something similar to:
g.V(1).where(neq(outE().values('prop1'), outE().values('prop2'))).count()
(but which actually works!)