<DIV>Hi all,</DIV> <DIV> </DIV> <DIV>I'm developing a hardware test program with some class abstractions like resistor, diode, relay ... which I stick to the BGL graph structure in the edge properties. I so have some information associated with vertices, and the result is a set of data composed of the graph itself - an ajacency_list - the graph properties for edges and vertices and a couple of vectors for the abstractions. My problem is how can I manage all these data in an OO program. The method used in BGL examples (just declare all these in main ) is right just for that, but in a more complex object colaboration society I consider it to be simple and useless. I just use a class named GraphContainer to package all the elements, but I wonder if there is any other better aproach...</DIV> <DIV> </DIV> <DIV>class GraphContainer{<BR> int nVertices;<BR>public:</DIV> <DIV> UGraph g; </DIV> <DIV> property_map<UGraph, vertex_index_t>::type id;</DIV> <DIV> property_map<UGraph, edge_name_t>::type name;</DIV> <DIV> property_map<UGraph, vertex_name_t>::type vname;</DIV> <DIV> std::map<string,boost::graph_traits<UGraph>::vertex_descriptor> vertx; // mapa vertices(string)--vertex_descriptor</DIV> <DIV> vector<Lampara> Lamparas;<BR> vector<Diodo> Diodos;<BR> vector<Switch> Switches;<BR> vector<Resistencia> Resistencias;<BR> vector<Bobina> Bobinas;<BR> // ---------- <BR> GraphContainer();</DIV> <DIV>};<BR></DIV> <DIV>Thanks a lot...</DIV><p><hr size=1><br> <table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail_man/*http://es.docs.yahoo.com/benefits/"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/w/tagma.jpg" height=80 width=230 alt="" border=0 align="right"></a></td></tr> <tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail_man/*http://es.docs.yahoo.com/benefits/" style="font-size: -2; font-family: Verdana; font-weight: bold; color: #73738c; text-decoration: none;"><B><FONT face=Verdana color=#73738c size=-2>��� Antivirus � Filtros antispam � 6 MB gratis</FONT></B><BR> <B><FONT face=Verdana color=#73738c size=-2>��� �Todav�a no tienes un correo inteligente?</FONT></B></a></td></tr></table>