#include #include #include namespace b = boost; struct vertex_data { std::string name; }; typedef b::adjacency_list test_adjacency_list; typedef b::labeled_graph graph; typedef graph::vertex_descriptor vertex; int main() { graph g; g.add_vertex("foo"); g.remove_vertex("foo"); vertex v = g.add_vertex("foo"); g.graph()[v].name = "bar"; }