I'm having trouble calculation the jaccard similarity of a graph. My graph 
is pretty basic, where I have date/time nodes (with a Timestamp property) 
surrounded by nodes of things that happened at that time, all labeled 
'things_that_happened." So there are only two node types in my graph to 
keep it simple. I'm trying to calculate jaccard similarity and then 
associate things_that_happened on other timestamps that have X similarity 
score to the original timestamp that I am querying. 

so far, this is my query,  but I'm getting syntax errors. 

MATCH (n)
WHERE (n)-[:happening]-({Timestamp:'08:02:00'}) 
WITH n, collect(distinct n) as L1
MATCH (m)
WHERE has(n.Time) 
WITH m, collect(distinct m) as L2
return count(L1), count(L2), ABS(count(L1) / count(L2))

If i separate the queries, I'm able to find both the intersect and the 
union, but I'm unable to figure out how to divide one by the other, 
respectively, and return that score. 

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to