Skip to content
okram edited this page May 14, 2012 · 11 revisions

<dependency>
   <groupId>com.tinkerpop.blueprints</groupId>
   <artifactId>blueprints-core</artifactId>
   <version>??</version>
</dependency>

TinkerGraph is a lightweight, POJO based, in-memory property graph that serves as the reference implementation for the property graph model. If you have a small graph that can be loaded and saved using the GraphML reader and writer library, then TinkerGraph can be handy to use. TinkerGraph packaged with the core Blueprints distribution.

Graph graph = new TinkerGraph();
Graph graph = new TinkerGraph("/tmp/tinkergraph"); // on graph.shutdown() the graph is serialized to disk

There is a hardcoded representation of the graph diagrammed in Property Graph Model. This is useful as a small, play dataset to get acquainted with the Blueprints API.

Graph graph = TinkerGraphFactory.createTinkerGraph();

TinkerGraph Feature List

supportsDuplicateEdges: true
supportsSelfLoops: true
supportsSerializableObjectProperty: true
supportsBooleanProperty: true
supportsDoubleProperty: true
supportsFloatProperty: true
supportsIntegerProperty: true
supportsPrimitiveArrayProperty: true
supportsUniformListProperty: true
supportsMixedListProperty: true
supportsLongProperty: true
supportsMapProperty: true
supportsStringProperty: true
ignoresSuppliedIds: false
isPersistent: true
isRDFModel: false
isWrapper: false
supportsIndices: true
supportsVertexIndex: true
supportsEdgeIndex: true
supportsKeyIndices: true
supportsVertexKeyIndex: true
supportsEdgeKeyIndex: true
supportsEdgeIteration: true
supportsVertexIteration: true
supportsTransactions: false
supportsThreadedTransactions: false