On 11/11/2013 02:28 AM, vcongz wrote: > Dear Tiago, > When I use this, there is a error: > > Traceback (most recent call last): > File "/home/workspace/work1/renren.py", line 127, in <module> > find_sub_g() > File "/home/workspace/work1/renren.py", line 97, in find_sub_g > new_g.purge_vertices() > File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 1850, > in purge_vertices > new_g = Graph(self, prune=(True, False, False)) > File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 1121, > in __init__ > vorder.fa = numpy.arange(gv.num_vertices()) > File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 567, > in <lambda> > lambda self, v: self.__get_set_f_array(v, False), > File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 562, > in __get_set_f_array > a[m] = v > TypeError: array cannot be safely cast to required type > > What are the reasons ? > Thank you for your help.
Looks strange... Please send a complete (minimal) example program so I can see what is going on. Also please tell me what operating system and version of graph-tool you are using. Cheers, Tiago -- 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
