Class TinkerFactory
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
Helps create a variety of different toy graphs for testing and learning purposes.
- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic TinkerMemoryGraphCreates the "air-routes" graph which is a larger graph than most of the toy graphs but has real-world structure and application and is therefore useful for demonstrating more complex traversals.static TinkerMemoryGraphCreate the "classic" graph which was the original toy graph from TinkerPop 2.x.static TinkerMemoryGraphCreates the "grateful dead" graph which is a larger graph than most of the toy graphs but has real-world structure and application and is therefore useful for demonstrating more complex traversals.static TinkerMemoryGraphCreates the "kitchen sink" graph which is a collection of structures (e.g. self-loops) that aren't represented in other graphs and are useful for various testing scenarios.static TinkerMemoryGraphCreate the "modern" graph which has the same structure as the "classic" graph from TinkerPop 2.x but includes 3.x features like vertex labels.static TinkerMemoryGraphCreate the "the crew" graph which is a TinkerPop 3.x toy graph showcasing many 3.x features like meta-properties, multi-properties and graph variables.static TinkerMemoryGraphCreate "the delivery" graph, a TinkerPop 4.x toy graph showcasing geometry property values and the geospatial predicates.static TinkerMemoryGraphCreate "the zoo" graph — a TinkerPop 4.x toy graph showcasing multi-label vertex support and diverse property types.static voidgenerateAirRoutes(TinkerGraph graph) Generate the graph increateAirRoutes()into an existing graph.static voidGenerate the graph increateClassic()into an existing graph.static voidgenerateGratefulDead(TinkerGraph graph) Generate the graph increateGratefulDead()into an existing graph.static voidgenerateKitchenSink(TinkerGraph graph) Generate the graph increateKitchenSink()into an existing graph.static voidGenerate the graph increateModern()into an existing graph.static voidGenerate the graph increateTheCrew()into an existing graph.static voidGenerate the graph increateTheDelivery()into an existing graph.static voidGenerate the graph increateTheZoo()into an existing graph.
-
Method Details
-
createClassic
Create the "classic" graph which was the original toy graph from TinkerPop 2.x. -
generateClassic
Generate the graph increateClassic()into an existing graph. -
createModern
Create the "modern" graph which has the same structure as the "classic" graph from TinkerPop 2.x but includes 3.x features like vertex labels. -
generateModern
Generate the graph increateModern()into an existing graph. -
createTheCrew
Create the "the crew" graph which is a TinkerPop 3.x toy graph showcasing many 3.x features like meta-properties, multi-properties and graph variables. -
generateTheCrew
Generate the graph increateTheCrew()into an existing graph. -
createKitchenSink
Creates the "kitchen sink" graph which is a collection of structures (e.g. self-loops) that aren't represented in other graphs and are useful for various testing scenarios. -
generateKitchenSink
Generate the graph increateKitchenSink()into an existing graph. -
createGratefulDead
Creates the "grateful dead" graph which is a larger graph than most of the toy graphs but has real-world structure and application and is therefore useful for demonstrating more complex traversals. -
generateGratefulDead
Generate the graph increateGratefulDead()into an existing graph. -
createAirRoutes
Creates the "air-routes" graph which is a larger graph than most of the toy graphs but has real-world structure and application and is therefore useful for demonstrating more complex traversals. -
generateAirRoutes
Generate the graph increateAirRoutes()into an existing graph. -
createTheZoo
Create "the zoo" graph — a TinkerPop 4.x toy graph showcasing multi-label vertex support and diverse property types. Contains 13 vertices, 20 edges with animals classified across taxonomy, behavior, and conservation axes. -
generateTheZoo
Generate the graph increateTheZoo()into an existing graph. The graph must support multi-label vertices (LabelCardinality of ONE_OR_MORE or ZERO_OR_MORE). -
createTheDelivery
Create "the delivery" graph, a TinkerPop 4.x toy graph showcasing geometry property values and the geospatial predicates. It models a delivery network of hubs, the zones they serve, customers, places and a warehouse with its rooms. Contains 21 vertices and 20 edges. -
generateTheDelivery
Generate the graph increateTheDelivery()into an existing graph. Locations on the Earth use theModel.GEOGRAPHICmodel with longitude and latitude in degrees. The warehouse rooms and the picker use theModel.CARTESIANmodel with coordinates in meters.
-