Gremlin: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
Line 10: Line 10:
and at https://markorodriguez.com/ the Author [https://www.linkedin.com/in/markorodriguez Marko Rodriguez] explains the ideas behind using an generic approach vor handling Graphs.
and at https://markorodriguez.com/ the Author [https://www.linkedin.com/in/markorodriguez Marko Rodriguez] explains the ideas behind using an generic approach vor handling Graphs.
The [https://github.com/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalSource.java Java implementation] is available on github.
The [https://github.com/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalSource.java Java implementation] is available on github.
S is generic Start class, and E is a generic End class as explained in the [http://tinkerpop.apache.org/docs/current/reference/#_the_traverser Apache Tinkerpop documentation].
For example let's assume we want to Traverse the family tree of a person.
[[Category:SiGNaL]]
[[Category:SiGNaL]]

Revision as of 16:35, 10 January 2018

GraphTraversal

One of the core concepts of tinkerpop/gremlin is the GraphTraversal It's interface has a generic definition as:

public interface GraphTraversal<S,E> extends Traversal<S,E>

and at https://markorodriguez.com/ the Author Marko Rodriguez explains the ideas behind using an generic approach vor handling Graphs. The Java implementation is available on github.

S is generic Start class, and E is a generic End class as explained in the Apache Tinkerpop documentation.

For example let's assume we want to Traverse the family tree of a person.