normalize vertex values

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

normalize vertex values

Lydia Ickler
Hi all,

If I have a Graph g: Graph<Integer, Double, Double> g
and I would like to normalize all vertex values by the absolute max of all vertex values -> what API function would I choose?

Thanks in advance!
Lydia
Reply | Threaded
Open this post in threaded view
|

Re: normalize vertex values

Vasiliki Kalavri

Hi Lydia,

there is no dedicated Gelly API method that performs normalization. If you know the max value, then a mapVertices() would suffice. Otherwise, you can get the Dataset of vertices with getVertices() and apply any kind of operation supported by the Dataset API on it.

Best,
-Vasia.

On May 12, 2016 10:31 AM, "Lydia Ickler" <[hidden email]> wrote:
Hi all,

If I have a Graph g: Graph<Integer, Double, Double> g
and I would like to normalize all vertex values by the absolute max of all vertex values -> what API function would I choose?

Thanks in advance!
Lydia