This really surprised me:

gremlin> graph = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> g = graph.traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(1)
==>v[1]
gremlin> g.V(1L)
gremlin>

We all know why it does that - I'm just amazed that createModern() isn't
rigged with an IdManager to handle it properly. createClassic() is just
fine:

gremlin> graph = TinkerFactory.createClassic()
==>tinkergraph[vertices:6 edges:6]
gremlin> g = graph.traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(1)
==>v[1]
gremlin> g.V(1L)
==>v[1]

Going to push a fix shortly to tp31 on up (can't seem to think of a single
reason it is setup this way - so weird). I'll then issue the code freeze
email to follow.

Reply via email to