diff --git a/doc/quick_tour.html b/doc/quick_tour.html index 5156bb7bf..7a9fd7257 100644 --- a/doc/quick_tour.html +++ b/doc/quick_tour.html @@ -160,6 +160,8 @@

Accessing the Vertex Set

{ // ... + typedef graph_traits<Graph>::vertex_descriptor Vertex; + // get the property map for vertex indices typedef property_map<Graph, vertex_index_t>::type IndexMap; IndexMap index = get(vertex_index, g); @@ -167,8 +169,10 @@

Accessing the Vertex Set

std::cout << "vertices(g) = "; typedef graph_traits<Graph>::vertex_iterator vertex_iter; std::pair<vertex_iter, vertex_iter> vp; - for (vp = vertices(g); vp.first != vp.second; ++vp.first) - std::cout << index[*vp.first] << " "; + for (vp = vertices(g); vp.first != vp.second; ++vp.first) { + Vertex v = *vp.first; + std::cout << index[v] << " "; + } std::cout << std::endl; // ... return 0;