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

All Questions

Tagged with
0 votes
1 answer
104 views

Gremlin "merge" api resulting in UnsupportedOperationException in 3.6.2, but works in 3.7.0

When using org.apache.tinkerpop:tinkergraph-gremlin:3.7.0 the following statement works. It comprises 3 merge statements. In plain English: insert vertex endpoint e1, upsert vertex permission p1, ...
Paul Schwarz's user avatar
  • 1,908
0 votes
1 answer
96 views

How can I run queries in TinkerGraph using query strings?

I want to run some queries in TinkerGraph, but I need to read them from an external text file, instead of performing Java calls: TinkerGraph graph = TinkerGraph.open(); GraphTraversalSource g = graph....
Incognitex's user avatar
-1 votes
1 answer
28 views

Gremlin Query to get longest common subsequence for a given source from the Azure Cosmos graph

lets assume I have got list of all longest common paths for given source say A using below query g.V().hasLabel('A').repeat(out()).until(__.not(out())).path().by('id') Result: [ { "objects":...
place holder'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
132 views

Graphml generated from tinkerpop cannot be opened by yEd Graph Editor

I have saved a graph using the Tinkergraph API. The file is here: https://pastebin.com/C81rZYa2 I was trying to open the file using yEd and I am getting the following error: at y.H.A.K.ā(Unknown ...
Exploring's user avatar
  • 3,051
0 votes
2 answers
546 views

Improve performance removing TinkerGraph vertices

I have a graph g with 600k vertices and 950k edges. After some processing, I need to clean up about 350k+ vertices with this query: g.V().hasLabel(LABEL_INTERMEDIATE_COLUMN).not(inE(EDGE_DEPEND)).drop(...
GriffoGoes's user avatar
1 vote
1 answer
171 views

Tinkerpop Select multiple neighbours grouped by the vertex they are neighbour with range step

I want to select all l labelled vertices along with their t,n labelled vertices grouped by their neighbours. Also I want to apply a limit on the length of the neighbours. For ex for neighbour limit = ...
Nischal Kumar's user avatar
0 votes
1 answer
145 views

Tinkerpop Select neighbours grouped by the vertex they are neighbour with range step

I want to select all l labelled vertices along with their t labelled vertices grouped by their neighbours. Also I want to apply a limit on the length of the neighbours. For ex for neighbour limit = 2 ...
Nischal Kumar's user avatar
1 vote
2 answers
190 views

Tinkerpop: select vertex which do not have path to vertex having a property

In Tinkerpop, I want to select vertices which are not directly connected to vertices having property foo equal to bar For ex: Vertex user1 = graph.addVertex("vid","one"); Vertex ...
Nischal Kumar's user avatar
2 votes
1 answer
633 views

Gremlin - sum values in group

I've been trying for days to get the following result: I have this dataset: e1 = g.addV('company').property('name', 'company-1').next() e2 = g.addV('company').property('name', 'company-2').next() p1 = ...
julianomontini's user avatar
1 vote
1 answer
1k views

How to Perform sorting in Gremlin Queries?

g.V(). has('organizationId', 'b121672e-8049-40cc-9f28-c62dff4cc2d9'). hasLabel('employee'). or ( has('firstName', containing('K')), has('lastName', containing('K')), has('department', ...
sarfaraz shaikh's user avatar
0 votes
1 answer
52 views

Re-running an existing route in a Tinkerpop Graph

If i have a pre-run route from the shortestPath which is returned as a list of vertex, how can i then re-run that on a graph with the same set of vertices, to return the edges which it has used. i.e. ...
docker dev's user avatar
0 votes
1 answer
429 views

Tinkergraph traversal returning an empty array [] on my graph

I have imported a graph and can confirm that the number of vertex and edges matches the number that should be present. I run the simplepath() compute on the graph and my first question is how to ...
docker dev's user avatar
-1 votes
1 answer
46 views

Should I declare GryoMapper as a static field?

Looked at the following code, it appears to be thread-safe. https://github.com/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoMapper.java ...
u07103's user avatar
  • 307
1 vote
0 answers
163 views

Add a class vertex with properties and along with list of another class vertices and so on from JAVA in orient graph

Class A has properties and has list of class B and Class B has properties and has list of Class C. Class C has properties and so on. I'm trying to save java object and using tinkerpop - trying to add ...
test's user avatar
  • 91

15 30 50 per page