【发布时间】:2015-10-01 00:37:44
【问题描述】:
我能问一下<> 在adjacency_list<> 中的用途吗?我是新来的。我知道我可以定义一个像这样的容器:vector<int> vec,但是为什么在<> 中它是空的?谢谢你。
#include <boost/graph/adjacency_list.hpp>
using namespace boost;
adjacency_list<> g;
// adds four vertices to the graph
adjacency_list<>::vertex_descriptor v1 = add_vertex(g);
adjacency_list<>::vertex_descriptor v2 = add_vertex(g);
adjacency_list<>::vertex_descriptor v3 = add_vertex(g);
adjacency_list<>::vertex_descriptor v4 = add_vertex(g);
【问题讨论】:
标签: c++ boost boost-graph