Boost-graph,访问未捆绑的顶点/边缘属性

时间:2015-02-28 12:50:45

标签: c++ boost boost-graph

This boost文档描述了如何为图的顶点和边定义捆绑和非捆绑属性。但是它缺少如何设置/获取unbundlede属性。

如果我使用如下定义的非捆绑属性:

,如何访问整数和字符串属性
typedef boost::property<boost::edge_weight_t, double> EdgeWeightProperty;
typedef boost::adjacency_list<boost::vecS,
      boost::vecS,
      boost::directedS,
      boost::property<int, string>,
      EdgeWeightProperty> Graph;

谢谢!

0 个答案:

没有答案