Mark Needham
1 min readOct 3, 2018

--

Hey,

So that operator sums together the values for all our neighbours for each of the columns. So say for the `sum-in-in` column for `nodeId=0`:

We sum the values from the in-degree column of the nodes that have a relationship to node 0 (it’s in neighbourhood), which in this case is node 3, which has an in-degree of 0, so our total score is 0.

For `sum-in-out` we do the same thing but this time for the out-degree column…again we look at the value for node 3, which in this case is 2.

We carry on with that process for all the nodes for in/out/both neighbourhoods.

Hope that makes sense.
Mark

--

--

Mark Needham
Mark Needham

Written by Mark Needham

Product Marketing Engineer at ClickHouse

No responses yet