On 04/29/2014 03:52 PM, Liu wrote:
> Traceback (most recent call last):
>   File "/home/lockheed/PycharmProjects/cascade_failures/MAIN.py", line 56, in 
> <module>
>     G.purge_vertices()
>   File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 1867, 
> in purge_vertices
>     new_g = Graph(self, prune=(True, False, False))
>   File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 1133, 
> in __init__
>     _prop("v", gv, vorder))
> ValueError: Cannot find property map type.

This is a bug in graph-tool. It has been fixed in the most recent git
version.

As a workaround, you can use G.purge_vertices(in_place=True).

Best,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to