1 Ekim 2016 Cumartesi

graph vertex_index

Elimizde şöyle bir graph tanımı olsun.
typedef boost::adjacency_list<boost::vecS, boost::vecS, ..., ..., ...> GraphType;
Şöyle yaparız.
const Graph g = ...;
auto index_map = boost::get (boost::vertex_index, g);
Şöyle yaparız.
boost::property_map<GraphType, boost::vertex_index_t>::type vertIndx =
 boost::get (boost::vertex_index, g);

Hiç yorum yok:

Yorum Gönder