Skip to content

TinkerGraph

okram edited this page Apr 4, 2011 · 15 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();

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();