There is a lot of documentation available for the Apache TinkerPop™ graph computing framework. There is the project’s Reference Documentation as well as its tutorials and recipes. There is the freely available online book Practical Gremlin which is a excellent resource for learning the Gremlin language. Despite all these resources and places where documentation could go, I often come across bits of Gremlin, “snippets” perhaps, that are interesting or noteworthy, but fail to be classified well into a category or place. These snippets are interesting in the sense that they teach a way of thinking in the language rather than specific patterns themselves and in that way it would be nice to see them documented and explained.
The general theme of this space will be around the idea that there are these snippets of Gremlin that have a fleeting interest in the moment. A specific explanation within a snippet may directly apply to some aspect of what you happen to be working on in a day, but reading these posts is more likely promote general Gremlin thinking which hopefully elevates your ability to write complex graph traversals.
Posts
Use of local() Revisited
If-Then Semantics
Thinking in VertexPrograms
Subgraphing without subgraph()
Removing Backtracking
Use of local()
Restricting simplePath()
profile() and Indices
Inserting a Vertex Using a Map
Grouping Edge Directions
Maps as Keys
Static and Dynamic Map Instances
WTF - What the fold()
constant() Is Not inject()
A Nulled Union
subscribe via RSS