diff --git a/graph/labeled_graph.hpp b/graph/labeled_graph.hpp
index 5b688b0..06935d7 100644
|
a
|
b
|
namespace graph_detail {
|
| 223 | 223 | { return put_vertex_label(c, g, l, v, container_category(c)); } |
| 224 | 224 | //@} |
| 225 | 225 | |
| | 226 | /** @name Remove Labeled Vertex */ |
| | 227 | //@{ |
| | 228 | template <typename Container, typename Label, typename Graph> |
| | 229 | void remove_labeled_vertex(Container& c, Graph& g, Label const& l) |
| | 230 | { |
| | 231 | typename Container::iterator c_it = c.find(l); |
| | 232 | if (c_it != c.end()) { |
| | 233 | boost::remove_vertex(c_it->second, g); |
| | 234 | c.erase(c_it); |
| | 235 | } |
| | 236 | } |
| | 237 | //@} |
| | 238 | |
| 226 | 239 | } // namespace detail |
| 227 | 240 | |
| 228 | 241 | struct labeled_graph_class_tag { }; |
| … |
… |
public:
|
| 385 | 398 | |
| 386 | 399 | /** Remove the vertex with the given label. */ |
| 387 | 400 | void remove_vertex(Label const& l) |
| 388 | | { return boost::remove_vertex(vertex(l), _graph); } |
| | 401 | { return graph_detail::remove_labeled_vertex(_map, _graph, l); } |
| 389 | 402 | |
| 390 | 403 | /** Return a descriptor for the given label. */ |
| 391 | 404 | vertex_descriptor vertex(Label const& l) const |