The Graph Edge with edge property storage for an undirected graph.If the graph uses no_property for the edge property type, then the graph edge contains just the edge_descriptor_impl. If the graph is with properties then the edge contains an edge_descriptor_impl and the property. The property of the edge for undirected graphs is stored as a pointer and shared between two sister edges, because edges will always be added in pairs and they will have to have the same property. More...
Public Member Functions | |
undirected_graph_edge_property (edge_descriptor_type ed, property_type const &p) | |
Creates an edge for the graph with the given descriptor and property. More... | |
property_type & | property () |
property_type const & | property () const |
edge_descriptor_type | descriptor () const |
edge_id_type | id () const |
vertex_descriptor | source () const |
vertex_descriptor | target () const |
void | display () |
Public Types | |
typedef VertexDescriptor | vertex_descriptor |
typedef edge_descriptor_impl< vertex_descriptor > | edge_descriptor_type |
typedef edge_descriptor_type::edge_id_type | edge_id_type |
typedef Property | property_type |
typedef Property & | property_reference |
Protected Member Functions | |
void | clear () |
Deletes the property of this edge. | |
Protected Attributes | |
edge_descriptor_type | m_ed |
The edge descriptor for this edge. | |
property_type * | m_property |
The property of this edge. | |
Friends | |
this_type | reverse (this_type const &other) |
Reverses the edge descriptor of an edge. More... | |
The Graph Edge with edge property storage for an undirected graph.
If the graph uses no_property for the edge property type, then the graph edge contains just the edge_descriptor_impl. If the graph is with properties then the edge contains an edge_descriptor_impl and the property. The property of the edge for undirected graphs is stored as a pointer and shared between two sister edges, because edges will always be added in pairs and they will have to have the same property.
stapl::sequential::undirected_graph_edge_property< VertexDescriptor, Property >::undirected_graph_edge_property | ( | edge_descriptor_type | ed, |
property_type const & | p | ||
) |
Creates an edge for the graph with the given descriptor and property.
ed | The descriptor of this edge. |
p | The property of this edge. |
|
friend |
Reverses the edge descriptor of an edge.
other | The edge to reverse. |