Questions tagged [gremlin]
Gremlin is the graph traversal language and virtual machine of Apache TinkerPop™
gremlin
3,615
questions
0
votes
0
answers
114
views
Batch mergeV working well when creating items, but yielding unexpected results when updating
I used this thread Gremlin MergeV To Update an Existing Element's property and Single Cardinality as a reference to test a mergeV query that creates a vertex with some properties if its id is not ...
0
votes
1
answer
97
views
mergeV query not working on AWS Neptune with gremlinpython
So I'm trying to follow the instructions on this thread Send string gremlin query to Amazon Neptune database using TinkerPop's gremlinpython, but it's not working with the mergeV example extracted ...
4
votes
1
answer
101
views
Merge Operator in sack() step does not work as expected
I've been working with sack() step in gremlin. I'm trying to perform some operation on sack when two traversers merge. But for some reason the merge doesn't seem to work as expected. To describe my ...
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 ...
0
votes
0
answers
57
views
Gephi not displaying graph from gremlin console .......1. error
Ibeen tinkering with Gremlin console and was trying to visualize graph created in gremlin console through Gephi(V0.1)and gremlin 3.7.
I followed the instruction from Tinkerpop tutorials.
https://...
0
votes
1
answer
35
views
Why I could not do E step at the middle of a Gremlin query?
I notice that I could not have an E step at the middle of a Gremlin query. Is there a reason behind it, or just the feature is missing?
g.V().....E()...
Basically, I have an index on an edge property ...
0
votes
1
answer
45
views
Fetch substring of a field from the edge of a graph
I am trying fetch substring of field that is stored as an attribute in the edge of graph. To be more specific on the company-company edges
I have attached the graph creation query.
g.addV('company')....
0
votes
1
answer
69
views
Tinkerpop Gremlin Query: Find all edges pointing back to a vertex in the current path
I query the following path:
Company has Employees has User
From User I want to find all HasRights edges which point back to the current Company (the user also has rights on other companies).
See TODO ...
0
votes
1
answer
334
views
How to run query as a string using Gremlin Python
I'm using lambda to query a Neptune graph where I'm trying to get output paths for a set of nodes. The query string is dynamically created in code as shown below. I was initially using Eval() to do ...
0
votes
1
answer
89
views
gremlin query for cycle detection works for complex graph but returns nothing for simple one
I have a gremlin query to detect cycle nature of the graph. I have tested it with multiple large complex graph it works as expected. But it does not return anything with simple 1 depth graph.
Could ...
0
votes
0
answers
91
views
JanusGraph fails to create connection with multi-node Cassandra cluster
I have a multi-node Cassandra cluster version 4.1.3 with 3 nodes. I have changed the following properties in their cassandra.yaml file.
cluster_name: 'cassandra_cluster'
listen_address: <node_IP>...
0
votes
1
answer
224
views
How to do "constant([:])" in gremlin-go
I previously received helpful guidance from Kelvin in a Stack Overflow post (linked here: Gremin mergeV() Upsert: knowing whether the vertex was added or not(side-effect free)) regarding the ...
0
votes
1
answer
51
views
select and arrange multiple result within single projection
Apologies for not having sample graph.
I’ve a directed acyclic graph mapping where Multiple nodes called "greatgrandparents" have edges to "grandparents" that has edges to ...
0
votes
1
answer
49
views
Determine if node is Leaf node or not in Gremlin
I am looking for a ways to find out the all the nodes coming out of a root node are either leaf node or intermediate node.
I have added the a sample graph.
g.addV('company').property(id,'TESTNX01')....
0
votes
1
answer
200
views
Connect to Neptune DB from Rest API .NET C#
I am trying to connect a .NET C# Service to my Neptune DB Instance. Through command lines, I am able to query the Database by connecting to an EC2 Instance and running a Gremlin client in that ...