-
Notifications
You must be signed in to change notification settings - Fork 275
TinkerGraph
okram edited this page Jul 16, 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();
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();