Questions tagged [tinkerpop]
Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP).
tinkerpop
1,006
questions
0
votes
1
answer
20
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&...
0
votes
0
answers
18
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 ...
0
votes
1
answer
22
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 ...
0
votes
1
answer
17
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....
0
votes
1
answer
16
views
How is select being used outside a traversal? groovy gremlin vs nodejs gremlin
I found this QA to be very useful, or at least would be if I understood what the heck is going on, and could translate it from groovy gremlin to nodejs gremlin. What's tripping me up is the use of the ...
0
votes
1
answer
66
views
Neptune graph traversal that uses dynamically calculated values from last vertex to select outgoing edges for further traversal
Here is my graph:
Here is graph building code:
// backslashes included so the code can be copy and pasted into gremlin console
g\
.addV("Person").property(T.id, "A").as("a&...
0
votes
1
answer
27
views
Neptune Gremlin how to break cycles when collecting paths
I have the following graph:
Created using:
g.addV("Person").property(T.id, "1").as("p1")
.addV("Person").property(T.id, "2").as("p2"...
0
votes
1
answer
20
views
why doesn't this graph traversal object have a .from() function? gremlin query in nodejs
I've encountered a bug, and here is the minimal replication of it in nodejs.
g.addV("foo").as("x").addV("bar").as("y").addE("relatesTo").from("x&...
0
votes
1
answer
58
views
efficient graph traversal to find connected components
I'm new to graphDB, I have a graph as shown in the attached image.
I want to find a connected path like "A1,E1,A2,D2,A3" for this I wrote the following query
g.V().hasLabel('A1').repeat(inE(...
1
vote
1
answer
24
views
Java Optional - equivalent in Gremlin
I would like to make a query that works on an element. But sometimes this element doe not already exist. So the query shoudl create it on demand. Like in Java the Optional::orElseGet - method.
My ...
0
votes
1
answer
29
views
The most efficient way to compare 2 aggregates (set of vertices) in Gremlin Query Language
What's the most efficient way to compare 2 aggregates (set of vertices) and see if they contain the exact same results?
Using this doesn't seem to work:
.where(select('aggregate1').is(eq('aggregate2'))...
1
vote
1
answer
46
views
Migrating a node label in gremlin tinkerpop
I'm working on migrating a graph from an old naming system to a new one and am looking for an efficient way to effectively re-label a given node label without losing node or edge properties or any ...
1
vote
1
answer
32
views
Neptune query behavior during edge creation
Gremlin query submitted to neptune to create edge , behaves differently when source/target vertices are missing.
we are using gremlin query in below format to submit edge creation on amazon neptune.
...
1
vote
3
answers
98
views
Running a local tinkerpop gremlin graph for testing in nodejs
I'm looking for a solution to run a gremlin tinkerpop graph locally to use for toy graphs for unit testing with Jest. I saw tinkergraph, but it doesn't appear to have a javascript implementation that ...
1
vote
0
answers
35
views
gremlin query to count by path-length all paths between nodes that share the same (specified) label
I have a graph with no cycles. Each vertex has a label. For those with a specific label, call it "A", I want to count
how many nodes with label "A" are not connected to any other ...