Generalize comments to be valid for any values of N and P

This commit is contained in:
Sven Gato Redsun 2023-05-07 22:02:19 -06:00
parent 05e099335a
commit 0182f7490e
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ template < typename Graph > void test()
{
typedef erdos_renyi_iterator< boost::minstd_rand, Graph > er;
// Generate random graph with 20 vertices and 10% probability
// Generate random graph with N vertices and probability P
// of edge connection.
static const size_t N = 20;
static const double P = 0.1;

View File

@ -57,7 +57,7 @@ void test_one(Algorithm algorithm, std::size_t num_cycles_expected)
{
typedef erdos_renyi_iterator< minstd_rand, Graph > er;
// Generate random graph with 20 vertices and 10% probability
// Generate random graph with N vertices and probability P
// of edge connection.
static std::size_t const N = 20;
static double const P = 0.1;

View File

@ -45,7 +45,7 @@ template < typename Graph > void test()
{
typedef erdos_renyi_iterator< boost::minstd_rand, Graph > er;
// Generate random graph with 20 vertices and 10% probability
// Generate random graph with N vertices and probability P
// of edge connection.
static const size_t N = 20;
static const double P = 0.1;