Skip to main content

Questions tagged [gremlin]

Gremlin is the graph traversal language and virtual machine of Apache TinkerPop™

0 votes
1 answer
34 views

Gremlin Complete Hierarchy From a Specific Node

I am having difficult time to fetch the completely hierarchy by a node id. I want the all children and sub children which are directly and in-directly connected to a particular node. Node Properties: (...
ak4550126's user avatar
0 votes
0 answers
34 views

Finding all cycles of variable length with specific relationship properties on very large Neptune graph

We have a very large graph stored in Neptune (~26 million rels, ~20 million nodes) and need to find all the directed cycles between nodes with specific labels, following only relationships with ...
Alex Howard's user avatar
0 votes
1 answer
16 views

Find unidirectional edges of a given label

There are currently some unidirectional IS_FRIENDS_WITH edges in our graph (where a IS_FRIENDS_WITH b and not vice versa). I want to write a query that will for every such uni-directional edge from a-&...
ashissl's user avatar
  • 157
0 votes
1 answer
30 views

How to make a gremlin fulltext search query when fine grained control is enabled in opensearch domain

How to query using gremlin when fine grained access control is enabled in opensearch domain? g.withSideEffect("Neptune#fts.endpoint", "your-es-endpoint-URL") .V() .tail(100)...
Tajinder's user avatar
0 votes
1 answer
13 views

How to calculate average number of outgoing edges per user in a single gremlin query?

I am struggling to calculate average number of outgoing edges per user. I've tried g.V().hasLabel('user').as('users'). outE('IS_FRIENDS_WITH'). project('usersC','edgesC'). by(__.select(...
ashissl's user avatar
  • 157
0 votes
0 answers
18 views

Gremlin. How to use repeat() to find paths, and compare the relationship between adjacent array elements in until()

I have a graph like below. g.addV('person').property('id', 'p1').property('name', 'Person 1').as('p1'). addV('person').property('id', 'p2').property('name', 'Person 2').as('p2'). addV('person')....
Parigin Ba's user avatar
0 votes
0 answers
27 views

Neptune gremlin query times out

I have a Neptune cluster and I am using Gremlin for my queries. I have a query where it traverses nodes and adds other nodes connected to it. The issue is when I run this through the Notebook it runs ...
Khashayar's user avatar
  • 2,024
0 votes
1 answer
25 views

Why is addE failing with a string reference to an earlier step?

I'm trying to create a Vertex and an Edge if the vertex doesn't already exist. This is the Gremlin query I'm trying to run: g.V(4128).as('parent').out().has('qt', 1).fold().coalesce(unfold(), addV('...
gph's user avatar
  • 1,249
0 votes
1 answer
31 views

Gremlin query to find path of vertices for the common value of vertex but different vertex

I am trying to write a query to find all path between 2 given vertices will give an example to understand my question, here's graph like that, I'm using JanusGraph Vertex_1(id=1, value='Bob', label='...
user17372935's user avatar
0 votes
1 answer
23 views

Tinkerpop vertex property single cardinality is not working

When creating a vertex i explicitly mentioned Cardinality as single still its taking list, not able figure out why. wg.addV("label") .property(VertexProperty.Cardinality.single,"name&...
mmr25's user avatar
  • 93
0 votes
0 answers
38 views

JanusGraph traversal returns Vertex instead of JanusGraphVertex

I'm using Java to connect to JanusGraph 1.0. I'm having trouble understanding why JanusGraph would ever return a Vertex. JanusGraph graph = JanusGraphFactory.open('configfile'); JanusGraphVertex jgv = ...
gph's user avatar
  • 1,249
0 votes
0 answers
25 views

JanusGraph edges from Java do not appear in Gremlin console

I'm running a JanusGraph server and client per the instructions here. I included an argument to expose port 8182 so I can connect to it from a Java application. My Java application just creates a new ...
gph's user avatar
  • 1,249
0 votes
1 answer
24 views

How to get all incoming direct and indirect nodes with edges of a given node

I have a graph like below a->b b->c d->c a->c e->d c->e e->a f->g g->a c->h If i select c, it should return all incoming direct and indirect nodes with edges along the ...
mmr25's user avatar
  • 93
1 vote
2 answers
46 views

Gremlingo stuck while evaluting g.V().hasNext()

I have a piece of code where i evaluate to drop vertices but only if a pre-fetch of g.V().<filters>.hasNext() returns true. Problem is on my subsequent call to fetch the nodes themselves it is ...
Wajih Siddiqui's user avatar
0 votes
1 answer
20 views

Apache TinkerPop Gremlin query language is not getting converted to Neptune-specific steps that are optimized to run on the underlying Neptune engine

I am using explain() API on AWS neptune cluster as below- GraphTraversalSource g = getTraversal(cluster); TraversalExplanation explain = g.V().hasLabel("Users").explain(); System.out....
dishabehrani77's user avatar

15 30 50 per page
1
2 3 4 5
242