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 <ti...@skewed.de>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool