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;
谢谢!