The edge_list class is an adaptor that turns a pair of edge
iterators into a class that models EdgeListGraph. The
value_type of the edge iterator must be a std::pair (or
at least have first and second members). The
first_type and second_type of the pair must be the
same and they will be used for the graph's vertex_descriptor.
The ValueType and DiffType template parameters are only
needed if your compiler does not support partial
specialization. Otherwise they default to the correct types.
Example
Applying the Bellman-Ford shortest paths algorithm to an
edge_list.
The type for the vertex descriptors associated with the
edge_list. This will be the same type as
std::iterator_traits<EdgeIterator>::value_type::first_type.
boost::graph_traits<edge_list>::edge_descriptor
The type for the edge descriptors associated with the
edge_list.
boost::graph_traits<edge_list>::edge_iterator
The type for the iterators returned by edges(). The iterator
category of the edge_iterator will be the same as that of the
EdgeIterator.
Member Functions
edge_list(EdgeIterator first, EdgeIterator last)
Creates a graph object with n vertices and with the
edges specified in the edge list given by the range [first,last).
Статья Boost Graph Library: Edge List Class раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.