2

Are the vertices always have integer IDs? Vertex ids are always like 12212 Are the edges always have UUID or string-like IDs? Edge ids are always like "16p-360-2dx-9jk"

canbax
  • 3,432
  • 1
  • 27
  • 44

1 Answers1

3

The subject of how IDs are managed in JanusGraph seems to be a regular topic of confusion. It would probably good to add something to the official documentation that is easy to find a clearly describes the behavior.

Vertex IDs are LONG values. Currently you cannot supply a string or UUID as a vertex ID.

Edge IDs are handled a little differently using a RelationIdentifier as described in this answer: edgeID is returned as alpha numeric instead of long in Janusgraph

Kelvin Lawrence
  • 14,674
  • 2
  • 16
  • 38