The thing is that whenever I add a vertex with "addVertex()" command, the index of the vertex is chosen randomly like V[0] and the second time is V[2] and so on. I want to set it myself...How can I do it?

How to set a vertex's Index myself in Titan Graph Database
169 views Asked by Kasra At
1
There are 1 answers
Related Questions in DATABASE
- How to add the dynamic new rows from my registration form in my database?
- How to store a date/time in sqlite (or something similar to a date)
- Problem with add new attribute in table with BOTO3 on python
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- SQLAlchemy: efficient relationship loading in 3-way many-to-many relationship
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Local or remote database with react-native?
- I want to edit a specific row in database
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- Open Web Library
- database login.py and register.py error showing 404 file not found and doesn't work
- SQL71561: SqlComputedColumn: When column selected
- Liquibase as SaaS To Configure Multiple Database as Dynamic
- Updated max input vars but table still shows error
- Spring does not map set of roles
Related Questions in INDEXING
- How to give index id to my uploaded json file in FastAPI?
- operator class "gin_trgm_ops" does not exist for access method "gin"
- what is it? my question is what's the meaning of img[img]
- If composite indexing created - indexing is called?
- Autocomplete not working for apache spark in java vscode
- Pyside6, tableView.selectedIndexes, list index out of range
- Indexing in ServiceNow Jelly Report not working
- Wordpress | Page indexing Page is not indexed: Redirect error
- Why does my attempt to print the index of my array ALWAYS return 0.00?
- jQuery - Click and enable Button without affecting other foreach Laravel arrays
- std:array indexing and operator[]
- ChartJS indexing for datapoints
- How to make Postgres GIN index work with jsonb_* functions?
- Using Closing Stock Balance as Opening Stock in subsequent line item
- Using MYSQL optimise table with innodb_optimize_fulltext_only and innodb_ft_num_word_optimize options, how do I know when it's finished?
Related Questions in TITAN
- Cannot update edgeTTL in JanusGraph
- Getting Error while installing the titan.Core in Cygwin
- Cannot create directory while installing titan.core in cygwin by the command make install
- Error while installing titan.core in cygwin
- Getting Error while installing titan.core
- make: *** No rule to make target '-', needed by 'TTCN3_DIR'. Stop
- Why is the Bluetooth security key for FIDO gone?
- How to Execute TTCN-3 test case from JAVA
- No signature of method: org.janusgraph.graphdb.database.management.JanusGraphIndexWrapper.buildCompositeIndex()
- Any graphical interface of JanusGraph Gremlin Query
- Graph with 100+ edges per vertex
- JanusGraph query failure due to Cassandra backend tombstone exception
- How to add an entry in vertex with datatype of value Set in gremlin
- gremlin console on Rexster (http://localhost:8182/doghouse/main/gremlin/graph) not working
- Titan Graph data migration
Related Questions in VERTEX
- WebGL Position vertex inside vertex shader?
- Quarkus Multi<> multithreading
- Setting environment vars in a Vertex AI jupyter notebook
- In p5.js vertex shaders, why sometimes there are matrices used and sometimes not to compute gl_Position?
- igraph in R: Adding Differing Slices to the Vertex Pies
- R igraph setting attribute incorrectly
- How to Update Vector Count for an Existing Index in Vertex AI?
- Change mesh color for marching cube terrain
- datastore not working when we declare intent route to a page containing datastore in DialogFlow CX
- An error was encountered while creating the endpoint in Vertex AI
- IAM_PERMISSION_DENIED aiplatform.googleapis.com
- What is a good algorithm that can be used to get an EBO from a VBO? Is there a general solution?
- Need to disable prerasterization so that all fragments (gl_PrimitiveID) are processed
- THREEjs change shadows after vertex shader
- Confidentiality of Google's Vertex AI API
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
So that is not the index of your vertex. It is the id of your vertex, and if you asking how can you set that, then the answer is that you can't. Titan sets the Ids internally and they are immutable.
What you can do however, is create your own index so you can do fast lookups. I would recommend starting with simple composite index.
You can create a composite index as follows:
The above will create a property called
MY-IDand index it. Which means that any vertex with that property can be looked up quickly.Side Note: Make sure you are initialising a Titan Graph not a Tinker Graph. Tinker Graphs do not support indexing.