# Apache TinkerPop Documentation > Documentation for Apache TinkerPop, a graph computing framework and the Gremlin graph traversal language. ## data - [TinkerPop Sample Data](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/index.md): A reference for the sample graphs bundled with TinkerPop. Each section describes a graph's nature, origin and best use, presents its schema in GQL Graph Types, and demonstrates it with runnable Gremlin. - [The Modern Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/modern.md): The modern graph: TinkerPop's canonical example graph of people and the software they created, used throughout the documentation. Includes its GQL Graph Types schema and runnable Gremlin examples. - [The Crew Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/the-crew.md): The crew graph: a TinkerPop 3.x showcase for meta-properties, multi-properties and graph variables. Includes its GQL Graph Types schema and runnable Gremlin examples that exercise those features. - [The Zoo Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/the-zoo.md): The zoo graph: a TinkerPop 4.x showcase for multi-label vertices and diverse property types. Includes its GQL Graph Types schema and runnable Gremlin examples that filter and combine the descriptive labels animals carry. - [The Delivery Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/the-delivery.md): The delivery graph: a TinkerPop 4.x showcase for geometry property values and the geospatial predicates. Includes its GQL Graph Types schema and Gremlin examples that filter vertices and edges by location with geoWithin and geoContains. Only the loading block runs at build time. The examples are static listings with their results in callouts. - [The Grateful Dead Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/grateful-dead.md): The Grateful Dead graph: a larger, real-world graph of songs and artists linked by concert play order. Includes its GQL Graph Types schema and runnable Gremlin examples, including a recommendation traversal. - [The Air Routes Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/data/air-routes.md): The air routes graph: a large, real-world graph of airports connected by flight routes and grouped by geography. Includes its GQL Graph Types schema and runnable Gremlin examples that exercise property lookups, edge-weight ranking and multi-hop connectivity. ## dev/developer - [Developer Documentation](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/developer/index.md): Documentation for TinkerPop contributors and committers: setting up a development environment, contribution process, release process, governance, and community meetings. - [Development Environment](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/developer/development-environment.md): Setting up a TinkerPop development environment: build prerequisites, Maven and Docker workflows, and how to build and test the code and documentation. - [For Committers](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/developer/for-committers.md): Guidelines for TinkerPop committers: the Review-then-Commit (RTC) process, commit conventions, branch and merge practices, and committer responsibilities. - [Review then Commit](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/developer/rtc.md): The Review-then-Commit (RTC) process TinkerPop uses for changes: how contributions are proposed, reviewed, voted on, and merged. - [Release Process](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/developer/release-process.md): The step-by-step process for cutting an official Apache TinkerPop release, including building, staging, voting, and publishing artifacts and documentation. ## dev/future - [TinkerPop Future](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/future/index.md): Forward-looking design documents and proposals for future directions of Apache TinkerPop and the Gremlin language. ## dev/io - [IO Reference](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/io/index.md): Details of TinkerPop's graph serialization formats — GraphML, GraphSON, Gryo, and GraphBinary — with format samples and implementation notes for producing and consuming graphs. - [GraphSON](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/io/graphson.md): The JSON-based GraphSON serialization format: its purpose, how it has evolved across versions, and (from GraphSON 4) its role as the network serialization format for the TinkerPop HTTP API. - [Version 4.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/io/graphson-4.md): GraphSON 4.0: the current format (TinkerPop 4.0.0+, application/vnd.gremlin-v4.0+json), a network serialization format for the TinkerPop HTTP API, with per-type sample encodings for graph structure and request/response messages. ## dev/provider - [Introduction](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/index.md): Provider documentation overview: what graph system providers, graph driver providers, and language variant providers must implement to integrate with TinkerPop. - [Provider Documentation](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/providers.md): Guidance for those building on TinkerPop: implementing a graph system, a driver, or a language variant, and validating it against the test suite. - [Graph System Provider Requirements](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/graph-system-provider-requirements.md): What a graph system provider must implement: the structure/process APIs, OLTP and OLAP support, and how to validate the implementation with the Gremlin test suite. - [Supporting Declarative Pattern Matching (TinkerGQL)](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/tinkerpop-providers-tinkergql.md): How a graph system provider supports declarative pattern matching with TinkerGQL: the Maven dependency, registering the strategy, performance hints, property index integration, a custom executor, and implementing a different declarative language. - [Validating with Gremlin-Test](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/validating-with-gremlin-test.md): Using the gremlin-test suite to validate a graph implementation: the structure and process test standards and how to opt in or out of feature-gated tests. - [Graph Driver Provider Requirements](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/provider-documentation-graph-driver-provider-requirements.md): What a driver provider must implement to connect a language to Gremlin Server: the wire protocol, serialization formats, and connection handling. - [Gremlin Plugins](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/gremlin-plugins.md): How to author Gremlin Console/Server plugins as a provider: the plugin interface, dependency management, and registering custom bindings and DSLs. - [Gremlin Semantics](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/gremlin-semantics.md): The formal semantics of the Gremlin language: the type system, traverser model, and the precise expected behavior of each step, as a specification for providers. - [Geometry](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/gremlin-semantics-geometry.md): Geometry semantics: the Geometry() literal and the geoWithin and geoContains predicates with the rules that govern their evaluation. - [Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/gremlin-semantics-steps.md): Per-step semantic definitions: the precise input/output behavior each Gremlin step must exhibit, used to verify provider implementations for correctness. - [addE()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/adde-step.md): The formal semantics of the addE() step: adds an edge to the graph. - [addV()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/addv-step.md): The formal semantics of the addV() step: adds a vertex to the graph. - [addLabel()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/addlabel-step.md): The formal semantics of the addLabel() step: adds one or more labels to an element. - [dropLabel()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/droplabel-step.md): The formal semantics of the dropLabel() step: removes one or more specific labels from an element, or removes all labels. - [all()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/all-step.md): The formal semantics of the all() step: filters array data from the Traversal Stream if all of the array's items match the supplied predicate. - [aggregate()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/aggregate-step.md): The formal semantics of the aggregate() step: collects all objects in the traversal into a collection. - [and()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/and-step.md): The formal semantics of the and() step: ensures that all provided traversals yield a result. - [any()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/any-step.md): The formal semantics of the any() step: filters array data from the Traversal Stream if any of the array's items match the supplied predicate. - [as()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/as-step.md): The formal semantics of the as() step: labels a step for later access by steps that make use of such labels. - [asBool()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/asBool-step.md): The formal semantics of the asBool() step: parses the value of the incoming traverser as a boolean. - [asDate()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/asDate-step.md): The formal semantics of the asDate() step: parse the value of incoming traverser as date. - [asNumber()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/asNumber-step.md): The formal semantics of the asNumber() step: converts the incoming traverser to the nearest parsable type, or to the desired numerical type based on the GType type token provided. - [asString()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/asString-step.md): The formal semantics of the asString() step: returns the value of incoming traverser as strings, or if Scope.local is specified, returns each element inside incoming list traverser as string. - [barrier()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/barrier-step.md): The formal semantics of the barrier() step: turns the lazy traversal pipeline into a bulk-synchronous pipeline. - [both()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/both-step.md): The formal semantics of the both() step: maps a vertex to its adjacent vertices given the edge labels. - [bothE()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/bothe-step.md): The formal semantics of the bothE() step: maps a vertex to its incident edges given the edge labels. - [bothV()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/bothv-step.md): The formal semantics of the bothV() step: maps an edge to its incident vertices. - [branch()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/branch-step.md): The formal semantics of the branch() step: splits the traverser to all the specified traversals. - [cap()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/cap-step.md): The formal semantics of the cap() step: iterates the traversal up to itself and emits the sideEffect referenced by the provided key. - [call()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/call-step.md): The formal semantics of the call() step: provides support for provider-specific service calls. - [choose()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/choose-step.md): The formal semantics of the choose() step: a branch step that routes the traverser to different paths based on a choice criterion. - [combine()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/combine-step.md): The formal semantics of the combine() step: its exact expected behavior when merging an incoming list with a supplied list argument. - [coin()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/coin-step.md): The formal semantics of the coin() step: filters traversers from the Traversal Stream based on a biased coin toss. - [concat()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/concat-step.md): The formal semantics of the concat() step: concatenates the incoming String traverser with the input String arguments, and return the joined String. - [dateAdd()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/dateAdd-step.md): The formal semantics of the dateAdd() step: increase value of input Date. - [dateDiff()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/dateDiff-step.md): The formal semantics of the dateDiff() step: returns the difference between two dates as a Long, in epoch milliseconds. - [dedup()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/dedup-step.md): The formal semantics of the dedup() step: removes repeatedly seen results from the Traversal Stream. - [difference()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/difference-step.md): The formal semantics of the difference() step: adds the difference of two lists to the Traversal Stream. - [discard()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/discard-step.md): The formal semantics of the discard() step: filters all traversers out of the traversal stream, discarding them. - [disjunct()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/disjunct-step.md): The formal semantics of the disjunct() step: adds the disjunct set to the Traversal Stream. - [element()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/element-step.md): The formal semantics of the element() step: traverse from Property to its Element. - [elementMap()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/elementmap-step.md): The formal semantics of the elementMap() step: converts elements to a `Map` representation containing the element's `id`, `label`, and properties. - [E()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/e-step.md): The formal semantics of the E() step: reads edges from the graph by their identifiers. - [format()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/format-step.md): The formal semantics of the format() step: returns a string built by substituting variable references in a template with values from the incoming traverser. - [group()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/group-step.md): The formal semantics of the group() step: groups objects in the traversal stream by a key and applies a reducing operation to the grouped values. - [groupCount()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/groupcount-step.md): The formal semantics of the groupCount() step: counts the number of times a particular object has been part of a traversal, returning a `MAP` where the object is the key and the value is the count. - [has()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/has-step.md): The formal semantics of the has() step: filters traversers by property existence, property value, label, or identifier. - [hasId()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/hasid-step.md): The formal semantics of the hasId() step: filters elements by their identifier. - [hasKey()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/haskey-step.md): The formal semantics of the hasKey() step: filters properties by their key. - [hasLabel()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/haslabel-step.md): The formal semantics of the hasLabel() step: filters elements by their label. - [hasValue()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/hasvalue-step.md): The formal semantics of the hasValue() step: filters properties by their value. - [label()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/label-step.md): The formal semantics of the label() step: maps an element to its label as a single string value. - [labels()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/labels-step.md): The formal semantics of the labels() step: maps an element to its labels, emitting one traverser per label. - [length()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/length-step.md): The formal semantics of the length() step: returns the length of the incoming string or list, if Scope.local is specified, returns the length of each string elements inside incoming list traverser. - [local()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/local-step.md): The formal semantics of the local() step: executes the provided traversal in an object-local manner. - [intersect()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/intersect-step.md): The formal semantics of the intersect() step: adds the intersection to the Traversal Stream. - [is()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/is-step.md): The formal semantics of the is() step: filters scalar values by testing them against a predicate or value. - [conjoin()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/conjoin-step.md): The formal semantics of the conjoin() step: joins every element in a list together into a String. - [lTrim()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/lTrim-step.md): The formal semantics of the lTrim() step: returns a string with leading whitespace removed. - [match()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/match-step.md): The formal semantics of the match() step: executes a declarative pattern match query against the graph using a provider-supported query string. - [merge()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/merge-step.md): The formal semantics of the merge() step: adds the union of two sets (or two maps) to the Traversal Stream. - [mergeE()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/merge-e-step.md): The formal semantics of the mergeE() step: provides upsert-like functionality for edges. - [mergeV()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/merge-v-step.md): The formal semantics of the mergeV() step: provides upsert-like functionality for vertices. - [none()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/none-step.md): The formal semantics of the none() step: filters list data from the traversal stream if none of the list's items match the supplied predicate. - [product()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/product-step.md): The formal semantics of the product() step: adds the cartesian product to the Traversal Stream. - [project()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/project-step.md): The formal semantics of the project() step: projects the current object in the stream into a `MAP` that is keyed by the provided labels. - [property()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/property-step.md): The formal semantics of the property() step: adds or sets properties on elements. - [repeat()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/repeat-step.md): The formal semantics of the repeat() step: iteratively applies a traversal (the "loop body") to each incoming traverser until a stopping condition is met. - [replace()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/replace-step.md): The formal semantics of the replace() step: returns a string with the specified characters in the original string replaced with the new characters. - [reverse()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/reverse-step.md): The formal semantics of the reverse() step: returns the reverse of the incoming traverser. - [rTrim()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/rTrim-step.md): The formal semantics of the rTrim() step: returns a string with trailing whitespace removed. - [split()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/split-step.md): The formal semantics of the split() step: returns a list of strings created by splitting the incoming string traverser around the matches of the given separator. - [subgraph()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/subgraph-step.md): The formal semantics of the subgraph() step: extracts an edge-induced subgraph from the current graph based on the edges encountered during traversal. - [substring()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/substring-step.md): The formal semantics of the substring() step: its exact expected behavior extracting a portion of a string by index. - [toLower()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/toLower-step.md): The formal semantics of the toLower() step: returns the lowercase representation of incoming string traverser, or if Scope.local is specified, returns the lowercase representation of each string element inside the incoming list traverser. - [toUpper()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/toUpper-step.md): The formal semantics of the toUpper() step: returns the uppercase representation of incoming string traverser, or if Scope.local is specified, returns the uppercase representation of each string element inside the incoming list traverser. - [tree()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/tree-step.md): The formal semantics of the tree() step: aggregates the paths of the traversal into a tree data structure. - [trim()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/trim-step.md): The formal semantics of the trim() step: returns a string with leading and trailing whitespace removed. - [V()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/v-step.md): The formal semantics of the V() step: reads vertices from the graph by their identifiers. - [valueMap()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/valueMap-step.md): The formal semantics of the valueMap() step: converts elements to a map representation of their properties. - [where()](https://tinkerpop.apache.org/docs/4.0.0-beta.4/dev/provider/where-step.md): The formal semantics of the where() step: filters traversers based on a predicate, a traversal, or a comparison between labeled steps. ## recipes - [Recipes](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/index.md): A collection of practical Gremlin traversal patterns and solutions to common graph problems, with runnable examples. - [Traversal Recipes](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/traversal-recipes.md): Recipes covering common traversal tasks — between-vertices patterns, centrality, collections, cycle detection, pagination, recommendation, shortest path, trees, and more. - [Between Vertices](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/between-vertices.md): Recipe: It is quite common to have a situation where there are two particular vertices of a graph and a need to execute some traversal on the paths found between them. - [Centrality](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/centrality.md): Recipe: There are many measures of centrality which are meant to help identify the most important vertices in a graph. - [Collections](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/collections.md): Recipe: reshaping List and Map collections within a traversal — unfolding, folding, grouping, and reformatting side-effect data. - [Cycle Detection](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/cycle-detection.md): Recipe: A cycle occurs in a graph where a path loops back on itself to the originating vertex. - [Duplicate Edge Detection](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/duplicate-edge.md): Recipe: Whether part of a graph maintenance process or for some other analysis need, it is sometimes necessary to detect if there is more than one edge between two vertices. - [Duplicate Vertex Detection](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/duplicate-vertex.md): Recipe: The pattern for finding duplicate vertices is quite similar to the pattern defined in the Duplicate Edge section. - [Moving an Edge](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/edge-move.md): Recipe: moving an existing edge from one incident vertex to another by recreating it with new endpoints and dropping the original. - [Element Existence](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/element-existence.md): Recipe: Checking whether a graph element (a vertex or edge) is already present in the graph. - [If-Then Based Grouping](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/if-then-based-grouping.md): Recipe: bucketing elements into groups by if/then-style conditions using choose() within group(). - [Looping](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/looping.md): Recipe: One common use case when working with Gremlin is to perform complex looping statements using the repeat() step. - [Operating on Dropped Elements](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/operating-on-dropped-elements.md): Recipe: One common scenario that happens when dropping elements using a traversal is the desire to perform some sort of operation on the elements being removed. - [Pagination](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/pagination.md): Recipe: In most database applications, it is oftentimes desirable to return discrete blocks of data for a query rather than all of the data that the total results would contain. - [Recommendation](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/recommendation.md): Recipe for building recommendations with Gremlin using collaborative-filtering-style traversals over a graph. - [Shortest Path](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/shortest-path.md): Recipe: finding the shortest path between vertices with Gremlin, using repeat()/until() and path-length comparison. - [Traversal Induced Values](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/traversal-induced-values.md): Recipe: The parameters of a Traversal can be known ahead of time as constants or might otherwise be passed in as dynamic arguments. - [Tree](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/tree.md): Recipe for working with tree-shaped data in Gremlin: building, traversing, and extracting hierarchical structures from a graph. - [OLAP traversals with Spark on YARN](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/olap-spark-yarn.md): Recipe: TinkerPop's combination of SparkGraphComputer and HadoopGraph allows for running distributed, analytical graph queries (OLAP) on a computer cluster. - [How to Contribute a Recipe](https://tinkerpop.apache.org/docs/4.0.0-beta.4/recipes/contributing.md): How to contribute a new recipe to the TinkerPop documentation, including the expected structure and testing conventions. ## reference - [TinkerPop Documentation](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/index.md): The main TinkerPop reference guide: the structure API, the Gremlin traversal language and its step catalog, OLAP with GraphComputer, the Gremlin applications, language variants, and provided implementations. - [Introduction](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/intro.md): Introduction to TinkerPop and Gremlin: graph computing concepts (structure vs. process), the ways to connect to Gremlin (embedded, Gremlin Server, remote providers), and how to stay implementation-agnostic. - [API Stability](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/api-stability.md): The stability guarantees for TinkerPop APIs and features, including how experimental APIs are identified across each Gremlin Language Variant. - [The Graph](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/graph.md): The structure API: graphs, vertices, edges, properties, meta- and multi-properties, transactions, variables, and the features a graph implementation can support. - [The Traversal](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/traversal.md): The core of Gremlin: how traversals are constructed from steps, the traverser model, and the catalog of graph traversal steps used to query and mutate graphs. - [Graph Traversal Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/graph-traversal-steps.md): Reference catalog of the individual Gremlin steps (map, filter, sideEffect, branch, and more) with syntax and examples for each. - [General Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/general-steps.md): The five general steps (map, flatMap, filter, sideEffect, branch) from which all other Gremlin steps are derived. - [Terminal Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/terminal-steps.md): Terminal steps (e.g. next(), toList(), iterate(), hasNext()) that execute a traversal and return concrete results rather than another traversal. - [AddE Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/addedge-step.md): The addE()-step (map/sideEffect) adds an edge between vertices in the graph. - [AddV Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/addvertex-step.md): The addV()-step is used to add vertices to the graph (map/sideEffect). - [AddLabel Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/addlabel-step.md): The addLabel()-step (sideEffect) adds one or more labels to an element on a graph configured with a multi-label LabelCardinality. - [Aggregate Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/aggregate-step.md): The aggregate()-step (sideEffect) is used to aggregate all the objects at a particular point of traversal into a Collection. - [All Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/all-step.md): It is possible to filter list traversers using all()-step (filter). - [And Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/and-step.md): The and()-step ensures that all provided traversals yield a result (filter). - [Any Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/any-step.md): It is possible to filter list traversers using any()-step (filter). - [As Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/as-step.md): The as()-step is not a real step, but a "step modulator" similar to by() and option(). - [AsString Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/asString-step.md): The asString()-step (map) returns the value of incoming traverser as strings. - [AsBool Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/asBool-step.md): The asBool()-step (map) converts the incoming traverser to a boolean value. - [AsDate Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/asDate-step.md): The asDate()-step (map) converts string or numeric input to Date. - [AsNumber Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/asNumber-step.md): The asNumber()-step (map) converts the incoming traverser to the nearest parsable numerical type, or to the numerical type named by a GType token. - [Barrier Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/barrier-step.md): The barrier()-step (barrier) turns the lazy traversal pipeline into a bulk-synchronous pipeline. - [Branch Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/branch-step.md): The branch() step splits the traverser to all the child traversals provided to it. - [By Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/by-step.md): The by()-step is not an actual step, but instead is a "step-modulator" similar to as() and option(). - [Call Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/call-step.md): The call() step allows for custom, provider-specific service calls either at the start of a traversal or mid-traversal. - [Cap Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/cap-step.md): The cap()-step (barrier) iterates the traversal up to itself and emits the sideEffect referenced by the provided key. - [Choose Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/choose-step.md): The choose()-step (branch) routes the current traverser to a particular traversal branch option. - [Coalesce Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/coalesce-step.md): The coalesce()-step evaluates the provided traversals in order and returns the first traversal that emits at least one element. - [Coin Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/coin-step.md): To randomly filter out a traverser, use the coin()-step (filter). - [Combine Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/combine-step.md): The combine() step (map) merges the elements of the incoming list traverser with a provided list argument into a single list. - [Concat Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/concat-step.md): The concat()-step (map) concatenates one or more String values together to the incoming String traverser. - [Conjoin Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/conjoin-step.md): The conjoin()-step (map) joins together the elements in the incoming list traverser together with the provided argument as a delimiter. - [ConnectedComponent Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/connectedcomponent-step.md): The connectedComponent() step performs a computation to identify Connected Component instances in a graph. - [Constant Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/constant-step.md): To specify a constant value for a traverser, use the constant()-step (map). - [Count Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/count-step.md): The count()-step (map) counts the total number of represented traversers in the streams (i.e. the bulk count). - [CyclicPath Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/cyclicpath-step.md): The cyclicPath()-step (filter) retains only traversers whose path contains a cycle (a repeated element). - [DateAdd Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/dateAdd-step.md): The dateAdd()-step (map) returns the value with the addition of the value number of units as specified by the DateToken. - [DateDiff Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/dateDiff-step.md): The dateDiff()-step (map) returns the difference between two Dates in epoch time. - [Dedup Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/dedup-step.md): With dedup()-step (filter), repeatedly seen objects are removed from the traversal stream. - [Difference Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/difference-step.md): The difference()-step (map) calculates the difference between the incoming list traverser and the provided list argument. - [Discard Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/discard-step.md): The discard()-step (filter) filters all objects from a traversal stream, useful for throwing away traversers in a particular branch of code. - [Disjunct Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/disjunct-step.md): The disjunct()-step (map) calculates the disjunct set between the incoming list traverser and the provided list argument. - [Drop Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/drop-step.md): The drop()-step (filter/sideEffect) is used to remove element and properties from the graph (i.e. remove). - [DropLabel Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/droplabel-step.md): The dropLabel()-step (sideEffect) removes one or more specific labels from an element, and dropLabels() removes all of them. - [E Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/e-step.md): The E()-step is meant to read edges from the graph and is usually used to start a GraphTraversal, but can also be used mid-traversal. - [Element Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/element-step.md): The element() step is a no-argument step that traverses from a Property to the Element that owns it. - [ElementMap Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/elementmap-step.md): The elementMap()-step yields a Map representation of the structure of an element. - [Emit Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/emit-step.md): The emit()-step is a step modulator for repeat() that controls which traversers within the loop are copied out to the following step, with its position relative to repeat() determining whether the starting traverser is emitted. - [Explain Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/explain-step.md): The explain()-step (terminal) will return a TraversalExplanation. - [Fail Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/fail-step.md): The fail()-step provides a way to force a traversal to immediately fail with an exception. - [Filter Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/filter-step.md): The filter() step maps the traverser from the current object to either true or false where the latter will not pass the traverser to the next step in the process. - [FlatMap Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/flatmap-step.md): The flatMap() step maps the traverser from the current object to an Iterator of objects for the next step in the process. - [Format Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/format-step.md): The format()-step (map) builds a string from a template with placeholders filled by traverser values and properties. - [Fold Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/fold-step.md): The fold()-step (map) aggregates all objects in the stream into a single list (or reduces them with a supplied seed and function). - [From Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/from-step.md): The from()-step is not an actual step, but instead is a "step-modulator" similar to as() and by(). - [Group Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/group-step.md): The group()-step (map/sideEffect) organizes objects into a Map by a key, optionally folding each group's values. - [GroupCount Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/groupcount-step.md): When it is important to know how many times a particular object has been at a particular part of a traversal, groupCount()-step (map/sideEffect) is used. - [Has Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/has-step.md): The has() step (filter) and its variants (hasLabel, hasId, hasKey, hasValue, hasNot) filter vertices, edges, and properties by label, key, and value. - [Id Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/id-step.md): The id()-step (map) takes an Element and extracts its identifier from it. - [Identity Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/identity-step.md): The identity()-step (map) is an identity function which maps the current object to itself. - [Index Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/index-step.md): The index()-step (map) indexes each element in the current collection. - [Inject Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/inject-step.md): The inject()-step inserts arbitrary objects into the traversal stream. - [Intersect Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/intersect-step.md): The intersect()-step (map) calculates the intersection between the incoming list traverser and the provided list argument. - [IO Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/io-step.md): The task of importing and exporting the data of Graph instances is the job of the io()-step. - [GraphSON](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/graphson.md): How the io() step reads and writes graphs in the JSON-based GraphSON format, including its use for import and export. - [Is Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/is-step.md): It is possible to filter scalar values using is()-step (filter). - [Key Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/key-step.md): The key()-step (map) takes a Property and extracts the key from it. - [Label Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/label-step.md): The label()-step (map) takes an Element and extracts its label from it. - [Labels Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/labels-step.md): The labels()-step (flatMap) takes an Element and emits each of its labels as a separate traverser. - [Length Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/length-step.md): The length()-step (map) returns the length incoming string or list of string traverser. - [Limit Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/limit-step.md): The limit()-step is analogous to range()-step save that the lower end range is set to 0. - [Local Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/local-step.md): The local()-step (branch) runs a child traversal locally on each single input object rather than the whole stream. - [Loops Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/loops-step.md): The loops()-step (map) extracts the number of times the Traverser has gone through the current loop. - [LTrim Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/lTrim-step.md): The lTrim()-step (map) returns a string with leading whitespace removed. - [Map Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/map-step.md): The map() step maps each incoming traverser to exactly one output object, taking the first result of its child traversal; traversers whose child traversal produces no result are dropped. - [Match Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/match-step.md): The match() step (map) provides declarative, pattern-matching graph querying by combining traversal fragments bound to shared variables. - [Math Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/math-step.md): The math()-step (math) enables scientific calculator functionality within Gremlin. - [Max Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/max-step.md): The max()-step (map) operates on a stream of comparable objects and determines which is the last object according to its natural order in the stream. - [Mean Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/mean-step.md): The mean()-step (map) operates on a stream of numbers and determines the average of those numbers. - [Merge Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/merge-step.md): The merge()-step (map) combines collections like lists and maps. - [MergeEdge Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/mergeedge-step.md): The mergeE() step is used to add edges and their properties to a graph in a "create if not exist" fashion. - [MergeVertex Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/mergevertex-step.md): The mergeV() -step is used to add vertices and their properties to a graph in a "create if not exist" fashion. - [Min Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/min-step.md): The min()-step (map) operates on a stream of comparable objects and determines which is the first object according to its natural order in the stream. - [None Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/none-step.md): The none()-step (filter) filters all objects from a traversal stream. - [Not Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/not-step.md): The not() step (filter) removes traversers for which the provided sub-traversal returns a result, negating a pattern. - [Option Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/option-step.md): The option()-step is a modulator that supplies branch choices to choose(), branch(), and mergeV()/mergeE(). - [Optional Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/optional-step.md): The optional()-step (branch/flatMap) returns the result of the specified traversal if it yields a result, else it returns the calling element (i.e. the identity). - [Or Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/or-step.md): The or()-step ensures that at least one of the provided traversals yield a result (filter). - [Order Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/order-step.md): When the objects of the traversal stream need to be sorted, order()-step (map) can be leveraged. - [PageRank Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/pagerank-step.md): The pageRank()-step (map/sideEffect) calculates PageRank using PageRankVertexProgram. - [Path Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/path-step.md): The path()-step (map) returns the full history (path) of each traverser through the traversal. - [PeerPressure Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/peerpressure-step.md): The peerPressure()-step (map/sideEffect) clusters vertices using PeerPressureVertexProgram. - [Product Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/product-step.md): The product()-step (map) calculates the cartesian product between the incoming list traverser and the provided list argument. - [Profile Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/profile-step.md): The profile()-step (sideEffect) exists to allow developers to profile their traversals to determine statistical information like step runtime, counts, etc. - [Project Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/project-step.md): The project()-step (map) projects the current object into a Map<String,Object> keyed by provided labels. - [Program Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/program-step.md): The program()-step (map/sideEffect) is the "lambda" step for GraphComputer jobs. - [Properties Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/properties-step.md): The properties()-step (map) extracts properties from an Element in the traversal stream. - [Property Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/property-step.md): The property()-step is used to add properties to the elements of the graph (sideEffect). - [PropertyMap Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/propertymap-step.md): The propertyMap()-step yields a Map representation of the properties of an element. - [Range Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/range-step.md): As traversers propagate through the traversal, it is possible to only allow a certain number of them to pass through with range()-step (filter). - [Read Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/read-step.md): The read()-step is not really a "step" but a step modulator in that it modifies the functionality of the io()-step. - [Repeat Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/repeat-step.md): The repeat()-step (branch) is used for looping over a traversal given some break predicate. - [Replace Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/replace-step.md): The replace()-step (map) returns a string with the specified characters in the original string replaced with the new characters. - [Reverse Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/reverse-step.md): The reverse()-step (map) returns the reverse of the incoming list traverser. - [RTrim Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/rTrim-step.md): The rTrim()-step (map) returns a string with trailing whitespace removed. - [Sack Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/sack-step.md): The sack() step (sideEffect or map) reads and writes a per-traverser local data structure (the sack), used to carry and accumulate values along a traversal. - [Sample Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/sample-step.md): The sample()-step is useful for sampling some number of traversers previous in the traversal. - [Select Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/select-step.md): The select()-step (map) selects labeled steps, side-effects, columns, or map entries from the traverser. - [ShortestPath step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/shortestpath-step.md): The shortestPath()-step provides an easy way to find shortest non-cyclic paths in a graph. - [SideEffect Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/sideeffect-step.md): The sideEffect() step performs some operation on the traverser and passes it to the next step in the process. - [SimplePath Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/simplepath-step.md): When it is important that a traverser not repeat its path through the graph, simplePath()-step should be used (filter). - [Skip Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/skip-step.md): The skip()-step is analogous to range()-step save that the higher end range is set to -1. - [Split Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/split-step.md): The split()-step (map) returns a list of strings created by splitting the incoming string traverser around the matches of the given separator. - [Subgraph Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/subgraph-step.md): The subgraph()-step (sideEffect) extracts a portion of the graph into a new edge-induced subgraph. - [Substring Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/substring-step.md): The substring() step (map) extracts a portion of an incoming string by start (and optional end) index. - [Sum Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/sum-step.md): The sum()-step (map) operates on a stream of numbers and sums the numbers together to yield a result. - [Tail Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/tail-step.md): The tail()-step is analogous to limit()-step, except that it emits the last n-objects instead of the first n-objects. - [TimeLimit Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/timelimit-step.md): The timeLimit()-step (filter) halts a traversal branch after a specified time has elapsed. - [Times Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/times-step.md): The times-step is not an actual step, but is instead a step modulator for repeat() (find more documentation on the times() there). - [To Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/to-step.md): The to() step-modulator supplies direction and destination arguments to steps like from(), addE(), and path-oriented steps. - [ToLower Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/toLower-step.md): The toLower()-step (map) returns the lowercase representation of incoming string or list of string traverser. - [ToUpper Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/toUpper-step.md): The toUpper()-step (map) returns the uppercase representation of incoming string or list of string traverser. - [Tree Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/tree-step.md): The tree()-step (sideEffect) aggregates the paths emanating from elements into a tree structure. - [Trim Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/trim-step.md): The trim()-step (map) returns a string with leading and trailing whitespace removed. - [Unfold Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/unfold-step.md): The unfold()-step (flatMap) unrolls an iterator, iterable, or map in the stream into a linear sequence of objects. - [Union Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/union-step.md): The union()-step (branch) supports the merging of the results of an arbitrary number of traversals. - [Until Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/until-step.md): The until-step is not an actual step, but is instead a step modulator for repeat() that specifies the break condition controlling how long the repeat() body loops. The until(Predicate) overload tests the traverser directly, while until(Traversal) tests whether its child traversal produces a result. - [V Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/v-step.md): The V()-step is meant to read vertices from the graph and is usually used to start a GraphTraversal, but can also be used mid-traversal. - [Value Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/value-step.md): The value()-step (map) takes a Property and extracts the value from it. - [ValueMap Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/valuemap-step.md): The valueMap()-step yields a Map representation of the properties of an element. - [Values Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/values-step.md): The values()-step (map) extracts the values of properties from an Element in the traversal stream. - [Vertex Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/vertex-steps.md): The vertex steps (out(), in(), both(), outE(), V(), etc.) move between vertices and edges and are fundamental to graph navigation. - [Where Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/where-step.md): The where()-step filters the current object based on either the object itself (Scope.local) or the path history of the object (Scope.global) (filter). - [With Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/with-step.md): The with()-step is not an actual step, but is instead a "step modulator" which modifies the behavior of the step prior to it. - [Write Step](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/write-step.md): The write()-step is not really a "step" but a step modulator in that it modifies the functionality of the io()-step. - [A Note on Predicates](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/a-note-on-predicates.md): A note on predicates used in Gremlin traversals, including standard, text and geometry predicates. - [A Note on Maps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/a-note-on-maps.md): A note on maps in Gremlin, including differences in behavior between embedded and remote contexts. - [A Note on Barrier Steps](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/a-note-on-barrier-steps.md): A note on barrier steps in Gremlin, including collecting, reducing, and supplying barriers. - [A Note on Scopes](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/a-note-on-scopes.md): A note on scopes in Gremlin, including local and global scope usage. - [A Note On Lambdas](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/a-note-on-lambdas.md): A note on lambdas in Gremlin, including their usage, limitations, and alternatives. - [TraversalStrategy](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/traversalstrategy.md): How TraversalStrategy implementations analyze and rewrite traversals at compile time (decoration, optimization, finalization, verification) and how to author custom strategies. - [The GraphComputer](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/graphcomputer.md): OLAP graph processing with GraphComputer: running VertexPrograms (e.g. PageRank, PeerPressure) and MapReduce jobs for whole-graph analytics. - [A Collection of VertexPrograms](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/the-graphcomputer-a-collection-of-vertexprograms.md): The VertexPrograms TinkerPop provides for common graph algorithms: PageRank, PeerPressure, connected components, shortest path, cloning, and the TraversalVertexProgram behind distributed Gremlin OLAP traversals. - [Gremlin Applications](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-applications.md): The applications that ship with TinkerPop: the Gremlin Console for interactive use and Gremlin Server for exposing graphs to remote clients. - [Gremlin Server](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-server.md): Gremlin Server exposes graphs to remote clients over WebSocket/HTTP: how to run it, its request lifecycle, serializers, and connecting from drivers. - [Configuring](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/server-configuring.md): Reference for Gremlin Server's YAML configuration options: graphs, serializers, channelizers, thread pools, SSL, and metrics. - [Security](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/security.md): Securing Gremlin Server: authentication (SASL/PLAIN, Kerberos), authorization, TLS/SSL, and sandboxing script execution. - [Best Practices](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-applications-gremlin-server-best-practices.md): Recommended practices for working with Gremlin Server, including connection handling, parameterized scripts, and result serialization. - [Gremlin Plugins](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-plugins.md): Extending the Gremlin Console and Server with plugins that add dependencies, DSLs, and bindings; covers the plugins that ship with TinkerPop. - [Gremlin Drivers and Variants](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-drivers-variants.md): How Gremlin is embedded in host programming languages (Java, Groovy, Python, JavaScript, .NET, Go) and how language variants and drivers connect to a remote server. - [Gremlin-Go](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-go.md): Using Gremlin from Go: installing gremlin-go, building traversals, Go syntax differences, and connecting to a remote Gremlin Server. - [Gremlin-Groovy](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-groovy.md): Using Gremlin from Groovy: the JVM-based Gremlin-Groovy variant backed by Gremlin-Java, its role as the language of the Gremlin Console and Server, and its syntax differences. - [Gremlin-Java](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-java.md): Using Gremlin from Java: the reference implementation of the language, GraphTraversalSource construction, and connecting to a remote Gremlin Server. - [Domain Specific Languages](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-java-dsl.md): Creating a Domain Specific Language (DSL) in Java with the @GremlinDsl annotation from the gremlin-annotations module: defining the DSL interface, customizing the TraversalSource with additional start steps, and the traversal classes generated by the annotation processor. - [Java Platform Module System](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-java-jpms.md): Using Gremlin-Java with the Java Platform Module System (JPMS), including module names, Maven setup, extension-point access, and classpath-only limitations. - [Gremlin-JavaScript](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-javascript.md): Using Gremlin from JavaScript/Node.js: installing the gremlin package, building traversals, and connecting to a remote Gremlin Server. - [Gremlin-Python](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/gremlin-python.md): Using Gremlin from Python: installing gremlinpython, building traversals, Pythonic syntax differences, and connecting to a remote Gremlin Server. - [Implementations](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/implementations.md): Graph system and processor implementations that ship with TinkerPop, including TinkerGraph and the Hadoop/Spark OLAP engines. - [TinkerGraph-Gremlin](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/tinkergraph-gremlin.md): TinkerGraph, TinkerPop's in-memory reference graph: its configuration and data types, multi-label support, the transactional and optionally persistent TinkerStorageGraph, and TinkerGQL indexing. - [Persistence](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/tinkergraph-gremlin-persistence.md): Persisting TinkerStorageGraph to disk: selecting a storage engine, durability and concurrent writes, what a store holds, settings fixed at creation, failure recovery, and use with Gremlin Server. - [Hadoop-Gremlin](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/hadoop-gremlin.md): Running Gremlin OLAP over Hadoop: HadoopGraph, graph input/output formats, and executing traversals with SparkGraphComputer. - [Storage Systems](https://tinkerpop.apache.org/docs/4.0.0-beta.4/reference/implementations-hadoop-gremlin-storage-systems.md): Hadoop-Gremlin's Storage API for inspecting OLAP input and output: FileSystemStorage for HDFS and the local file system, and SparkContextStorage for persisted Spark RDDs. ## tutorials/getting-started - [Getting Started](https://tinkerpop.apache.org/docs/4.0.0-beta.4/tutorials/getting-started/index.md): A beginner's tutorial introducing graphs, vertices, edges, and basic Gremlin traversals to get started with Apache TinkerPop. ## tutorials/gremlin-language-variants - [Gremlin Language Variants](https://tinkerpop.apache.org/docs/4.0.0-beta.4/tutorials/gremlin-language-variants/index.md): A stub tutorial that redirects to the reference documentation on Gremlin drivers and language variants. ## tutorials/gremlins-anatomy - [Gremlin’s Anatomy](https://tinkerpop.apache.org/docs/4.0.0-beta.4/tutorials/gremlins-anatomy/index.md): A tutorial breaking down the anatomy of a Gremlin traversal — its steps, modulators, tokens, and how they compose — to build a deeper understanding of the language. ## tutorials/the-gremlin-console - [The Gremlin Console](https://tinkerpop.apache.org/docs/4.0.0-beta.4/tutorials/the-gremlin-console/index.md): A tutorial on using the Gremlin Console: the interactive REPL for working with graphs, running traversals, and connecting to remote servers. ## upgrade - [TinkerPop Upgrade Information](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/index.md): Version-by-version upgrade notes for Apache TinkerPop, covering breaking changes, new features, and migration guidance for each release line from 3.0 onward. - [TinkerPop 4.0.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0.md): Upgrade notes for the TinkerPop 4.0.x release line: the breaking changes, new features, and provider and driver migration guidance introduced across its beta releases on the way to 4.0.0. - [TinkerPop 4.0.0-beta.4](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0-tinkerpop-4.0.0-beta.4.md): Upgrade notes for the TinkerPop 4.0.0-beta.4 release: the TinkerGraph split into in-memory and disk-backed implementations, the Gremlin Console move to Groovy 6, Gremlin naming in JavaScript, variable-length paths in TinkerGQL, GraphBinary length limits, Java module system support, geospatial data, plus provider guidance. - [TinkerPop 4.0.0-beta.3](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0-tinkerpop-4.0.0-beta.3.md): Upgrade notes for the TinkerPop 4.0.0-beta.3 release: user-facing changes including declarative pattern matching improvements and other 4.0 features. - [Upgrading for Providers](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0-tinkerpop-4.0.0-beta.3-upgrading-for-providers.md): Provider-facing upgrade notes for TinkerPop 4.0.0-beta.3: changes graph system and graph driver providers must account for, including Provider Defined Types (PDT). - [TinkerPop 4.0.0-beta.2](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0-tinkerpop-4.0.0-beta.2.md): Upgrade notes for the TinkerPop 4.0.0-beta.2 release: user-facing changes including more idiomatic Python property access and other 4.0 features, plus provider guidance. - [TinkerPop 4.0.0-beta.1](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-4.0.0-tinkerpop-4.0.0-beta.1.md): Upgrade notes for the TinkerPop 4.0.0-beta.1 release: the initial 4.0 preview of the new HTTP API for server and drivers, including server-side result bulking, plus provider guidance. - [TinkerPop 3.8.3](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.8.0-tinkerpop-3.8.3.md): Upgrade notes for the TinkerPop 3.8.3 release: the Experimental API designation and the experimental asynchronous Gremlin-Python driver. - [TinkerPop 3.8.2](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.8.0-tinkerpop-3.8.2.md): Upgrade notes for the TinkerPop 3.8.2 release: experimental JDK 21 and JDK 25 support and other changes. - [TinkerPop 3.8.1](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.8.0-tinkerpop-3.8.1.md): Upgrade notes for the TinkerPop 3.8.1 release: Gremlint formatting through the Gremlin MCP server and other changes for users and providers. - [TinkerPop 3.8.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.8.0-tinkerpop-3.8.0.md): Upgrade notes for the TinkerPop 3.8.0 release: breaking changes and new features for users, including standardized local/global scoping, simplified grammar, more consistent step behavior, new type-conversion and type-testing steps, and initial Model Context Protocol (MCP) support. - [Upgrading for Providers](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.8.0-tinkerpop-3.8.0-upgrading-for-providers.md): Provider-facing upgrade notes for TinkerPop 3.8.0: changes graph system and graph driver providers must account for, including custom type registration in the GlobalTypeCache and type-comparison support. - [TinkerPop 3.7.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.7.0.md): Upgrade notes for the TinkerPop 3.7.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.7.7](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.7.0-tinkerpop-3.7.7.md): Upgrade notes for the TinkerPop 3.7.7 release: security hardening of Gryo, GraphSON and OLAP IO, traversal strategy and class registration, pre-authentication request limits, and step behavior changes. - [TinkerPop 3.7.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.7.0-tinkerpop-3.7.0.md): Upgrade notes specific to the TinkerPop 3.7.0 release: its breaking changes, new features, and changelog. - [TinkerPop 3.6.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.6.0.md): Upgrade notes for the TinkerPop 3.6.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.5.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.5.0.md): Upgrade notes for the TinkerPop 3.5.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.5.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.5.0-tinkerpop-3.5.0.md): Upgrade notes specific to the TinkerPop 3.5.0 release: its breaking changes, new features, and changelog. - [Upgrading for Providers](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.5.0-tinkerpop-3.5.0-upgrading-for-providers.md): Provider-facing upgrade notes for TinkerPop 3.5.0: changes graph system and driver providers must account for, including server authorization and strategy changes. - [TinkerPop 3.4.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.4.0.md): Upgrade notes for the TinkerPop 3.4.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.4.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.4.0-tinkerpop-3.4.0.md): Upgrade notes specific to the TinkerPop 3.4.0 release: its breaking changes, new features, and changelog. - [TinkerPop 3.3.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.3.0.md): Upgrade notes for the TinkerPop 3.3.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.3.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.3.0-tinkerpop-3.3.0.md): Upgrade notes specific to the TinkerPop 3.3.0 release: its breaking changes, new features, and changelog. - [TinkerPop 3.2.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.2.0.md): Upgrade notes for the TinkerPop 3.2.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.2.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.2.0-tinkerpop-3.2.0.md): Upgrade notes specific to the TinkerPop 3.2.0 release: its breaking changes, new features, and changelog. - [TinkerPop 3.1.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.1.0.md): Upgrade notes for the TinkerPop 3.1.x release line: breaking changes, new features, and provider migration guidance across its releases. - [TinkerPop 3.0.0](https://tinkerpop.apache.org/docs/4.0.0-beta.4/upgrade/tinkerpop-3.0.0.md): Upgrade notes for the TinkerPop 3.0.x release line: the initial 3.x releases, their features, and migration guidance.