possible patch. "centrality" is shared. now my test correlate perfectly with the non threaded.
diff --git a/src/boost-workaround/boost/graph/betweenness_centrality.hpp b/src/boost-workaround/boost/graph/betweenness_centrality.hpp index 32b56b77a0e5023a068e0b6bb0e9b4a156b17fb9..d4c3536d705b2465dbb020c3f15aef3c93e93ea6 100644 --- a/src/boost-workaround/boost/graph/betweenness_centrality.hpp +++ b/src/boost-workaround/boost/graph/betweenness_centrality.hpp @@ -364,7 +364,10 @@ namespace detail { namespace graph { }
if (u != s) { - update_centrality(centrality, u, get(dependency, u)); + #pragma omp critical(globalupdate) + { + update_centrality(centrality, u, get(dependency, u)); + } } }
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.