MutablePropertyGraph
A MutablePropertyGraph is a MutableGraph with properties attached internally to the vertices and edges. When adding vertices and edges the value of the properties can be given.
Notation
G |
A type that is a model of Graph. |
|---|---|
|
An object of type |
|
An object of type
|
|
are objects of type
|
|
is an object of type |
|
is an object of type |
Associated Types
Edge Property Type |
|
Vertex Property Type |
|
Valid Expressions
|
Inserts the edge (u,v) into the graph,
and copies object |
|
Add a new vertex to the graph and copy |
Concept Checking Class
template <class G>
struct MutablePropertyGraphConcept
{
typedef typename boost::graph_traits<G>::edge_descriptor edge_descriptor;
void constraints() {
BOOST_CONCEPT_ASSERT(( MutableGraphConcept<G> ));
v = add_vertex(vp, g);
p = add_edge(u, v, ep, g);
}
G g;
std::pair<edge_descriptor, bool> p;
typename boost::graph_traits<G>::vertex_descriptor u, v;
typename boost::graph_traits<G>::vertex_property_type vp;
typename boost::graph_traits<G>::edge_property_type ep;
};