Hello All:

I am running Neo4j embedded server and using Neo4j api for finding
connections between users on platform.

Please consider the below scenario

there are three nodes say A, B and C.
I have written api to get shortest path between the nodes.

I want to achieve below solution :

Relationships between these nodes could be as below

1st case:
A KNOWS B
B KNOWS C

Therefore there is connection between
A and C and there is no path between C and A. (one direction). This is
solved using Directions.OUT direction using Java API

2nd case

A KNOWS B
C KNOWS B

A and C are connected as they have common connection i.e. which initiates
from both nodes. This can be solved if I put Directions.BOTH.  The 1st use
case fails if I use Directions.BOTH.

I want to understand how I can use Java api to get both cases solved.

Thanks
Sunil

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