Re: [graph-tool] Accessing property array containing string

2015-05-29 Thread Tiago de Paula Peixoto
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 mu

[graph-tool] Accessing property array containing string

2015-05-29 Thread Joel Moberg
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]) ``` I get this trace: ``` --- IndexError