cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Using Node property vs Node & Relationship

nadavbi87
Node

Hi All ,

I know this topic that already discussed but i could not come with final conclusion from all the discussions i saw.

My use case :

I have a knowledge base graph with User Nodes & Details Nodes ( name , address, ip etc..) on each relation i have some weight.
On top of it i built a SAME_AS ( connected components ) relation between User Nodes

The graph is dynamic which mean, I need to support split and merge scenarios :

  1. Merge - There may be a new detail node that will cause a merge between 2 (or more) communities
  2. Split - There may be a new detail node that will cause split in a community ( * i'm using the weighted algorithm)

I also need to represent each community by some generated id, on each scenario i need to create new Id and assigned it to all the nodes
*On a merge scenario where i need to merge new User node the id will stay the same.

My problem is how to represent the community id.
By using a Node property , Or by using new Node of type Community (with the id value) and relations from all the nodes that related to it.

Thanks!

0 REPLIES 0