|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61841 - trunk/libs/graph/example
From: jewillco_at_[hidden]
Date: 2010-05-07 13:18:45
Author: jewillco
Date: 2010-05-07 13:18:44 EDT (Fri, 07 May 2010)
New Revision: 61841
URL: http://svn.boost.org/trac/boost/changeset/61841
Log:
Added proper size for disjoint_sets structure
Text files modified:
trunk/libs/graph/example/components_on_edgelist.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/graph/example/components_on_edgelist.cpp
==============================================================================
--- trunk/libs/graph/example/components_on_edgelist.cpp (original)
+++ trunk/libs/graph/example/components_on_edgelist.cpp 2010-05-07 13:18:44 EDT (Fri, 07 May 2010)
@@ -68,7 +68,7 @@
print_edges(g, identity_property_map());
cout << endl;
- disjoint_sets_with_storage<> ds;
+ disjoint_sets_with_storage<> ds(N);
incremental_components(g, ds);
component_index<int> components(&ds.parents()[0],
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk