private SnapshotGraph read(String data, String rootVertexId) {
StringReader input = new StringReader(data);
try {
TinkerGraph graph = new TinkerGraph();
new GraphsonReader().read(input, graph);
return new SnapshotGraph(graph, rootVertexId);
} catch (Exception e) {
throw new IllegalStateException(e);
}
}