graph icon indicating copy to clipboard operation
graph copied to clipboard

Practical Gremlin - An Apache TinkerPop Tutorial

Results 89 graph issues
Sort by recently updated
recently updated
newest added

Add an example showing how `repeat` steps can be used to create vertices. Useful when testing. ``` gremlin> g.inject(1).repeat(addV('test').property(id,loops())).times(5) ==>v[4] gremlin> g.V().valueMap(true) ==>[id:0,label:test] ==>[id:1,label:test] ==>[id:2,label:test] ==>[id:3,label:test] ==>[id:4,label:test] ```

enhancement
additional-examples

Add to the discussion of Geo Spatial queries that are possible in Gremlin using the examples below that demonstrate calculating the [Haversine Great Circle Distance](https://en.wikipedia.org/wiki/Haversine_formula) between two airports. ``` g.withSideEffect("PI",...

Fixed
improvements
v283
additional examples

Since version 3.3.5 you can replace ``` graph = TinkerGraph.open() g = graph.traversal() ``` with ``` g = traversal().withGraph(TinkerGraph.open()) ```

enhancement
New Gremlin features
improvements
fix-in-second-edition

Currently the `map` and `flatMap` coverage is nested inside the coverage of Groovy lambdas. That made sense when just discussing TinkerGraph but now more and more people connect to a...

improvements
fix-in-second-edition

New pandoc versions don't have `--chapters` command line parameter anymore, so it doesn't execute

build

Fixes #17. As described in the Asciidoc best practices document: http://asciidoctor.org/docs/asciidoc-recommended-practices/#section-titles using heading markers using underlines of various characters is not recommended for several reasons: * hard to remember which...

build

Section 4.5.1 of the book notes that both the `addOutE` and `addE` methods can be used to define the direction of an edge. However, the example for `addOutE`, ``` g.V().has('code','XYZ').as('a').V().has('code','DFW').addOutE('route','a')...

corrections
Fixed
improvements
v283

The examples that are used to explore parallel edge detection return results in terms of vertex pairs. It would be good to add examples that return the actual edges instead....

improvements
additional-examples
fix-in-second-edition

Need to add coverage of submitting both text and ByteCode queries from the Python GLV client.

enhancement
fix-in-second-edition

``` gremlin> temps = [Atlanta:66.2,Austin:70.9,Anchorage:42.6,Seattle:54.1] ==>Atlanta=66.2 ==>Austin=70.9 ==>Anchorage=42.6 ==>Seattle=54.1 gremlin> g.withSideEffect('t',temps).V(). ......1> has('city',within('Austin','Atlanta','Anchorage','Seattle')). ......2> values('city').as('c'). ......3> project('Location','2019-Avg-Temp'). ......4> by(). ......5> by(select('t').select(select('c'))) ==>[Location:Atlanta,2019-Avg-Temp:66.2] ==>[Location:Anchorage,2019-Avg-Temp:42.6] ==>[Location:Austin,2019-Avg-Temp:70.9] ==>[Location:Seattle,2019-Avg-Temp:54.1] ``` This discussion probably would...

improvements
additional-examples
fix-in-second-edition