Map<Long, Node> deletedNodes = propertyContainersToMap(transactionData.getAllDeletedNodes());
Node deleted = deletedNodes.get(2L);
Node one = transactionData.getDeleted(deleted).getSingleRelationship(withName("R1"), INCOMING).getStartNode();
TraversalDescription traversalDescription = database.traversalDescription()
.relationships(withName("R1"), OUTGOING)
.relationships(withName("R2"), OUTGOING)
.relationships(withName("R3"), INCOMING)
.depthFirst()
.uniqueness(Uniqueness.NODE_GLOBAL)
.evaluator(Evaluators.toDepth(3));
assertEquals(4, count(traversalDescription.traverse(one).nodes()));
}
}
);
}