Hi Tiago!
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.
Great, this is very good news! Thanks. I will check it out in a minute.
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?
Yes, it is defined as #define USING_OPENMP 0 I then added --disable-openmp to the configure script and now it is /* #undef USING_OPENMP */ So, the default seems to be to include the definition set to 0. I guess you check for definition of USING_OPENMP, but not if it is 0 or 1. Anyway, I will try compilation with the last configure output. Cheers, Sebastian
Cheers, Tiago
-- Tiago de Paula Peixoto <tiago@skewed.de>
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
-- Sebastian Weber Group of Cell Communication and Control Freiburg Institute for Advanced Studies - FRIAS School of Life Sciences - LIFENET Albert-Ludwigs-Universität Freiburg Albertstr. 19 79104 Freiburg T.: +49-761-203-97237 Fax:+49-761-203-97334