1
我有一个的adjacency_list图表定义如下: 在boost :: graph中,如何给定一个有向邻接图,顶点和出边索引的邻接顶点?
struct VertexProperties{
std::string name;
...
};
typedef boost::adjacency_list<boost::vecS,
boost::vecS,
boost::directedS,
VertexProperties> GraphType;
typedef GraphType::vertex_descriptor VertexType;
给定图,顶点和边缘出来指数,如何可以获得相邻顶点?