|
Boost Users : |
From: Dmitry Bufistov (dmitry_at_[hidden])
Date: 2005-12-14 13:28:58
Hi,
I have the following description of graph:
///////////////////////////code///////////////////////////////////
struct EdgeProperties {
EdgeProperties(size_t ew = 0, size_t key = -1) : edge_weight(ew),
edge_index(key)
{
edge_color = std::string("black");
}
size_t edge_weight;
std::string edge_color;
size_t edge_index; //Key for distinguishing all input edges
};
typedef adjacency_list<
listS, ///<Store out&in -edges of each vertex in a std::list
vecS, ///<Store vertex set in std::vector
bidirectionalS, ///<Graph is directed with access to in & out edges
VertexProperties, EdgeProperties,
GraphProperties
> Graph;
//////////////////////////////////////////////////////////////////////////////
I have edge descriptor. I would like to get EdgeProperties structure for
this edge.
Many thanks in advance for help.
Regards,
--dima
P. S.
Special thanks to Douglas Gregor for previous answer it was really
usefull for me
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net