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
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