OK, solved it - hadn't seen the note here:

https://graph-tool.skewed.de/static/doc/graph_tool.html?highlight=property%20map#graph_tool.PropertyMap.get_array

The way to access string property maps is via

g.vp.name.get_2d_array(pos=[0])
g.ep.type.get_2d_array(pos=[0])

Hope it helps someone.

Best

Haiko

_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to