copying edges with their vertices and properties using BOOST
问题 I want to copy edges with their vertices and properties from dataG.front(), and add it to testg , I tried what I found in "Accessing bundled properties" section http://www.boost.org/doc/libs/1_57_0/libs/graph/doc/bundles.html but it isn't working for me. PS: dataG is a vector of graphs. typedef std::pair<edge_iter, edge_iter> edge_pair; Graph testg; if (!dataG.empty()) { auto const& gr = dataG.front(); for (edge_pair ep = edges(gr); ep.first != ep.second; ++ep.first) //ep edge number { auto