46 boost::remove_vertex(v, *
this);
48 boost::get(boost::vertex_index_t(), *
this);
49 boost::graph_traits<boost_graphs_collection>::vertex_iterator v_it, v_it_end;
51 for(boost::tie(v_it, v_it_end) = boost::vertices(*
this); v_it != v_it_end; v_it++, index++)
53 index_map[*v_it] =
index;
59 size_t index = boost::num_vertices(*
this);
60 boost::graph_traits<boost_graphs_collection>::vertex_descriptor new_vertex = boost::add_vertex(*
this);
62 boost::get(boost::vertex_index_t(), *
this);
63 index_map[new_vertex] =
index;
Class specification of the graph structures.
virtual void RemoveVertex(boost::graph_traits< boost_graphs_collection >::vertex_descriptor v)
Remove a vertex from this graph.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
virtual boost::graph_traits< boost_graphs_collection >::vertex_descriptor AddVertex(const NodeInfoRef info)
Add a vertex to this graph with a property.