On 29.05.2015 15:02, Joel Moberg wrote: > I can't figure out how I am doing this wrong: > > ``` > from graph_tool.all import * > graph = collection.data['polbooks'] > a = graph.vp['value'] > print a > a.get_2d_array([0]) > ```
You cannot get a 2D array from a string property map. The value type must be a "vector<...>". Best, Taigo -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
