title: Boost Graph Getting Adjacent Vertices
body: <p>I am working with a graphing using Boost library.
  The graph is defined as follows.</p>
  
  <pre><code> typedef boost::adjacency_list&lt;boost::setS,boost::setS,boost::undirectedS, uint32_t, float&gt; AdjacencyList;
  </code></pre>
  
  <p>After creating the graph using appropriate data, in a separate function I want to print the adjacent_vertices of each vertex with their appropriate edge weight as computed in the beginning. </p>
  
  <p>The creating part works well but when I want to extract adjacent vertices I dont get the values. </p>
  
  <pre><code>typedef boost::graph_traits&lt;AdjacencyList&gt;::adjacency_iterator AdjacencyIterator;
  AdjacencyList::vertex_iterator i, end;
  for (boost::tie(i, end) = boost::vertices(adjacency_list); i != end; i++) {
  AdjacencyIterator ai, a_end; 
  boost::tie(ai, a_end) = boost::adjacent_vertices( *i, adjacency_list);
    for (; ai != a_end; ai++) { 
        std::cout &lt;&lt; *ai &lt;&lt; "\t";
    }
   }
  </code></pre>
  
  <p>The Output I get are memory address in Hexademial number. 
  How can I get vertex indices and the edge weight?</p>