Commit e5d146c6 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

* src/graph/graph_extended_clustering.cc...

* src/graph/graph_extended_clustering.cc (GraphInterface::SetExtendedClusteringToProperty): init vector_property_map size, so that access becomes thread safe.

* src/graph/graph_clustering.cc (GraphInterface::SetLocalClusteringToProperty): init vector_property_map size, so that access becomes thread safe.


git-svn-id: https://svn.forked.de/graph-tool/trunk@115 d4600afd-f417-0410-95de-beed9576f240
parent 32990eb6
2007-07-27 Tiago de Paula Peixoto <tiago@forked.de>
* src/graph/graph_extended_clustering.cc (GraphInterface::SetExtendedClusteringToProperty): init vector_property_map size, so that access becomes thread safe.
* src/graph/graph_clustering.cc (GraphInterface::SetLocalClusteringToProperty): init vector_property_map size, so that access becomes thread safe.
2007-07-22 Tiago de Paula Peixoto <tiago@forked.de>
* ChangeLog: updated ChangeLog file with svn history
......
......@@ -198,7 +198,7 @@ struct set_clustering_to_property
void GraphInterface::SetLocalClusteringToProperty(string property)
{
typedef vector_property_map<double,vertex_index_map_t> clust_map_t;
clust_map_t clust_map(_vertex_index);
clust_map_t clust_map(num_vertices(_mg), _vertex_index);
bool directed = _directed;
_directed = false;
......
......@@ -161,7 +161,7 @@ void GraphInterface::SetExtendedClusteringToProperty(string property_prefix, siz
typedef vector_property_map<double, vertex_index_map_t> cmap_t;
vector<cmap_t> cmaps(max_depth);
for (size_t i = 0; i < cmaps.size(); ++i)
cmaps[i] = cmap_t(_vertex_index);
cmaps[i] = cmap_t(num_vertices(_mg), _vertex_index);
bool directed = _directed;
_directed = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment