16 Nov
2015
16 Nov
'15
10:55 p.m.
On 16.11.2015 23:12, Yannis Haralambous wrote:
When we define a new property we provide the type of its values: vprop_vint = g.new_vertex_property("vector<int>")
Is there some way to obtain this type from the property object, for example when properties are included in a graph read from a .gt.gz file?
(I hope this is not already somewhere in the documentation…)
Yes, it is already in the documentation. (Hint: _every_ function and object in the library is documented.) Just look at the documentation for PropertyMap: https://graph-tool.skewed.de/static/doc/graph_tool.html#graph_tool.PropertyM... What you want is the PropertyMap.value_type() method. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>