27 Apr
2015
27 Apr
'15
2:29 p.m.
On 27.04.2015 00:31, desert_rain wrote:
Hi,
I am using graph-tool for my research, thanks for creating graph-tool.
I need to calculate average values from vertex and edge properties. Property types are "vector<double>". When I use the "edge_average" function, program gives 'RuntimeError'. How can I calculate averages from vector property?
Right now you can't, because the sum of two vectors is not defined. You have to split the vector into two property maps with ungroup_vector_property() and calculate the averages separately. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>