Boost Users :
From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-16 01:36:49
Matthew Galati wrote:
> Newbie Question
> Can someone post a simple example of how to generate a random graph? I
> do not understand what needs to be sent in the 4th argument for
> RandNumGen. To keep it simple, how would I generate a random graph on 10
> vertices and 20 edges?
> generate_random_graph(g, 10, 20, ?, false, false);
Looking at examples/bfs.cpp, I see the following:
boost::generate_random_graph(g, i, j, gen);
I.e. the fourth parameter should be a functional object. Sorry that that
docs don't say that...
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