title: Boost Subgraph and Bundled properties
body: <p>I'm using bundled properties and adjacency_list and would like to use the subgraph class. </p>
  
  <pre><code>struct Vertex
  {
     int index;
     int seed;
  }; 
  
  struct Edge
  {
   bool visted;
   double weight;
  };
  
  typedef adjacency_list&lt;listS, listS, undirectedS, Vertex, property&lt;edge_index_t,int,Edge&gt; &gt; Graph;
  typedef subgraph&lt;Graph&gt; testSubgraph;
  </code></pre>
  
  <p>The <code>property&lt;edge_index_t,int,Edge&gt;</code> part is needed, as subgraph needs <code>edge_index_t</code> to compare two edges. </p>
  
  <p>Now my question is how do I add an Edge using bundled properties in a Subgraph? 
  In the normal graph without <code>property&lt;edge_index_t,int,Edge&gt;</code> I add an edge as following: </p>
  
  <pre><code>Edge e;
  vertex_descriptor u,v; 
  // fill in u and v;
  e.weight = 1.0;
  e.visted=false;
  add_edge(u,v,e,graph);
  </code></pre>
  
  <p>But this doesn't work for Subgraph. </p>
  
  <p>Hope someone knows a solution for this. </p>
  
  <p>Thanks</p>
  
  <p>Ben</p>