Questions tagged [tinkergraph]

TinkerGraph is a lightweight, in-memory graph database that serves as the reference implementation for the property graph model in Apache TinkerPop.

TinkerGraph, of Apache TinkerPop, supports a number of use cases that start with learning about graphs and extend all the way to production. It is most useful for any scenario where the graph data fits in memory. Some examples of this include:

  • Performing analysis on a graph that has static characteristics and does not change.
  • Can be useful in writing unit tests in place of other implementations that require greater resources.
  • Useful for holding and analyzing subgraphs of much larger graph which don't easily fit in memory.

Complete documentation can be found here.

41 questions
4
votes
1 answer

What is the capacity of TinkerGraph in gremlin server?

I have run a session of gremlin server for a tinker graph.…
Bằng
  • 557
  • 6
  • 24
3
votes
1 answer

Storing graph data with TinkerPop Gremlin run in Docker

I'm trying to use Gremlin server to work with graph based database and docker-compose. The problem is that when I shutdown or restart the container, no static file is saved and the graph is empty with the following start. What am I doing wrong?…
3
votes
1 answer

Cannot access specific vertex by ID, using TinkerGraph in Gremlin Console

I cannot select a specific vertex, by executing g.V(3640).valueMap(true).unfold(). Any command which contains an ID between the parentheses in the g.V() command does not seem to work. This is what I did: I'm new to Graph databases and experimenting…
Erik van de Ven
  • 4,747
  • 6
  • 38
  • 80
3
votes
1 answer

In Gremlin how does map() really work?

Why does these two yield different results? graph.traversal() .V().map(__.out("contains")) .valueMap(true).next(100) compared to graph.traversal() .V().out("contains") .valueMap(true).next(100) Why do I prefer map to directly calling the…
Ram
  • 2,237
  • 4
  • 23
  • 27
2
votes
1 answer

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 following: g.V(ids).drop().iterate() It takes around…
2
votes
1 answer

Is there way to decouple a traversal from a concrete graph and apply it to multiple graphs?

I want to have an abstract description of traversal steps that I can freely apply to multiple graphs but the traversal instances seem stateful, and not reusable. I'm looking for something like: GraphTraversal findMarko = __.has("name", "marko");…
kaqqao
  • 12,984
  • 10
  • 64
  • 118
2
votes
1 answer

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 = g.addV('product').property('name',…
2
votes
1 answer

To Display employee List with its current status for particular organization in gremlin queries

g.V().has('organizationId', 'b121672e-8049-40cc-9f28-c62dff4cc2d9'). as('emp'). outE('hasStatus'). inV(). or( has('endDate', gte(1587820000)), has('release', is(false)) ). as('x'). values('status'). …
2
votes
2 answers

How to fix 'java.lang.NoClassDefFoundError: org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalSource$GraphTraversalSourceStub'?

I am trying to initialize an in-memory graph using TinkerGraph. Firstly, i have defined the bean in my context xml file and tried to initialise the TinkerGraph. My intention is to unit test the classes that i have created for forming the gremlin…
2
votes
0 answers

NegativeArraySizeException whilst removing Gremlin vertices

I'm intermittently getting the following exception whilst removing vertices from a Gremlin (TinkerGraph) graph: Exception in thread "main" java.lang.NegativeArraySizeException at java.util.AbstractCollection.toArray(AbstractCollection.java:136) at…
James Baker
  • 1,143
  • 17
  • 39
2
votes
1 answer

Mulithreaded reading from tinkergraph

I am getting very strange behaviour when trying to multithread read from a tinkergraph. I have the following situation: Graph graph = TinkerGraph.open(); Set verticesAdded = randomGraph(graph); verticesAdded is a set of vertices which I…
Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45
1
vote
1 answer

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 = 2 something like below should be…
1
vote
2 answers

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 user2 = graph.addVertex("vid","two"); Vertex user3 =…
1
vote
1 answer

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',…
1
vote
1 answer

Is there a way to get GraphML representation of an in-memory TinkerGraph without writing to file?

I have an in-memory TinkerGraph. I want to write a Spring Boot REST controller to expose a serialized (as GraphML) representation of this Tinkergraph. The serialization APIs (g.io) needs a String filepath to be passed to it. Currently I am having to…
nitkart
  • 137
  • 3
  • 14
1
2 3