niho / related

A high performance distributed graph database.
MIT License
130 stars 13 forks source link

Bi-directional Node::Relationship for tags? #6

Open luislavena opened 12 years ago

luislavena commented 12 years ago

Hello,

Pardom my ignorance, but I couldn't find a simple way to create bi-directional relationships between tags except creating two relationships and performing intersects on both incoming and outgoing.

I see that tagging pattern might have a value like following one, what do you think?

Last but no least, thank you for sharing Related with us.

niho commented 12 years ago

Thank you Luis! I'm glad to share it and that people find it useful.

I'm not sure I fully understand your use-case here. Could you give a practical example? When I think about tagging I think about a relationship between a tag and the thing that it tags. Why does it need to be bi-directional?

luislavena commented 12 years ago

Hello @niho

I was actually talking of tag <-> tag relationship and be able to use union on the outgoing tagging relationship of two tags.

For example, what will be the best approach to walk a path and collect outgoing tagging from relationships?

Thank you.