JanusGraph Basic Usage tutorial

I am following the JanusGraph Basic Usage tutorial. In the "Cohabitors of Tartarus" section, I do not get the same result for one of the queries:
# Tutorial
# https://docs.janusgraph.org/getting-started/basic-usage/#cohabitors-of-tartarus
gremlin> // pluto can't be his own cohabitant
gremlin> g.V(pluto).out('lives').in('lives').where(is(neq(pluto))).values('name')
==>cerberus

# My result
gremlin> g.V(pluto).out('lives').in('lives').where(is(neq(pluto))).values('name')
==>pluto
# Tutorial
# https://docs.janusgraph.org/getting-started/basic-usage/#cohabitors-of-tartarus
gremlin> // pluto can't be his own cohabitant
gremlin> g.V(pluto).out('lives').in('lives').where(is(neq(pluto))).values('name')
==>cerberus

# My result
gremlin> g.V(pluto).out('lives').in('lives').where(is(neq(pluto))).values('name')
==>pluto
I get the correct result for the next query:
gremlin> g.V(pluto).as('x').out('lives').in('lives').where(neq('x')).values('name')
==>cerberus
gremlin> g.V(pluto).as('x').out('lives').in('lives').where(neq('x')).values('name')
==>cerberus
I do not know if I am doing something wrong. I tried loading the graph again. Is it just me?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?