sl@0: //======================================================================= sl@0: // Copyright 2002 Indiana University. sl@0: // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: //======================================================================= sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: int main() sl@0: { sl@0: using namespace boost; sl@0: typedef default_constructible_archetype< sl@0: sgi_assignable_archetype< sl@0: equality_comparable_archetype<> > > vertex_t; sl@0: { sl@0: typedef incidence_graph_archetype IncidenceGraph; sl@0: typedef vertex_list_graph_archetype graph_t; sl@0: graph_t& g = static_object::get(); sl@0: vertex_t s; sl@0: read_write_property_map_archetype color; sl@0: breadth_first_search(g, s, color_map(color)); sl@0: } sl@0: { sl@0: typedef incidence_graph_archetype IncidenceGraph; sl@0: typedef vertex_list_graph_archetype graph_t; sl@0: graph_t& g = static_object::get(); sl@0: vertex_t s; sl@0: readable_property_map_archetype v_index; sl@0: breadth_first_search(g, s, vertex_index_map(v_index)); sl@0: } sl@0: { sl@0: typedef incidence_graph_archetype IncidenceGraph; sl@0: typedef vertex_list_graph_archetype Graph; sl@0: typedef property_graph_archetype sl@0: graph_t; sl@0: graph_t& g = static_object::get(); sl@0: vertex_t s; sl@0: bfs_visitor<> v; sl@0: buffer_archetype b; sl@0: breadth_first_search(g, s, visitor(v).buffer(b)); sl@0: } sl@0: return 0; sl@0: }