Class TinkerFactory
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
 
- 
 public final class TinkerFactory extends Object 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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static TinkerGraphcreateAirRoutes()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.static TinkerGraphcreateClassic()Create the "classic" graph which was the original toy graph from TinkerPop 2.x.static TinkerGraphcreateGratefulDead()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.static TinkerGraphcreateKitchenSink()Creates the "kitchen sink" graph which is a collection of structures (e.g.static TinkerGraphcreateModern()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.static TinkerGraphcreateTheCrew()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.static voidgenerateAirRoutes(AbstractTinkerGraph graph)Generate the graph increateAirRoutes()into an existing graph.static voidgenerateClassic(AbstractTinkerGraph g)Generate the graph increateClassic()into an existing graph.static voidgenerateGratefulDead(AbstractTinkerGraph graph)Generate the graph increateGratefulDead()into an existing graph.static voidgenerateKitchenSink(AbstractTinkerGraph graph)Generate the graph increateKitchenSink()into an existing graph.static voidgenerateModern(AbstractTinkerGraph g)Generate the graph increateModern()into an existing graph.static voidgenerateTheCrew(AbstractTinkerGraph g)Generate the graph increateTheCrew()into an existing graph.
 
- 
- 
- 
Method Detail- 
createClassicpublic static TinkerGraph createClassic() Create the "classic" graph which was the original toy graph from TinkerPop 2.x.
 - 
generateClassicpublic static void generateClassic(AbstractTinkerGraph g) Generate the graph increateClassic()into an existing graph.
 - 
createModernpublic static TinkerGraph 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.
 - 
generateModernpublic static void generateModern(AbstractTinkerGraph g) Generate the graph increateModern()into an existing graph.
 - 
createTheCrewpublic static TinkerGraph 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.
 - 
generateTheCrewpublic static void generateTheCrew(AbstractTinkerGraph g) Generate the graph increateTheCrew()into an existing graph.
 - 
createKitchenSinkpublic static TinkerGraph 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.
 - 
generateKitchenSinkpublic static void generateKitchenSink(AbstractTinkerGraph graph) Generate the graph increateKitchenSink()into an existing graph.
 - 
createGratefulDeadpublic static TinkerGraph 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.
 - 
generateGratefulDeadpublic static void generateGratefulDead(AbstractTinkerGraph graph) Generate the graph increateGratefulDead()into an existing graph.
 - 
createAirRoutespublic static TinkerGraph 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.
 - 
generateAirRoutespublic static void generateAirRoutes(AbstractTinkerGraph graph) Generate the graph increateAirRoutes()into an existing graph.
 
- 
 
-