Boost graph: How to copy the nodes and edges of a graph without copying properties?
<p>I am using boost graph with bundled properties. After I build the first reference tree. I would like to have several other trees with the same structure and hierarchy but with different vertex and edge property. I find there is a copy_graph method but don't know how to achieve my purpose using this.
For example, I first create a reference tree, <code>VertexProperty1</code> and <code>EdgeProperty1</code> are bundled properties</p>

<pre><code>typedef boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::bidirectionalS, VertexProperty1, EdgeProperty1&gt; Graph;
Graph g1;
</code></pre>

<p>After some processing, g1 contains some vertices and edges.
Then I would want to have a copied tree with different bundled properties.</p>

<pre><code>typedef boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::bidirectionalS, VertexProperty2, EdgeProperty2&gt; Graph2;
copy_graph(g1, g2, ???);
</code></pre>

<p>Thanks in advance for any kind help. Example code would be preferred.</p>