I want to find all paths between node 4 and node 12.
however this code doesn't work that i expected. Can you tell me the problem?
TraversalDescription desc = Traversal.description();
desc.uniqueness(Uniqueness.RELATIONSHIP_GLOBAL);
desc.evaluator(Evaluators.includingDepths(0, 3));
desc.relationships(RelTypes.husband_of)
.relationships(RelTypes.wife_of)
.relationships(RelTypes.brother_of)
.relationships(RelTypes.son_of)
.relationships(RelTypes.mother_of)
.relationships(RelTypes.daughter_of)
.relationships(RelTypes.elti_of);
desc.evaluator(Evaluators.pruneWhereEndNodeIs(graphDb.getNodeById(12)));
Traverser traverse = desc.traverse(graphDb.getNodeById(4),
graphDb.getNodeById(12));
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.