Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
You've currently chosen the 1.89.0 version. If a newer release comes out, you will continue to view the 1.89.0 version, not the new latest release.
| G | A type that is a model of Graph. |
| g | An object of type G. |
| v | An object of type boost::graph_traits<G>::vertex_descriptor. |
| boost::graph_traits<G>::traversal_category This tag type must be convertible to adjacency_graph_tag. |
boost::graph_traits<G>::adjacency_iteratorAn adjacency iterator for a vertex v provides access to the vertices adjacent to v. As such, the value type of an adjacency iterator is the vertex descriptor type of its graph. An adjacency iterator must meet the requirements of MultiPassInputIterator. |
| adjacent_vertices(v, g) |
Returns an iterator-range providing access to the vertices adjacent to
vertex v in graph g.[1]
Return type: std::pair<adjacency_iterator, adjacency_iterator> |
template <class G>
struct AdjacencyGraphConcept
{
typedef typename boost::graph_traits<G>::adjacency_iterator
adjacency_iterator;
void constraints() {
BOOST_CONCEPT_ASSERT(( MultiPassInputIteratorConcept<adjacency_iterator> ));
p = adjacent_vertices(v, g);
v = *p.first;
const_constraints(g);
}
void const_constraints(const G& g) {
p = adjacent_vertices(v, g);
}
std::pair<adjacency_iterator,adjacency_iterator> p;
typename boost::graph_traits<G>::vertex_descriptor v;
G g;
};
| Copyright © 2000-2001 | Jeremy Siek, Indiana University (jsiek@osl.iu.edu) |