Pros
- you can use the intermediate nodes to link other nodes to, instead of 
providing nodeids as values of relationship properties
- it allows you to create a system to  "version" networks

Cons
- longer paths, more complex queries
- managing the rels between the principal nodes is more complex, what is a 
rel in  "normal" setup, is now a rel-intermediatenode-rel construct
- if you want to make vizualisations, it may be necessary to "skip" the 
intermediate nodes, since force-based lay-out algorithms will be disturbed 
by the intermediate nodes.


On Friday, 18 April 2014 08:47:17 UTC+2, Aseem Kishore wrote:
>
> Example: users following other users.
>
> Is there any advantage/disadvantage to directly connecting users with 
> relationships, vs. indirectly connecting them via nodes?
>
> E.g.
>
> (:User) -[:FOLLOWS]-> (:User)
>
> vs.
>
> (:User) <-[:SOURCE_USER]- (:Follow) -[:TARGET_USER]-> (:User)
>
> The node obviously lends more flexibility (e.g. others can "like" it, it 
> can be placed in a linked list, etc.), but I'm wondering: are there any 
> downsides to it? E.g. if I commonly want to fetch a user's followers, is 
> the extra hop a significant performance drain? (I can test performance, but 
> I guess I'm wondering if there are other factors I can't even think of.)
>
> Thanks!
>
> Aseem
>
>

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