I hope you are enjoying Neo4j as I do.
I am working on a graph where I have nodes with similar relationships. To minimize the number of relationships in the graph, I am thinking to only keep one node of every similar group of nodes and connect all the other nodes to the first node with a direct relationship and change the label of the similar nodes to (:Synonym).
As an example: If I have 9 nodes that are similar to a certain node with a score of (1.0 on Jaccard). Assuming every node of these has 10 relationships, this means I have 10 nodes with 100 relationships. I want to relabel all these 9 nodes and only make them refer to the main node as Synonyms.
Anyone has done that before? Any idea how to code that?