1. Home
  2. /
  3. Gremlin
  4. /
  5. Order Vertices

Order Vertices - Gremlin Typing CST Test

Loading…

Order Vertices — Gremlin Code

Ordering people by age in descending order.

g.V().hasLabel("person")
	.order().by("age", decr)
	.values("name","age")

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.

More Gremlin Typing Exercises

Basic Gremlin TraversalsAdd Vertex and EdgeFilter by PropertyCount VerticesShortest Path TraversalGroup By PropertyLimit Traversal ResultsRemove VertexTraversal with Both Directions

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher