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

All Questions

Tagged with
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 ...
Hieu Nguyen's user avatar
1 vote
1 answer
71 views

Why doesnt the gremlin query return edges using path() when logical operators are present in the query?

I am fairly new to gremlin query and janusgraph. I had a requirement to get both edges and nodes of the graph given various properties of the nodes and the relationship between them. There can be ...
Shahul Irshad's user avatar
1 vote
1 answer
115 views

Finding suspicious logins using amazon neptune graph database

I have a below structure of graph loaded in amazon neptune. In words graph can be described as: Device is getting accessed from location and Device is logging into the account. Problem Statement: I ...
Vishal Jamdade's user avatar
2 votes
1 answer
257 views

TinkerGraph g.V(ids).drop().iterate() is confusingly slow

Have run into an issue with using plain old TinkerGraph to drop a moderate sized number of vertices. In total, there are about 1250 vertices and 2500 edges that will be dropped. When running the ...
pro-grammar's user avatar
0 votes
1 answer
114 views

Gremlin - find subgraph from specific starting points

I am having problems with creating quite a simple query: Lets assume a graph with nodes representing people and edges of type 'has child'. I get a subset of the people as starting point and I need to ...
Zeusko's user avatar
  • 47
0 votes
1 answer
192 views

How stop Repeat when first results are found in Gremlin TinkerPop Graph

How can I stop traversing further down a graph using a Repeat when the first results are found? I have tried to use an aggregate variable but it seem that the until step ignores it. Se demo https://...
Carsten Keutmann's user avatar
0 votes
1 answer
324 views

Gremlin query to check if a value exists in the given external map

I would like to traverse the graph until my node property value exist in the set. Set contains id of the nodes and trivial objects. The query is like: public Map<String,Object> getNodes( Long ...
yigi's user avatar
  • 5
0 votes
1 answer
292 views

Check the sack() value in a gremlin query

We have a query to find the possible paths to a node. We represented ABC paths with numbers as shown in the table and we are using bitwise and operation to see available paths to a node. We are ...
ayc's user avatar
  • 1
2 votes
1 answer
466 views

Gremlin / tinkerpop: insert key:value property constant in every vertex and edge traversed then return path

Using AWS Neptune with Gremlin query language (last version). Using sample data inserted this way: g.addV('test_report').property('name', 'REF').property('creationDateTime','2022-07-01 00:00:00.000000'...
Cwellan's user avatar
  • 305
0 votes
1 answer
125 views

Error when constructing Gremlin traversal using Lambda function

I have a vertex that is set with properties startDate and endDate: Date start = new Date(); Date end = Date.from(start.toInstant().plusSeconds(600)); g.V(8L).property("startDate", start)....
Hieu Nguyen's user avatar
0 votes
1 answer
36 views

edit sack() value depending on path

I have three paths leading to two goals. All edges have a different strength and I collect them with sack(). I want to weigh some of the paths more heavily than the others (independent of the edge ...
Meike's user avatar
  • 331
0 votes
1 answer
44 views

Learning resources for developing custom TinkerPop Vertex Programs

I have read the TinkerPop official docs and provided tutorials on their website. I am looking for further learning resources on developing custom Vertex Programs that cover the fundamentals and ...
geeko's user avatar
  • 2,840
0 votes
1 answer
189 views

How to process large .kryo files for graph data using TinkerPop/Gremlin

I am new to Apache TinkerPop. I have done some basic stuff like installing TinkerPop Gremlin console, creating graph .kryo file, loaded it in gremlin console and executed some basic gremlin queries. ...
Ayush's user avatar
  • 1
1 vote
2 answers
1k views

How to traverse using `startsWith()` in gremlin?

How to traverse using startsWith() in gremlin? g.V('6b4e7018-a2d1-45fd-a1ce-78efe4c96c33').bothE(startsWith('live_at_')) .elementMap().toList() or g.V('6b4e7018-a2d1-45fd-a1ce-78efe4c96c33').bothE()....
Thirumal's user avatar
  • 9,116
0 votes
3 answers
1k views

Gremlin how to filter the results of a projection?

I have a query like this g.V.has('id', 1).outE() .project('edge','vertex') .by(valueMap('number')) .by(inV().valueMap()) it returns a dictionary that looks like this: {&...
lalala's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
7