how can I call graph.getIDManager() in Python #4662
Unanswered
lesleyDeng
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I need the IDManager to perform addV('label').property(T.id, graph.getIDManager().toVertexId(customized_id)) and to execute graph.getIDManager().fromVertexId(vertex_id) after querying. As the implementation of toVertexId() returns id << (partitionBits + USERVERTEX_PADDING_BITWIDTH), I find an alternative solution that is to call addV('label').property(T.id, customized_id << 8) in Python. What potential impacts might there be? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The graph object is imported from gremlin_python.structure.graph import Graph (according to https://docs.janusgraph.org/basics/connecting/python/), and it does not have a getIDManager method.
Beta Was this translation helpful? Give feedback.
All reactions