title: How to print a boost graph in graphviz with one of the properties displayed?
body: <p>I see examples of this when using property maps, but not when using structs to handle the vertices and edges (I think this is called 'bundles').</p>
  
  <p>I have vertices and edges defined as such, in an adjacency list graph.</p>
  
  <pre><code>struct Vertex
  {
      string name;
      int some_int;
  };
  
  struct Edge
  {
      double weight;
  };
  </code></pre>
  
  <p>The graph is constructed as follows:</p>
  
  <pre><code>typedef boost::adjacency_list&lt;boost::listS, boost::vecS, boost::directedS, Vertex, Edge&gt; boost_graph;
  </code></pre>
  
  <p>I want to print my graph of these objects in <code>Graphviz</code> format, so I can view it as an image.  However, I don't only want the nodes and edges.  I also want the attribute <code>name</code> on vertices and <code>weight</code> on edges to appear in the image.  How can I do this?</p>