Hi Sebastian, On 05/31/2011 09:01 AM, Sebastian Weber wrote:
Enclosed is a python script which produces the error. I will send the corresponding data file for the example to your personal address in order not to spam half a megabyte to the list.
So, it seems the problem is not with the copying of the graph itself, but rather with the _properties_. In the case you sent, the _names_ of the vertices get wrongly copied, because the vertex index changed... The fix is easy enough, and is already in git.
Moreover, when writing the example I encountered weird problems in the find_vertex function. I compile graph-tool without openmp, but apparently there are some issues here with it. When I use find_vertex, as commented out in the example, then the program crashes with this error:
dyld: lazy symbol binding failed: Symbol not found: _omp_get_num_threads Referenced from: /Volumes/Data/sebi/.local/lib/python2.6/site-packages/graph_tool/util/libgraph_tool_util.so Expected in: flat namespace
Strange, I cannot reproduce this here... Can you check if USING_OPENMP is defined in your config.h after you run configure? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>