typecasting adjacency_iterator to vertex_iterator in C++ boost libraries -


i have std::queue<boost::adjacency_list<>::vertex_iterator> q; pushing adjacent vertices of node in graph.

i need pop elements list , use them vertex_iterators.

is possible or there better way this?