Dear Friends, 

I m working neo4j in java. I have some paths and i m trying to find some 
relations. I have two problems according to below example. If it is 
possible, I will be waiting your answers.

for (Path path : 
graphDb.traversalDescription().depthFirst().uniqueness(Uniqueness.NODE_PATH)
.evaluator(Evaluators.atDepth(3)) 
.relationships(relation.A), Direction.BOTH)
.relationships(relation.B), Direction.BOTH)
.relationships(relation.C, Direction.BOTH)
.traverse(node)) {

}

1. I want to use each relation just one time.   

For example:   (1)--[A]-->(2)--[A]-->(3)--[B]-->(4)    it is not available 
for me - A is used two times
 
                            (1)--[C]-->(2)--[A]-->(3)--[B]-->(4)   it is 
available - each relation is unique


2. I want to use relations in order or priority.

For example:     (1)--[B]-->(2)--[A]-->(3)--[C]-->(4)    it is not 
available for me because in my path  B is first relationship 
 
                            (1)--[A]-->(2)--[B]-->(3)--[C]-->(4)   it is 
available - each relation is in an order


Note: I can solve some other java codes about these, but running time is 
slowing. 


Best regards.

-- 
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.

Reply via email to