st::undirectedS> UGraph;
  UGraph ug(N);
  add_edge(B, C, ug);
  add_edge(B, F, ug);
  add_edge(C, A, ug);
  add_edge(D, E, ug);
  add_edge(F, A, ug);

  std::cout &lt;&lt; "vertex set: ";
  boost::print_vertices(ug, name);
  std::cout &lt;&lt; std::endl;

  std::cout &lt;&lt; "edge set: ";
  boost::print_edges(ug, name);
  std::cout &lt;&lt; std::endl;

  std::cout &lt;&lt; "incident edges: " &lt;&lt; std::endl;
  boost::print_graph(ug, name);
  std::cout &lt;&lt; std::endl;
</pre>
The output is:
<pre>
  v