Traversal with Both Directions - Gremlin Typing CST Test
Loading…
Traversal with Both Directions — Gremlin Code
Finding all friends connected in both directions.
g.V().has("person","name","Alice")
.both("knows")
.values("name")Gremlin Language Guide
Gremlin is a graph traversal language and virtual machine used across the Apache TinkerPop graph computing framework. It supports imperative and functional traversal steps to query, analyze, and mutate property graph data across both OLTP and OLAP graph systems.
Primary Use Cases
- ▸Multi-hop graph traversals
- ▸Pattern search across large graphs
- ▸Fraud ring analysis
- ▸Network and IT topology mapping
- ▸Recommendation engines
- ▸Knowledge graph pipelines
Notable Features
- ▸Traversal-based query model
- ▸Supports OLTP + OLAP graph computing
- ▸Works across many graph databases
- ▸Functional chaining via step pipelines
- ▸Gremlin Server & client drivers
- ▸Graph mutations + analytics
Origin & Creator
Developed by Marko A. Rodriguez and the Apache TinkerPop team. First introduced in 2009; reached widespread adoption with TinkerPop 3 in 2015.
Industrial Note
Gremlin fits systems that require deep, algorithmic, multi-hop graph processing: fraud graphing, cybersecurity threat intelligence, bioinformatics networks, enterprise knowledge graphs, logistics routing, graph analytics pipelines, and large-scale distributed graph engines.