incremental_components, component_index for listS, listS adjacency_list

Hi All,
I couldn't figure out how to use the component_index facility of the
incremental components algorithm when operating on an listS, listS
adjecency_list so I rolled my own as per below.
Any suggestion on how to use the provided interface are appreciated.
thanks
Sean
using namespace boost;
typedef graph_traits<BlockDependencyGraph>::vertices_size_type
size_type;
typedef BlockDependencyGraph::vertex_descriptor vertex_descriptor;
typedef BlockDependencyGraph::vertex_iterator vertex_iterator;
BlockDependencyGraph& graph = _blk_dep_view->get_graph();
// Disjoint sets requires Rank to map vertex_descriptors onto
integers
typedef std::map

Hi All,
I couldn't figure out how to use the component_index facility of the incremental components algorithm when operating on an listS, listS adjecency_list so I rolled my own as per below. Any suggestion on how to use the provided interface are appreciated. Hi Kelly, A couple of weeks ago I saw a good example of "iterator_property_map" usage in the similar situation but for connected_components() algorithm (you need to add vertex_index property). Probably this can help you,
Sean Kelly wrote:
mainly to improve perfomance. Please, take a look on this example.
///////////////////////////////////////////////////////////////////////
#include
participants (2)
-
Dmitry Bufistov
-
Sean Kelly