Andrii, thanks.

As for now, I am not interested in modelling the time separately. I simple 
put the departure and arrival times as properties on the Stop nodes.

I do not fully understand why you put the week in the relationship type.

As for your query: it does not prevent circles. Try to find a route from 
Hamburg to Munich and you will get:

1. Hamburg --> Bremen --> Munich
2. Hamburg --> Hannover --> Munich
3. Hamburg --> Hannover --> Munich --> Frankfurt --> Munich
4. Hamburg --> Hannover --> Munich --> Frankfurt --> Munich --> Hannover 
--> Hamburg --> Bremen --> Munich

The last two results contain circles.

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