public void testTraversalProgram() {
Graph graph = TinkerGraphFactory.createTinkerGraph();
TraversalProgram program = TraversalProgram.create().iterations(1)
.addQuery(new VertexQueryBuilder().direction(Direction.IN).labels("created"))
.addQuery(new VertexQueryBuilder().direction(Direction.OUT).labels("created")).build();
SerialGraphComputer computer = new SerialGraphComputer(graph, program, GraphComputer.Isolation.BSP);
computer.execute();
VertexMemory results = computer.getVertexMemory();
for (Vertex vertex : graph.getVertices()) {