All Questions
Tagged with janusgraph gremlinpython
50
questions
1
vote
0
answers
52
views
gremlin python open janusgraph database using submit()
I was trying to switch to different database on runtime in gremlin_python. To do this, I used JanusGraphFactory.open() to open different configuration. Because gremlin_python does not have ...
0
votes
0
answers
72
views
gremlin_python.driver.protocol.GremlinServerError: 500: Could not execute operation due to backend exception
This problem does not seem to be related to this one.
I am trying to execute a long-running database population job, but after a few hours it fails at seemingly random times. I am running JanusGraph 1....
4
votes
1
answer
101
views
Merge Operator in sack() step does not work as expected
I've been working with sack() step in gremlin. I'm trying to perform some operation on sack when two traversers merge. But for some reason the merge doesn't seem to work as expected. To describe my ...
1
vote
1
answer
125
views
gremlin_python.driver.protocol.GremlinServerError: 500: None
I'm trying to batch populate my JanusGraph database with vertices, and I'm noticing some very strange behavior. I've created a simple test script which reproduces this behavior:
import os
from dotenv ...
2
votes
1
answer
105
views
gremlin query to n hops and traversal of all sub edges and nodes
I am trying to create a graph where i can find all relationships with given person and list of their friends.
the problem statement my graph looks like this
bob ->friends -> jay
jay -> ...
0
votes
1
answer
27
views
gremlinpython writing a helper function to create vertexes if they don't exist, and create an edge between them if it doesn't exist
I'm working with gremlin and gremlinpython for the first time, and I'm hitting a wall when I try to create new vertexes and an edge between them. I've looked at some of the other resources online, but ...
1
vote
1
answer
290
views
Why "_ipython_canary_method_should_not_exist_" occurs in Jupyter?
I was trying to reach the janusgraph deployed inside the GKE cluster, using the below code.
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
from gremlin_python....
2
votes
0
answers
53
views
How to connect gremlin with python runtime in GCP environment?
Janusgraph is deployed and running in GCP container, I can access that using Cloud shell.
I want to perform some CRUD operation using python runtime.
What are the connection URL, and ports I have to ...
1
vote
1
answer
103
views
How to connect Janusgraph deployed in GCP with Python runtime?
I have deployed the Janusgraph using Helm in Google cloud Containers, following the below documentation:
https://cloud.google.com/architecture/running-janusgraph-with-bigtable,
I'm able to fire the ...
0
votes
1
answer
77
views
Gremlin - optimize query
I have a graph, that represents database objects, parent-child relations and dataflows relations (only in-between columns).
Here is my current gremlin query (in python), that should find dataflow ...
1
vote
0
answers
75
views
Gremlin Python N-hop query
How can I get the list of nodes N-hops away from a given node (where N is a parameter)? Here, N-hops means we need to traverse (minimum) N edges (outward) from the source node to reach the destination ...
1
vote
1
answer
432
views
Gremlin Python shortest path between two nodes
How do we find shortest path between two nodes using gremlin-python?
The example given for gremlin here shows the following gremlin query
g.V(1).repeat(out().simplePath()).until(hasId(5)).path().
...
0
votes
1
answer
417
views
Gremlin-Python find all nodes connected by edges
I have a list of node labels as node_labels, where some of these may exist in a graph.
node_labels = ['a', 'b', 'c']
Using this I can get the node labels or associated attributes.
g.V().has_label(*...
0
votes
1
answer
153
views
Default handling of simultaneous Gremlin queries
Goal
I want to understand the way JanusGraph is handling simultaneous gremlin queries. Is it sequential or parallel? How is it decided?
The underlying interest is that I need to do a lot of ...
2
votes
1
answer
273
views
Efficient controlled random walks in gremlin
Goal
The objective is to efficiently generate random walks on a relatively large graph with uneven probabilities of going through edges depending on their type.
Configuration
Ubuntu VM, 23Go RAM
...