Hi,

> Notice, here we now have a relationship where from the name we can see that 
> the types coming back will always be an Agency. This means relationship names 
> have information about it's target Node type, making the amount of 
> relationships proportional to the number of node types.

I tend to do the same thing when I don't want to deal with filtering when I get 
to the end of a traversal. For example:

        marko---followsPerson-->peter
        marko---followsFeed-->horicky

In the above, I don't have:

        marko---follows-->peter
        marko---follows-->horicky

because, then when I traverse, I don't have to do this:

        marko.out('follows')[[type:'Feed']]

Instead, I can be safe knowing that

        marko.out('followsFeed')

will always get me to feeds and thus, no filter needed.

Also, the latter plays well with Frames (http://frames.tinkerpop.com) which is 
what I use for graph-object mapping.

Hope that helps,
Marko.

http://markorodriguez.com


_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to