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
1
vote
0 answers

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 in orient graph so if i have to add class A…
1
vote
2 answers

Shortest path taking into consideration the weight on tinkergraph in Java

I'm trying to find the shortest path taking into consideration the weights properties on the edges my work is on TinkerGraph and i want to do it in java. gremlin is not very helpful for me g.V().has(id1). repeat(both().simplePath()). …
alaa elias
  • 11
  • 5
1
vote
1 answer

Performance issues with Neo4j embedded

I have some old graph data with 1 million nodes and 3 million edges that I'd like to convert into Neo4j. I'm using Neo4j embedded and my program is roughly like: for (all node in old graph data): node1 = neo4jdb.findNode(node1_id) node2 =…
peidaqi
  • 673
  • 1
  • 7
  • 18
1
vote
1 answer

How to replace, merge, or upsert new edges in Tinkerpop

When I try to add an edge that currently exists, for example: g.addE('person-ip').from(g.V('customer:testID')).to(g.V('tel:5555555555')).property(id, 'testEdgeId').next() I get an error like this {"message":"Edge with id already exists:…
Wendell Blatt
  • 177
  • 1
  • 1
  • 10
1
vote
1 answer

Is com.tinkerpop.blueprints.Graph object thread-safe?

I've a use case where I build a graph from data retrieved from multiple data stores. Each of those data stores has its own client library that builds the sub-graph representing that particular data stores data. Current implementation Since, I…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
vote
1 answer

Difference between traversal using gremlin and methods from Graph

Suppose I've the following simple graph. I see two ways of traversing this graph Option 1 I can use the following API provided by the Graph class Graph factory = ... factory.getVertices("type", "Response"); Option 2 I can also use GremlinPipeline…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

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, upsert REQUIRES_PERMISSION edge from e1->p1. …
Paul Schwarz
  • 1,828
  • 1
  • 15
  • 24
0
votes
1 answer

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.traversal(); InputStream input = new…
Incognitex
  • 30
  • 5
0
votes
1 answer

Convert GRAPHSON_V2D0 Serializer response to GRAPHSON

Azure cosmos support Serializers.GRAPHSON_V2D0. List resultList = client.submit("g.V().limit(1)").all().get() returns all the properties with the vertex and the format is completely different. Result looks like { "resultObject": { …
0
votes
1 answer

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 Source) at y.H.H.ā(Unknown Source) at…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
2 answers

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().iterate(); Even though I'm excluding vertices…
GriffoGoes
  • 715
  • 7
  • 17
0
votes
1 answer

In Gremlin, there is a query error when converting TinerGraph to JanusGraph?

I have a code like the one below. Since I switched TinkerGraph to JanusGraph it got an error: Gremlin.Net System.InvalidOperationException: 'Deserializer for “janusgraph:RelationIdentifier” not found' exception var result = …
Lúa Eri
  • 1
  • 1
0
votes
1 answer

Gremlin InMemory Client on TinkerGraph

In my java project, I can create in-memory "GraphTraversalSource" and I can create traversal queries easily. But I wonder how can I create script queries like client.submit(query)? public GraphTraversalSource gremlinGraph() { final Graph graph =…
Sha
  • 921
  • 17
  • 46
0
votes
1 answer

Why does hasNot "resurrect" a dead traversal?

I'm trying to create a traversal that adds a vertex and then adds an edge from a known vertex to the new one. I have a library method that uses coalesce to check to see whether an existing edge is present (which it can't be) and add it if not.…
chrylis -cautiouslyoptimistic-
  • 75,269
  • 21
  • 115
  • 152
0
votes
1 answer

Using String IDs with TinkerGraph

I'm pointing some .Net code at Tinkergraph, for testing purposes, that uses Neptune when deployed. Our Neptune database uses Strings as IDs (always UUIDs, but string objects) When I query the graph features from the console (I'm using the standard…
Pete Roberts
  • 118
  • 7