I have multiple nodes in my Neo4j graph. I want to create relationship between any 2 nodes, if and only if, their Jaccard similarity on their attributes is above some threshold alpha.
Consider 2 nodes:
Node 1: {id:1, abc: 1.1, eww: -9.4, ssv: "likj"}
Node 2: {id:2, we2: 1, eww: 900}
Node 3: {id:3, kuku: -91, lulu: 383, ssv: "bubu"}
So Node1 and Node2 Jaccard similarity on their attributes would be: (intersection =) 2/ (union =) 5 = 0.4
How can I do this in Neo4j? I know there is a Jaccard similarity function, but how to config it to work on the attributes of the nodes?