cancel
Showing results for 
Search instead for 
Did you mean: 

Model multiple relationships between two same nodes or distinct relationships and more nodes?

j_zchu99
Node

Hi all,

I am looking for some help in modeling my graph. I have some questions regarding the general understanding of graph modeling:

  1. Is it preferred to have multiple relationships between two and the same nodes (distinguished by properties) vs having one relationship between two nodes and thus having more nodes.
  2. Based on the answer for Q1, what is the why behind this? I.e. why (and when) do you choose the one above the other?

Some context for my specific use case: I am modeling patient journeys. Patients have a pathway consisting of treatments. Should I model this as many relationships between two treatments distinguished by patient ID property, or make additional 'encounter' nodes to ensure a single relationship between two same nodes.

Thank you for taking the time to help me out

0 REPLIES 0