> Thanks for your reactivity.
> The previous command help me but in my problem, there are
> effectivities on relation.
> Q1: How can I multiply effectivity with part weight ?
> The ultimate goal should be to have : part weight = (subpart1.weight *
> effectivity1) + (subpart2.weight * effectivity2) + ...
> Q2: It's possible on cypher ?
> One again, thanks.
> On 2 mar, 19:40, Josh Adell <josh.ad...@gmail.com> wrote:
>> Ah yes. I thought it, I just didn't type it.
>> -- Josh
>> On Mar 2, 12:42 pm, Michael Hunger <michael.hun...@neotechnology.com>
>> wrote:
>>> Probably as the number of parts is not limited (it's a tree) use an variable length path "*0.."
>>>> 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 ) )
>>> Am 02.03.2012 um 18:34 schrieb Josh Adell:
>>>> 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 ) )
>>>> I might be a bit shaky on the syntax, but all the pieces should be
>>>> there.
>>>> -- Josh
>>>> On Mar 2, 10:16 am, Anthony <an.souq...@gmail.com> wrote:
>>>>> I'm new Neo4j user and developper beginner.
>>>>> I work on a graph that is composed of multiples parts.
>>>>> Parts have subparts.
>>>>> Each part and subparts have a weight.
>>>>> How can i get the total weigth of a part composed by the weigth of
>>>>> this part with the weigth of all subpart ?
>>>>> I don't know neither Java nor Groovy.
>>>>> Can you help me to choose the better way to begin ?
>>>>> Thanks for your attention.