Version Update differences
What is the ordering of group?
group()
by default uses a regular old HashMap
for it's data structure. If you want an order you would want to specifically specify an order()
- for example:
gremlin> g.V().group().by('age').by('name').order(local).by(keys)
==>[27:[vadas],29:[marko],32:[josh],35:[peter]]
gremlin> g.V().group().by('age').by('name').order(local).by(keys)
==>[27:[vadas],29:[marko],32:[josh],35:[peter]]
LinkedHashMap
:
```gremlin> g.withSideEffect('m', [:]).V().hasLabel('person').group('m').by('age').by('name').cap('m')...Export to graphml/graphson with Python
Out edge of vertex is slow
Translating bytecode into JupyterLabs compatible script.
Query if else in gremlin
Does Gremlin do DFS or BFS?
Isolated vertices vs connected vertices with no join benefit
__.in('relates_to_batch').out("related_to_reusable")
to get an id
or perhaps multiple ids. Considering adding a property of "reusableIds" to "batch-a" and store a List
of the ids there (or use multi-properties, https://tinkerpop.apache.org/docs/current/reference/#vertex-properties).
That seems like the most natural model to me since "isolated" is really just a "batch" with properties containing various things its connected to. Seems better to me to not introduce an "isolated" concept for that and denormalize to a thing that is actually part of your graph and connected. ...Subgraph Strategy with vertexProperties + project().by("field name") = crash
g.withStrategies(new SubgraphStrategy(vertexProperties: constant(true))).V().project("example").by("example")
Results in a crash with obscure error:
```java
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: The provided traverser does not map to a value: v[122908680][CacheVertex]->[PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep][DefaultTraversal] parent[[CoalesceStep([value([PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep]), (null)])]]...Custom MutationListener on Transaction
graph.traversal().withStrategies(EventStrategy.build().eventQueue(new CustomTransactionnalEventQueue(graph)).addListener(new CustomListener(graph.traversal())).create())
graph.traversal().withStrategies(EventStrategy.build().eventQueue(new CustomTransactionnalEventQueue(graph)).addListener(new CustomListener(graph.traversal())).create())
Gremlin Query to give all related items in versioned graph
Order group count result alphabetically
Transactions - tx.commit vs tx.close
Extracting the ProjectStep of a GraphTraversal instance during unit testing
GraphTraversal<?, Map<String, Object>>
, is it possible to extract the ProjectStep<?>
which is producing the Map<String, Object>
inferred by the type system, and which would be returned once a terminal step is applied?
We only want to access the .projectKeys()
of the ProjectStep
, so we don't need to actually execute the traversal. It can be assumed that we are always dealing with an instance of GraphTraversal<?, Map<String, Object>>
, and we do not have access to the actual graph in this environment.
...When can we get a non-RC release for Python 3.11 support in Production Envs?
Subgraph query returns String instead of TinkerGraph Object in Fluent Java API
g.V().has('user', 'id', 'Andrei').repeat(bothE().subgraph("subgraph").otherV().simplePath()).dedup().cap("subgraph").next();
I can then do a .traversal()
on the Thinkergraph result.
When I am using the Tinkerpop Java API, the next() step returns the following as a String: tinkergraph[vertices:11 edges:11]
...Multiple Graphs in Gremlin Server?
Has anyone else encountered "NoSuchElementException" when calling getLeafTrees() on a tree object
The query gets slower as the number of vertices that already exist in JanusGraph gets bigger and big
Is there a limitation on Neptune HTTP API endpoint compatibility when using a proxy and IAM Auth?