Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
30 views

Gremlin query, get all the nodes 2 - 4 steps from the selected nodes

I would like to retrieve all the nodes that are 2 to 4 steps away from a selected node. My thought was that I could separate the query into two repeat().times(2) step so that I can call them later: ...
Herman Yuen's user avatar
0 votes
2 answers
51 views

Gremlin Console - Connecting to Amazon Neptune with Sig4 signing

I need to connect to Amazon Neptune using Gremlim console. Tried all steps for setup and signing configuration but following error occurs when connecting to Neptune. Steps performed: Install JDK ...
the-petrolhead's user avatar
1 vote
1 answer
44 views

How to use `project` step with `tree` step in Gremlin query

I would like to be able to fetch my categories in my graph database in a way that the children of the categories will be inside children property. I know this is possible with project step, but how do ...
ephraim lambarte's user avatar
2 votes
1 answer
65 views

How to use previous step values to filter the next step [GREMLIN]

I am fetching my vertices recursively using repeat. now i want to be able to use the values of a previous step inside repeat and compare it as a reference to make my search for vertices more accurate. ...
ephraim lambarte's user avatar
0 votes
0 answers
24 views

Gremlin dynamic update

I have graph I want to calculating and updating degrees using gremlin on a big graph db with 10M nodes, what is the best way to do it I wasn't able to this in one query
NoamiA's user avatar
  • 537
-1 votes
1 answer
100 views

Gremlin Customized Output using project

gremlinify: https://gremlify.com/l3gujyc2e5 pls execute Query 2 and 2.1 to see the difference. I have an acyclic uni-directional graph in Cosmos Graph Db. My graph has 2 types of vertices: item(Label:...
thakshak gudimetla's user avatar
1 vote
1 answer
78 views

I am creating client application in java using tinkerpop for gremlin but i am unable to query through my application. JanusGraph and Gremlin server

I am trying to build client application in java for gremlin. My janusgraph server is running on one more virtual machine in the same network. Through my gremlin client code i am able to establish ...
Prajwal Patil's user avatar
0 votes
2 answers
44 views

Gremlin query optimization to remove redundant data from "path" step

I have person vertex and book vertex connected by owns edge (i.e. person => owns => book). One person can own multiple books. Let's say I have following vertices & edges which indicates that ...
coderz's user avatar
  • 4,971
0 votes
1 answer
52 views

Node Traversal to Java String Set?

So I am having trouble how I would convert a nodeTraversal into Hashset. GraphTraversal<vertex, vertex>nodeTraversal = this.central.V().has(nodeid).in("node").values(nodeId); So far I ...
e_wards's user avatar
  • 35
1 vote
1 answer
77 views

Efficient way for filtering related nodes connected to a supernode

I am trying to filter connected nodes to a super node in Janus Graph where millions of vertices can be connected to a super node directly at level =1, suppose there is a parent node, it could have ...
A R K's user avatar
  • 92
0 votes
1 answer
64 views

(Apache Gremlin) How to dynamically create edges between all edges in a graph that share the same value in specific columns

I've been tasked with creating a graph database that is going to be filled in with information from an extremely large database, as a reuslt we want to create the relationships between objects ...
Zack's user avatar
  • 1
1 vote
1 answer
315 views

Optimizing Gremlin Query Performance for Filtering and Retrieving Data with many properties

I have a Gremlin query that applies multiple filters to a graph traversal, and I'm seeking advice on optimizing its performance. The query structure is as follows: g.V() .hasLabel('vertex1_label') ...
Pablo's user avatar
  • 33
0 votes
1 answer
148 views

AWS Neptune recommendation to make response faster

I recently had to use AWS Neptune in an authorization service to model a dataset that has intrincate relations between entities, most of them are many to many relations. This is the model I came up ...
Jesus Zuñiga's user avatar
0 votes
0 answers
67 views

Gremlin Visualization Options: Size of Node

This is a query about the size of the nodes in the visualization output of a Gremlin notebook. I want to be able to specify the size of certain nodes with the same label or property so that they stand ...
Shane318's user avatar
1 vote
1 answer
67 views

Graph db with Gremlin property syntax error

I am trying to build a knowledge graph with Azure CosmosDB with Gremlin API. While trying to create vertex, I came across an unexpected error. I am trying to add 'person' as a node. Below is my simple ...
stackword_0's user avatar

15 30 50 per page
1
2 3 4 5
32