16 Nov
2005
16 Nov
'05
2:53 a.m.
Hi, I want to use Boost Graph Library via inheritance. Actually I want to define a graph which is an adjacency_list graph and is created in a special way. I thought of making it a derived class of adjacency_list and then define constructors to construct objects of this class. But my problem is how to (for example) set vertex properties in the constructor? Regularly if I want to add properties to vertices on a graph g, I use vertices(g) to get iterator of vertices and then I use this iterator, but what can I do in the constructor? I have no such graph object there and I can't use "this" reference too. Any help would be really appreciated. Thanks Azam
6939
Age (days ago)
6939
Last active (days ago)
0 comments
1 participants
participants (1)
-
azam .