Hello,

I'm trying to use the CYPHER Reduce statement on the following:

Some nodes in the graph have properties: .A and .B which are numeric.  For 
every node that has these properties, I want to take the absolute value of 
the difference between the two and sum across all nodes.  I've tried the 
following:

start 
c=node(*) match p=(c) where has(c.A) and has(.B) return reduce(total = 0, x in 
nodes(p)| total + abs(x.A 
- x.B)) as sum;

But I get an error: "Don't know how to Subtract(Property..."

Are the math operations something I'll have to do in a separate step?

Thanks.

-Patrick

-- 
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/d/optout.

Reply via email to