I need to model 'Friend' relationship in neo4j. Relationship may have types like 'Buddy' or 'Friend'. For example, A and B are friends. A considers B as a 'Buddy' and B considers A as a 'Friend'. I see two options to model this.
- Create two relationships. A --> B with property 'type' = 'Buddy' and B --> A with property 'type' = 'Friend'.
- Create one relationship with two properties 'Forward_Type' and 'Backward_Type'. If the relationship is from A to B, 'Forward_Type' = 'Buddy' and 'Backward_Type' will be 'Friend'
Please let me know which one is good in terms of traversing complexity/performance. Thank you.