Package org.apache.tinkerpop.gremlin
Enum Class LoadGraphWith.GraphData
- All Implemented Interfaces:
Serializable,Comparable<LoadGraphWith.GraphData>,Constable
- Enclosing class:
- LoadGraphWith
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLoads the air-routes graph, a real-world dataset of ~3,500 airports and ~50,000 routes suitable for benchmarking and integration testing of traversals that benefit from larger, denser graphs.Loads the "classic" TinkerPop toy graph.Load "The Crew" TinkerPop3 toy graph which includesVertexPropertydata.Loads the "grateful dead" graph which is a "large" graph which provides for the construction of more complex traversals.Loads the "modern" TinkerPop toy graph which is like "classic", but with the "weight" value on edges stored as double and labels added for vertices.Loads a test graph which contains disconnected subgraphs specialized for testing purposes (e.g.Loads "The Zoo" TinkerPop4 toy graph which showcases multi-label vertices and a variety of property types. -
Method Summary
Modifier and TypeMethodDescriptionlocation()static LoadGraphWith.GraphDataReturns the enum constant of this class with the specified name.static LoadGraphWith.GraphData[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSIC
Loads the "classic" TinkerPop toy graph. -
MODERN
Loads the "modern" TinkerPop toy graph which is like "classic", but with the "weight" value on edges stored as double and labels added for vertices. This should be the most commonly used graph instance for testing as graphs that support string, double and int should comprise the largest number of implementations. -
CREW
Load "The Crew" TinkerPop3 toy graph which includesVertexPropertydata. -
GRATEFUL
Loads the "grateful dead" graph which is a "large" graph which provides for the construction of more complex traversals. -
SINK
Loads a test graph which contains disconnected subgraphs specialized for testing purposes (e.g. a subgraph with a self-loop). -
AIR_ROUTES
Loads the air-routes graph, a real-world dataset of ~3,500 airports and ~50,000 routes suitable for benchmarking and integration testing of traversals that benefit from larger, denser graphs. -
ZOO
Loads "The Zoo" TinkerPop4 toy graph which showcases multi-label vertices and a variety of property types. Requires a graph configured withLabelCardinality.ZERO_OR_MORE(orONE_OR_MORE). Note that thisGraphDatadoes not currently supportlocation()orfeaturesRequired()since none of the serialization formats used to produce a data file for it (Gryo, GraphSON) correctly round-trip multi-label vertices yet. It is only usable via aGraphProviderthat builds the graph directly, e.g. withTinkerFactory.createTheZoo().
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
location
-
featuresRequired
-