Raphtory icon indicating copy to clipboard operation
Raphtory copied to clipboard

Projection for property aggregations

Open miratepuffin opened this issue 1 year ago • 2 comments

Currently if an algorithm was to make use of a certain property weight and aggregate it via a sum -if we wanted the same algorithm but using a mean aggregation it would have to be implemented a second time, or at a minimum take a function to specify how this aggregation should be calculated.

Instead we propose a projection whereby a new property is made available on the graph/vertex/edge which is an aggregated version of one or more of its underlying properties.

miratepuffin avatar May 19 '23 22:05 miratepuffin

Old comment from @LJeub from our old ticketing system:

currently, if one wants to change the merge strategy used to compute the value of a property at a given point in time, it needs to be specified when calling the getProperty and friends. This is not very useful as it means we would have to rewrite any algorithm that relies on the property to actually use this functionality.

It would make much more sense to set this on the GraphLens so it has an effect on all algorithms. Same applies to nameProperty and weightProperty for the vertex name method and edge weight method.

miratepuffin avatar May 20 '23 00:05 miratepuffin

Adding @narnolddd's new issue as a reference here # #1749

miratepuffin avatar Sep 07 '24 20:09 miratepuffin