All Questions
Tagged with tinkerpop tinkergraph
22
questions
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, ...
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....
-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":...
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 ...
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 ...
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(...
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 = ...
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 ...
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 ...
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 = ...
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', ...
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. ...
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 ...
-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
...
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 ...