|
Boost Users : |
From: Giulio Veronesi (giulio_veronesi_at_[hidden])
Date: 2005-09-17 14:51:43
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
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