Boost logo

Boost Users :

Subject: [Boost-users] [BGL] Graph of an Iterator
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-05-20 14:01:10


Dear all,

Is there any way to deduce the graph a graph-iterator is iterating over? So, for example for:

typedef graph_type::vertex_iterator iterator;
iterator begin, end;
tie(begin, end) = vertices(g);

is there anything like

graph_type gg = graph_of(begin);

so that gg == g?

TIA,
--Hossein


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net