
8 Nov
2004
8 Nov
'04
5:10 a.m.
What is the best method for storing a type in a boost graph vertex? By value or pointer? I have the following graph type: typedef property< vertex_index_t, uint32_t, property< vertex_name_t, boost::shared_ptr<Component> > > VertexProperty; typedef adjacency_list<setS, // OutEdgeList setS, // VertexList directedS, // Directed VertexProperty> // VertexProperties Graph_Type; The Component is a class. I thought it was best to store it in the vertex as a pointer. Is this going to cause me trouble? Stephen -- Email: storri@torri.org