#include #include #include using namespace std; int main(int,char**) { typedef boost::adjacency_list<> g_t; typedef g_t::vertex_descriptor vd; typedef g_t::edge_descriptor ed; g_t G,H; vd a = add_vertex(G); vd b = add_vertex(G); ed ab = add_edge(a,b,G).first; assert( target(ab,G) == b ); vd a_copy = copy_component( G, a, H ); ed ab_copy = *out_edges( a_copy, H ).first; assert( target(ab_copy,H) != a_copy ); }