17 Sep
2005
17 Sep
'05
7:51 p.m.
Hi all, Is it possible to use the randomize_property routines with boundled properties? If so, could you please explain me how? For istance let us consider the following example: struct MyVertexAttr { int attr; }; typedef adjacency_list<vecS, vecS, bidirectionalS, MyvertexAttr, MyEdgeAttr> MyGraph; MyGraph g(...); Now I would like to randomly assign a number in [1,10] to the 'attr' property of each vertex. randomize_property<????????>(g, MyRandGenerator); What is the correct invocation of the randomize_property function? Thanks in advance, Giulio
6943
Age (days ago)
6943
Last active (days ago)
0 comments
1 participants
participants (1)
-
Giulio Veronesi