> START part=node(123) // Or look it up in an index
> MATCH p = part-[:HAS_SUB_PART*0..]->subpart
> RETURN SUM( EXTRACT (n in nodes(p) : n.weight ) )
Michael
I think you could do this with a Cypher query:
START part=node(123) // Or look it up in an index
MATCH p = part-[:HAS_SUB_PART]->subpart
RETURN SUM( EXTRACT (n in nodes(p) : n.weight ) )