Re: Aggregating edges based on the source & target vertex attributes
HadoopMarc <bi...@...>
And here a small variation without the keys and with some code formatting: g.V().as('a').outE().as('e').inV().as('b'). group().by( union(select('a').values('organization'), select('b').values('organization')).fold() ).by( select('e').by('collaborationHours').sum() ).unfold() ==>[marketing, engineering]=2 ==>[sales, marketing]=2 ==>[engineering, sales]=3 ==>[engineering, marketing]=2 Marc Op donderdag 17 december 2020 om 14:50:11 UTC+1 schreef kt...@...:
|
|